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
// ## Every console needs a WTF prompt. | |
// | |
// Usage: | |
//console.wtf('This should not have happened AT ALL!', param1, param2); | |
// Check if `console.wtf` is natively supported. | |
if (!console.wtf) { | |
console.wtf = function() { | |
console.warn.apply(console, |
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
user web; | |
# One worker process per CPU core. | |
worker_processes 8; | |
# Also set | |
# /etc/security/limits.conf | |
# web soft nofile 65535 | |
# web hard nofile 65535 | |
# /etc/default/nginx |
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 | |
# Warning: SHA1 is considered cryptographically broken. | |
# Do not use it for very sensitive stuff. | |
# It’s “good enough” for not-so-sensitive stuff. | |
die () { | |
echo >&2 "$@" | |
echo "Usage: ssha.sh username password" | |
exit 1 |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
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
" | |
" Darcula colorscheme for VIM. | |
" | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
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
MOZCELIK-M-21NU:~ volkan$ sh ping.sh | |
Mon Nov 23 17:14:03 2015 PING google.com (198.70.246.110): 56 data bytes | |
Mon Nov 23 17:14:03 2015 64 bytes from 198.70.246.110: icmp_seq=0 ttl=54 time=80.493 ms | |
Mon Nov 23 17:14:08 2015 64 bytes from 198.70.246.110: icmp_seq=1 ttl=54 time=69.436 ms | |
Mon Nov 23 17:14:13 2015 64 bytes from 198.70.246.110: icmp_seq=2 ttl=54 time=121.397 ms | |
Mon Nov 23 17:14:18 2015 64 bytes from 198.70.246.110: icmp_seq=3 ttl=54 time=276.106 ms | |
Mon Nov 23 17:14:23 2015 64 bytes from 198.70.246.110: icmp_seq=4 ttl=54 time=167.700 ms | |
Mon Nov 23 17:14:28 2015 64 bytes from 198.70.246.110: icmp_seq=5 ttl=54 time=75.042 ms | |
Mon Nov 23 17:14:33 2015 64 bytes from 198.70.246.110: icmp_seq=6 ttl=54 time=81.456 ms | |
Mon Nov 23 17:14:38 2015 64 bytes from 198.70.246.110: icmp_seq=7 ttl=54 time=329.083 ms |
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
'use strict'; | |
import { | |
GraphQLObjectType, | |
GraphQLSchema, | |
GraphQLList, | |
GraphQLString | |
} from 'graphql/type'; | |
import { Promise } from 'bluebird'; |
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
alias dock='/usr/bin/env bash '\''/Applications/Docker/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'\''' |
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 | |
# MIT Licensed | |
# Maintainer: Volkan Özçelik <[email protected]> | |
# A quick and dirty way to keep a sorted text file of things. | |
# | |
# Usage: | |
# | |
# ./add 'lorem ipsum' 'dolor' 'dolor' 'dolor' 'ipsum dolamet' 'john doe' |
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
function r(s) { | |
if (s === "") return ""; | |
return r(s.substr(1)) + s.charAt(0) | |
} |