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
-- Script for creating the autoindent GIF for braceless.vim | |
-- https://github.com/tweekmonster/braceless.vim | |
to slowType(someText) | |
tell application "System Events" | |
repeat with i from 1 to count characters of someText | |
keystroke (character i of someText) | |
delay 0.15 | |
end repeat | |
end tell |
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 | |
echo -en "${@}\x04" > /tmp/fifo_queue |
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 | |
'''Truncates matches from ag | |
Place this script somewhere in your $PATH, like ~/bin and pipe ag into it. | |
Vim could be setup like this: | |
if executable('ag') | |
set grepprg=ag\ --vimgrep\ -w\ $* | |
if executable('agtrunc') |
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/sh | |
# Script for compiling Python 2.7.9 on Ubuntu 14.04 LTS and installing it to /usr/local | |
# * Source files are downloaded and left at /usr/local/src | |
# * Uses checkinstall to generate a deb package, so it will take a while. | |
# * Can be uninstalled using 'dpkg -r private-compiled-python2.7' | |
# * Uncomment line 57 if you *don't* want to install virtualenv and supervisor | |
# * Gists will be downloaded if supervisor's conf or init script doesn't exist. | |
# * You'll need to add /usr/local/bin to your PATH if it's not already | |
ohshi() |
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/sh | |
# This is a quick script to download and install Oracle's Java 8 Server JRE | |
# It was made with Ubuntu 14.04 LTS in mind, and installs to /usr/local | |
# curl pipe this script to sh if you enjoy the thrill of getting into an internet stranger's van | |
prefix="/usr/local" | |
java_url="http://download.oracle.com/otn-pub/java/jdk/8u45-b14/server-jre-8u45-linux-x64.tar.gz" | |
dl_file="/tmp/oracle-java8.tar.gz" | |
ohshi() |
NewerOlder