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 | |
# | |
# Adam Bolte <[email protected]> | |
# | |
# Description: | |
# Mount VirtualBox Guest Additions to current Vagrant instance. | |
declare -r option="${1}" | |
declare -r attach_to_instance=$(basename $(pwd)) | |
declare guest_additions_iso="/usr/share/virtualbox/VBoxGuestAdditions.iso" |
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 | |
# | |
# Adam Bolte <[email protected]> | |
# | |
# Description: | |
# Run this if Vagrant gets stuck bringing up an instance due to DHCP failure. | |
declare -r fix_instance=$(basename $(pwd)) | |
for instance in $(VBoxManage list runningvms | grep ${fix_instance} | \ |
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 | |
# Adam Bolte <[email protected]> | |
declare -r dstRegion="ap-southeast-1" | |
declare -r bucketList="$(s3cmd ls | sed -e 's/.*\ \ s3:\/\/\(.*\)$/\1/' | \ | |
grep -E -v "^(${dstRegion}|s3hub|rightscale)" | xargs echo)" | |
declare -ri bucketTotal="$(echo ${bucketList} | wc -w)" | |
declare -r bucketBackupsList="$(s3cmd ls | \ | |
sed -e 's/.*\ \ s3:\/\/\(.*\)$/\1/' | \ | |
grep "^${dstRegion}\." | xargs echo)" |
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 | |
# | |
# Steam installer for Debian wheezy (32- and 64-bit) | |
# | |
# Place into empty directory and run. | |
# | |
download() { | |
local url="$1" | |
local filename="$(basename "$url")" |
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 | |
###### Description | |
# | |
# This script creates an instance-backed instance. | |
# | |
# Please excuse the lack of error checking for now. | |
###### Variables |
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 | |
# Based in instructions here: | |
# http://docs.aws.amazon.com/IAM/latest/UserGuide/ManagingUserCerts.html | |
declare -ri key_size=2048 | |
declare -ri days=365 | |
openssl genrsa ${key_size} > private-key.pem | |
openssl pkcs8 -topk8 -nocrypt -inform PEM -in private-key.pem \ |
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
Package: libcuda1 libgl1-nvidia-glx libgl1-nvidia-glx-i386:i386 libgl1-nvidia-glx:i386 libgl1-nvidia-glx libnvcuvid1 libnvcuvid1:i386 libnvidia-compiler libnvidia-encode1 libnvidia-encode1:i386 libnvidia-ifr1 libnvidia-ifr1:i386 libnvidia-ml1 libnvidia-ml1:i386 libvdpau1 libvdpau1:i386 nvidia-alternative nvidia-cuda-mps nvidia-driver nvidia-glx nvidia-kernel-dkms nvidia-kernel-source nvidia-opencl-common nvidia-opencl-icd nvidia-settings nvidia-smi nvidia-support nvidia-vdpau-driver nvidia-vdpau-driver:i386 nvidia-xconfig xserver-xorg-video-nvidia | |
Pin: release a=experimental | |
Pin-Priority: 950 |
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 | |
declare lua_soname | |
declare -r distro="$(lsb_release -is)" | |
declare pms | |
declare package | |
if [ -n "${distro}" ] | |
then |
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
### Configuration for youtube-dl | |
### See: https://rg3.github.io/youtube-dl/documentation.html | |
## Video Selection: | |
# skip download for matching titles (regex or caseless sub-string) | |
#--reject-title FistShark | |
# Try to download the DASH manifest on YouTube videos (experimental) |
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 | |
declare -r vout_dir="${0%/*}" | |
declare -r time_stamp="$(date +'%Y%m%d%H%M%S')" | |
declare -r file_name="recording-${time_stamp}" | |
declare -i capture_x_offset=0 | |
# Check if both monitors are active | |
if [ "$(xrandr | head -n 1 | sed 's/.*current\ \([0-9]*\)\ .*/\1/')" = "3840" ] | |
then |
OlderNewer