I hereby claim:
- I am sherbang on github.
- I am sherbang (https://keybase.io/sherbang) on keybase.
- I have a public key whose fingerprint is 78B1 CD53 327E A787 BD63 40FE 55E7 DE1B CCFC AAAA
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import csv | |
| import pathlib | |
| import sys | |
| GUIDELINE_HEADERS = [ | |
| "Last Name", | |
| "First Name", | |
| "Traditional (Pre-tax)", | |
| "Employer Contribution", |
| try: | |
| pass | |
| except: | |
| sys.excepthook(*sys.exc_info()) |
| def safename(filename): | |
| 'Convert a string to a safe filename' | |
| keepcharacters = (' ','.','_') | |
| return "".join(c for c in filename if c.isalnum() or c in keepcharacters).rstrip() |
| import os | |
| import sys | |
| def get_app_directory(): | |
| """Return the directory that contains the application. | |
| This is the directory of the .py file in most cases, but is the directory | |
| of the .exe file in the case of py2exe. | |
| """ | |
| import imp |
| #!/usr/bin/env python3 | |
| # Run by incron whenever a file in the vagrant_boxes dir changes. | |
| # Updates the corresponding box in vagrant (vagrant box add -f) | |
| # | |
| # For me, boxes in vagrant_boxes are created on another machine | |
| # and synced over with BTSync. This detects the change for me and | |
| # makes sure my local box is fresh. | |
| # | |
| # Add this to your incrontab: |
| # This can be defined as just 'pygrub' in newer versions of Xen | |
| bootloader = '/usr/lib/xen-4.1/bin/pygrub' | |
| memory = 512 | |
| name = 'vyos' | |
| vcpus = 1 | |
| # Xen console doesn't display anything after pygrub, but VNC console does | |
| # VNC virtual display | |
| vfb = [ 'type=vnc' ] |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # Save all running Virtualbox VMs | |
| # Credit: http://lmbrt.com/a/11 | |
| vboxmanage list runningvms | sed s/[a-zA-Z[:space:]0-9\"]*// | xargs -i vboxmanage controlvm {} savestate |
| @setlocal enabledelayedexpansion && ipy -x "%~f0" %*& exit /b !ERRORLEVEL! | |
| import os | |
| import sys | |
| scripts_dir = sys.argv[1] | |
| scripts = os.listdir(scripts_dir) | |
| for script in scripts: | |
| if script.endswith('.cmd'): | |
| continue |