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 | |
# +----------------------------------------------------------------------+ | |
# | | | |
# | Set up Mac OS X to store temporary files in RAM rather than on disk.| | |
# | Updated for Yosemite, 16 GB of RAM | | |
# | | | |
# | By James Newell <jrnewell@github> | | |
# | | | |
# | Originally by Ricardo Gameiro <http://blogs.nullvision.com/?p=357> | |
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
# list path env variable | |
function list-path() { | |
echo $PATH | tr ':' '\n' | |
} | |
# find text in files | |
function search() { | |
find . -type f -print0 | xargs -0 grep "$1" | |
} |
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
@echo off | |
goto START | |
------------------------------------------------------- | |
go-path.bat | |
set the GOPATH to current directory | |
Created Sat May 3 20:00:00 2014 |
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
# Auto-completion | |
# --------------- | |
[[ $- =~ i ]] && source "/usr/local/opt/fzf/shell/completion.bash" | |
# Key bindings | |
# ------------ | |
source "/usr/local/opt/fzf/shell/key-bindings.bash" | |
# fd - cd to selected directory | |
fd() { |
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 | |
set -e | |
set -o pipefail | |
cd $TEMP | |
archives=( | |
'grep-2.5.4-2-msys-1.0.13-bin.tar.lzma' | |
'libiconv-1.14-1-msys-1.0.17-dll-2.tar.lzma' |
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 | |
run-fixed-cygpath "/cygdrive/c/Windows" explorer.exe "$@" | |
exit $? |
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
BoldAsFont=no | |
Transparency=medium | |
OpaqueWhenFocused=yes | |
Font=Droid Sans Mono | |
FontHeight=10 | |
Columns=162 | |
Rows=44 | |
CursorType=underscore | |
CursorBlinks=no | |
ForegroundColour=211,215,207 |
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 | |
# coding=utf-8 | |
import os | |
import sys | |
import requests | |
import time | |
def get_track_json(track_id): | |
url = 'https://api.spotify.com/v1/tracks/' + track_id |
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 | |
if [[ $# -ne 1 ]]; then | |
echo "usage: $0 <jdk.exe>" | |
echo "result will be in ./jdk" | |
exit 1 | |
fi | |
JDK_EXE=$1 | |
cabextract "$JDK_EXE" -d jdk_extract |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="Pastel" version="124" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="14" /> | |
<option name="EDITOR_FONT_NAME" value="Consolas" /> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="295622" /> | |
<option name="CARET_COLOR" value="bbbbbb" /> | |
<option name="CARET_ROW_COLOR" value="2f393c" /> | |
<option name="CONSOLE_BACKGROUND_KEY" value="1f2223" /> |
NewerOlder