This file contains 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 | |
set +e | |
VBoxManage controlvm saio_vm poweroff | |
VBoxManage unregistervm saio_vm --delete | |
rm /home/john/vbox_storage/saio_vm/* | |
set -e |
This file contains 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 | |
# turn off video by default | |
echo "disabling automatic video" | |
defaults write ~/Library/Preferences/us.zoom.config.plist ZDisableVideo 1 | |
# turn off the zoom web server | |
echo "turn off the zoom webserver" | |
lsof -i :19421 | tail -1 | cut -f2 -d' ' | xargs kill -9 |
This file contains 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 python3.7 | |
# pretty-print columns of text | |
import sys | |
def table_print(lines_to_print, padding=3): | |
"""Given a list of tuples/lists, print a nicely formatted .rst table""" |
This file contains 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
from datetime import date | |
import calendar | |
my_date = date.today() | |
today = calendar.day_name[my_date.weekday()] | |
if today.endswith('y'): | |
print 'Today is a good day for a release!' | |
else: | |
print 'Probably best to wait for a release' |
This file contains 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
#gerrit_body .gwt-Image { | |
width: 15px !important; | |
height: 15px !important; | |
} | |
#gerrit_body .changeTable .dataCell a.gwt-InlineHyperlink { | |
white-space: nowrap !important; | |
} |
This file contains 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
#gerrit_body .gwt-Image { | |
width: 15px !important; | |
height: 15px !important; | |
} | |
#gerrit_body .changeTable .dataCell a.gwt-InlineHyperlink { | |
white-space: nowrap !important; | |
} |
This file contains 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
What are you working on right now (related to Swift or Swift-ecosystem things)? | |
Of the things going on that you know about, what's the most important? | |
What are you excited about in Swift? | |
What are you worried about in Swift? |
This file contains 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
One time only (or whenever you change the graph definition), run build_page.py from | |
<https://github.com/notmyname/gate_status>. This creates simple_graph_url, a graphite URL to | |
generate the gate status graph. Then create grab_gate_image.sh somewhere in your $PATH and add | |
the cronjob. Finally add an image to GeekTool to load /tmp/gate_graph.png and set it to | |
refresh as often as you run the cronjob. I added the image at 80% opacity. | |
grab_gate_image.sh | |
------------------ | |
#!/bin/sh |
This file contains 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
def foo(): | |
print 'in foo' | |
yield 'bar' | |
x = foo() | |
print 'start' | |
for i in x: | |
print i | |
print 'done' |
This file contains 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 python | |
# | |
# An commit-msg hook script that parses commit message tags and does stuff. | |
# | |
# | |
""" | |
==== | |
Tags |
NewerOlder