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
Show hidden characters
more .babelrc | |
{ | |
"presets": [ "@babel/preset-env" ] | |
} |
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
#!/opt/node/bin/node | |
// ~/bin/lib_crypt.js | |
const fs = require('fs') | |
const spawn = require('child_process').spawn | |
const SUCCESS = 0 | |
function in_out_file(direction, base_file_name) { | |
const file_arr = [base_file_name + '.enc', base_file_name + '.txt'] |
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
# ./android/app/build.gradle | |
# Extra missing instructions | |
# 1. Change compileSdkVersion to 25 | |
# 2. and buildToolsVersion to 25.0.3. | |
# 3. and targetSdkVersion to 25 | |
android { | |
compileSdkVersion 25 |
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
%% Config file used to set advanced configuration options | |
[ | |
{riak_kv, [ | |
{delete_mode, immediate} | |
]}, | |
{lager, | |
[ | |
{extra_sinks, | |
[ |
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 aptitude install autoconf autoconf-archive automake libtool | |
$ libtoolize --force | |
$ aclocal | |
$ autoheader | |
$ automake --force-missing --add-missing | |
$ autoconf | |
$ ./configure |
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
# Add this line to your Makefile. | |
print-%: ; @echo $*=$($*) | |
# if you want to know the name of the value of SOURCE_FILES, | |
make print-SOURCE_FILES |
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
(defn add-line-breaks [string-seq] | |
(->> string-seq | |
(interpose "\n") | |
clojure.string/join)) | |
(defmacro record-error [& body] | |
`(try ~@body (catch Throwable t# | |
(add-line-breaks (map str (.getStackTrace t#)))))) |
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
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git\|target' | |
call pathogen#infect() | |
call pathogen#helptags() | |
set nocompatible | |
filetype on | |
filetype plugin on | |
syntax on |
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
# Usage example | |
~/Projects/foo> wol | |
foo | |
bar | |
~/Projects/foo> wop bar | |
source ~/.bashrc | |
~/Projects/bar> |
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
# Usage example: | |
# f entry factory tests | |
# vi <CTRL-V> | |
# | |
# You can change the filtered directories and file types in the first line of the function. | |
# | |
# Find groovy files and copy the unique result to the clip board. | |
function f() { | |
files=`find grails-app src test -name "*.groovy" -type f` | |
for pat in "$@" |
NewerOlder