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 time sh -c "dd if=/dev/zero of=ddfile bs=8k count=1000000 && sync" | |
echo dd if=/dec/zero of=ddfile2 bs=8K count=500000 | |
echo time dd if=ddfile of=/dev/null bs=8k |
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
// credits to: http://stackoverflow.com/questions/3199588/fastest-way-to-convert-javascript-nodelist-to-array | |
function toArray (nl) { | |
var l=nl.length, arr = new Array(l); | |
while(l--){arr[l]=nl[l];} | |
return arr; | |
} |
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
description "<description here>" | |
author "<author@email.com>" | |
start on filesystem or runlevel [2345] | |
stop on shutdown | |
# Automatically Respawn: | |
respawn | |
respawn limit 3 5 |
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
--- | |
- name: trying to create a directory that requires sudo | |
file: | |
state=directory | |
path=/helloworld | |
# sudo should not be required there! | |
- name: removing it | |
file: | |
state=absent |
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
// Recursively include files and convert paths to camelCase | |
var bulk = require('bulk-require'); | |
exports = module.exports = bulk(__dirname, ['./!(index|_*|*.spec).js']); | |
Object.keys(exports).forEach(function (key) { | |
var camelCased = key; | |
camelCased = camelCased.replace(/-([a-z])/g, function (g) { | |
return g[1].toUpperCase(); | |
}); | |
if (camelCased !== key) { | |
exports[camelCased] = exports[key]; |
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
server { | |
listen 80; | |
return 444; | |
} |
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
{ | |
"passfail": false, | |
"maxerr": 10, | |
"browser": true, | |
"node": true, | |
"debug": false, | |
"devel": false, | |
"strict": false, |
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
# status bar | |
set-option -g status-utf8 on | |
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
set-option -g status-bg colour235 #base02 | |
set-option -g status-fg colour136 #yellow | |
set-option -g status-attr default | |
# default window title colors | |
set-window-option -g window-status-fg colour244 #base0 |
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
{ | |
"color_scheme": "Packages/User/Monokai (SL).tmTheme", | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"font_size": 10, | |
"margin": 2, | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, |
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
server { | |
listen 80; | |
server_name *.github; | |
location / { | |
proxy_set_header Host api.github.com; | |
proxy_pass https://api.github.com/; | |
} | |
access_log /var/log/nginx/github_access.log combined; |
OlderNewer