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
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/htpasswd; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
http://www.catonmat.net/blog/bash-one-liners-explained-part-three/ |
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 | |
### BEGIN INIT INFO | |
# Provides: serf | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the serf agent | |
# Description: starts serf agent using start-stop-daemon |
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
<?php | |
/* | |
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine | |
Author: _ck_ | |
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
Version: 0.0.6 | |
* revision history | |
0.0.6 2014-08-02 display fix for empty vs zero | |
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements |
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
{ | |
"order": 0, | |
"template": "*_apache_access", | |
"settings": {}, | |
"mappings": { | |
"apache_logs": { | |
"properties": { | |
"country": { | |
"type": "string" | |
}, |
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 | |
export DEBIAN_FRONTEND=noninteractive | |
# Force Locale | |
echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale | |
locale-gen en_US.UTF-8 | |
# Install Some PPAs | |
echo '>>> Add Nginx development ppa' | |
apt-add-repository -y ppa:nginx/development 2>/dev/null |
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
Dir::Cache { | |
srcpkgcache ""; | |
pkgcache ""; | |
} |
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
https://userscloud.com/svmwe8593ehb/100th_Anniversary_Special_-_Guardians_of_the_Galaxy_01_(2014)_(digital)_(Minutemen-Faessla).cbz | |
https://userscloud.com/lb7fh14rhb08/Guardians_of_the_Galaxy_(FCBD_2014)_(digital)_(Minutemen-Spaztastic).cbr | |
https://userscloud.com/x3qo53t7kc8a/Guardians_of_the_Galaxy_-_Galaxy's_Most_Wanted_001_(2014)_(Digital)_(Zone-Empire).cbr | |
https://userscloud.com/0mjhxiqs2581/Guardians_of_the_Galaxy_000.1_(2013)_(digital)_(Minutemen-PhD).cbr | |
https://userscloud.com/x5zaf6r3jl1j/Guardians_of_the_Galaxy_001_(2013)_(21_Covers)_(Tarutaru-Novus-HD).cbr | |
https://userscloud.com/4crnaof2xs2z/Guardians_of_the_Galaxy_001_(2013)_(digital)_(Minutemen-PhD).cbr | |
https://userscloud.com/uqv1f5ck7f0m/Guardians_of_the_Galaxy_002_(2013)_(digital)_(Minutemen-PhD).cbr | |
https://userscloud.com/8v0giwb7viz1/Guardians_of_the_Galaxy_003_(2013)_(digital)_(Minutemen-PhD).cbr | |
https://userscloud.com/sp46pfmmey9i/Guardians_of_the_Galaxy_004_(2013)_(digital)_(Minutemen-PhD).cbr | |
https://userscloud.com/502nh7yuldeo/Guardians_o |
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
string = "<example string>" | |
string.count('(') - string.count(')') | |
count = 0 | |
string.split('').each_with_index { |char, index| | |
if char == '(' then | |
count += 1 | |
elsif char == ')' then |
OlderNewer