This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import tempfile | |
import heapq | |
from array import array | |
def int_array_from_file(int_file, buffer_size=4000): | |
int_array = array("i") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------ | |
# Clone the drives with GUI dialog. | |
# Uses `dialog` which needs to be installed first.. | |
# | |
# Use: | |
# gui_dd <input drive> <output drive> | |
# ------------------------------------------------ | |
function gui_dd() { | |
in_d=$1 | |
out_d=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ------------------------------------------------- | |
# Kills all apps running on given port | |
# Use: | |
# kill_apps_on_port.sh <port> | |
# ------------------------------------------------- | |
PORT_NUMBER=$1 | |
echo "Kill all applications running on port ${PORT_NUMBER}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#=========================================== | |
# Use: | |
# merge_conflict.sh <SRC BRANCH> <DST BRANCH> | |
# merges changes from SRC branch -> DST branch | |
# | |
# Makes sure we will have no merge conflicts so | |
# we could Open PR for SRC branch. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#********************************************* | |
# Rename existing Tag in the remote Repo | |
# | |
# Use: | |
# rename_tag.sh <old_tag> <new_tag> | |
#********************************************* | |
pwd=${PWD} |