Skip to content

Instantly share code, notes, and snippets.

View karampok's full-sized avatar

Konstantinos Karampogias karampok

View GitHub Profile
@karampok
karampok / gist:5dd4985d77886b84b7c3575b77a2d723
Created February 7, 2017 09:31
Test GDN stop with long process
var _ = FDescribe("DEBUG", func() {
var (
client *runner.RunningGarden
args []string
)
BeforeEach(func() {
// we need to pass --properties-path to prevent guardian from deleting containers
// after restarting the server
propertiesDir, err := ioutil.TempDir("", "props")
@karampok
karampok / swap-apps.sh
Created December 20, 2015 10:37
Which app is swapping
#!/bin/bash
while :
do
SUM=0
OVERALL=0
for DIR in `find /proc/ -maxdepth 1 -type d -regex "^/proc/[0-9]+"`
do
PID=`echo $DIR | cut -d / -f 3`
PROGNAME=`ps -p $PID -o comm --no-headers`
bind _ split-window -v
bind | split-window -h
set -g base-index 1
set-option -g allow-rename off
set-window-option -g window-status-current-bg blue
set-window-option -g window-status-current-fg white
# confirm before killing a window or the server
bind-key K confirm kill-server
bind q killp

Keybase proof

I hereby claim:

  • I am karampok on github.
  • I am karampok (https://keybase.io/karampok) on keybase.
  • I have a public key whose fingerprint is 090D 9687 04FF 0117 C086 D32A 64BB 170B 2777 4C45

To claim this, I am signing this object: