View Makefile
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
update_shebangs: | |
grep -m1 -r -l '^#!.*python' venv/bin/ | while read -r filename; do \ | |
echo "$${filename}"; \ | |
head -n1 "$${filename}"; \ | |
sed -i -e '1 s|^#!.*python|#!/opt/rh/rh-python38/root/bin/python|' "$${filename}"; \ | |
head -n1 "$${filename}"; \ | |
done |
View keybase.md
Keybase proof
I hereby claim:
- I am dandye on github.
- I am dandye (https://keybase.io/dandye) on keybase.
- I have a public key ASA-gPRwMft8T6zm3iIHKh2VSVhf1naW-T-xvApafZesnQo
To claim this, I am signing this object:
View gist:be7a94280e6d4fbec29e7e2146df767a
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
python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < .travis.yml |
View aws_reports.py
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
import re | |
import boto3 | |
import csv | |
from botocore.exceptions import ClientError | |
ec2 = boto3.client('ec2') | |
def get_snapshots(): | |
return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots'] |
View splitDate.js
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
function splitDate(date) { | |
var rdate = /(\d+).(\d+).(\d+)/ | |
return rdate.exec(date) | |
} | |
var [ , year, month, day] = splitDate('2015-11-06') |
View mount_edge.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
#!/bin/bash | |
# | |
# Mount a MacOS Directory via VirtualBox Shared Folder | |
# and open port 8000 for Django development server | |
# | |
# Args: | |
# ${1} mount name (optional; default: "edge_dev") | |
# | |
# Usage: | |
# sudo ./mount_edge.sh edge_dev |
View lxc_centos.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
[admin@edge ~]$ sudo yum install lxc lxc-templates | |
... | |
[admin@edge ~]$ rpm -qil lxc-templates | grep centos | |
/usr/share/lxc/config/centos.common.conf | |
/usr/share/lxc/config/centos.userns.conf | |
/usr/share/lxc/templates/lxc-centos | |
[admin@edge ~]$ sudo lxc-create -t centos -n c1 |
View gist:3b2439bad4893dbb0f3f0bbf37d47b7d
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
mkdir ~/Documents/Screenshots | |
defaults write com.apple.screencapture location ~/Documents/Screenshots | |
killall SystemUIServer |
View compile_install_tmux2.3.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
sudo yum install gcc kernel-devel make ncurses-devel wget automake | |
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
tar -xzvf libevent-2.0.21-stable.tar.gz | |
cd libevent-2.0.21-stable | |
./configure --prefix=/usr/local | |
make | |
sudo make install |
NewerOlder