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
#!/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}" |