This file contains hidden or 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 bash | |
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO |
This file contains hidden or 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/sh | |
exec wget https://raw.githubusercontent.com/AlDanial/cloc/master/cloc |
This file contains hidden or 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
// @(#) xslt_transform.js | |
// | |
// (c) Ivan Radanovic <ivan.radanovic at gmail> | |
// | |
// usage: cscript /nologo xslt_transform.js <xslt_file> < <xml_file> | |
// | |
var xml, xslt; | |
function die(msg) { |
This file contains hidden or 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
// @(#) msi_schedule_reboot.js | |
// | |
// Update an MSI so that a reboot action will be required after an install sequence completes. | |
// | |
// (c) Ivan Radanovic, <ivan.radanovic at gmail> | |
// | |
var msi_action = "ScheduleReboot" | |
var msi_condition = "NOT Installed" | |
var msi_sequence = 7000 |
This file contains hidden or 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 bash | |
: ${go_version:=1.8.1} | |
GOROOT=~/sdk/go$go_version exec ~/sdk/go$go_version/bin/go "$@" |
This file contains hidden or 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/sh | |
host=$1 | |
port=$2 | |
retries=600 | |
for i in `seq $retries`; do | |
nc -z $host $port >/dev/null && exit 0 | |
sleep 0.1 | |
done |
This file contains hidden or 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 | |
for i; do | |
[ -e "$i" -a ! -w "$i" ] && exec sudo vim "$@" | |
done | |
exec vim "$@" |
This file contains hidden or 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
Bender: 001100010010011110100001101101110011 | |
Bender: A woman like that you gotta romance first! | |
Bender: Ah crap, I'm some sort of robot! | |
Bender: Ah, computer dating. It's like pimping, but you rarely have to use the phrase 'upside your head'. | |
Bender: Ahhh, functional. | |
Bender: Alright! Closure! | |
Bender: An upgrade? I thought we all agreed I was perfect. | |
Bender: And I bet it's gonna get a lot more confusing. | |
Bender: And the awkward meter goes up another notch. Ding-ding-ding-ding. | |
Bender: Are all the tests gonna involve drinking? |
This file contains hidden or 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 | |
tmpfs_size=1024 | |
tmpfs_target=$HOME/tmpfs | |
tmpfs_size_sectors=$(($tmpfs_size * 1024 * 1024 / 512)) | |
tmpfs_dev=$(hdid -nomount ram://$tmpfs_size_sectors) |
This file contains hidden or 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/sh | |
exec cat > /dev/clipboard |