Skip to content

Instantly share code, notes, and snippets.

View nodesocket's full-sized avatar

Justin Keller nodesocket

View GitHub Profile
@nodesocket
nodesocket / gist:4179246
Created November 30, 2012 22:47
MySQL Client Version
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* epel: linux.mirrors.es.net
* remi: remi-mirror.dedipower.com
* rpmforge: repoforge.eecs.wsu.edu
Installed Packages
Name : mysql
Arch : x86_64
Version : 5.5.28
Release : 1.el6.remi
a88888b. dP oo
d8' `88 88
88 .d8888b. 88d8b.d8b. 88d8b.d8b. .d8888b. 88d888b. .d888b88 .d8888b. dP .d8888b.
88 88' `88 88'`88'`88 88'`88'`88 88' `88 88' `88 88' `88 88' `88 88 88' `88
Y8. .88 88. .88 88 88 88 88 88 88 88. .88 88 88 88. .88 88. .88 dP 88 88. .88
Y88888P' `88888P' dP dP dP dP dP dP `88888P8 dP dP `88888P8 `88888P' 88 dP `88888P'
➜ ~ traceroute 108.161.180.114
traceroute to 108.161.180.114 (108.161.180.114), 64 hops max, 52 byte packets
1 10.0.0.1 (10.0.0.1) 1.832 ms 0.579 ms 0.752 ms
2 c-76-102-196-1.hsd1.ca.comcast.net (76.102.196.1) 40.506 ms 16.166 ms 30.490 ms
3 te-7-2-ur02.sfpine.ca.sfba.comcast.net (68.87.197.245) 9.425 ms 10.611 ms 9.763 ms
4 te-1-12-0-1-ar01.oakland.ca.sfba.comcast.net (68.85.154.150) 12.814 ms 14.308 ms 15.567 ms
5 he-2-12-0-0-cr01.sacramento.ca.ibone.comcast.net (68.86.90.129) 23.996 ms 24.649 ms 23.833 ms
6 pos-0-7-0-0-cr01.sanjose.ca.ibone.comcast.net (68.86.85.46) 15.802 ms 17.429 ms 20.595 ms
7 pos-0-3-0-0-pe01.11greatoaks.ca.ibone.comcast.net (68.86.87.18) 20.829 ms 20.385 ms 19.979 ms
8 173.167.57.122 (173.167.57.122) 21.958 ms 18.516 ms 20.206 ms
a88888b. dP oo
d8' `88 88
88 .d8888b. 88d8b.d8b. 88d8b.d8b. .d8888b. 88d888b. .d888b88 .d8888b. dP .d8888b.
88 88' `88 88'`88'`88 88'`88'`88 88' `88 88' `88 88' `88 88' `88 88 88' `88
Y8. .88 88. .88 88 88 88 88 88 88 88. .88 88 88 88. .88 88. .88 dP 88 88. .88
Y88888P' `88888P' dP dP dP dP dP dP `88888P8 dP dP `88888P8 `88888P' 88 dP `88888P'
root@mysql1.commando.io
00:07:56 up 23 days, 22:02, 0 users, load average: 0.00, 0.00, 0.00
a88888b. dP oo
d8' `88 88
88 .d8888b. 88d8b.d8b. 88d8b.d8b. .d8888b. 88d888b. .d888b88 .d8888b. dP .d8888b.
88 88' `88 88'`88'`88 88'`88'`88 88' `88 88' `88 88' `88 88' `88 88 88' `88
Y8. .88 88. .88 88 88 88 88 88 88 88. .88 88 88 88. .88 88. .88 dP 88 88. .88
Y88888P' `88888P' dP dP dP dP dP dP `88888P8 dP dP `88888P8 `88888P' 88 dP `88888P'
root@web1.commando.io
<div class="well kbase">
<h3>Contents</h3>
<table class="table">
<tbody>
<tr>
<td width="50%"><a class="btn btn-large btn-primary" href="/howto/create-edge-rule/">Create a Rule</a> <a class="btn btn-large btn-primary" href="/howto/delete-edge-rule/">Delete a Rule</a> <a class="btn btn-large btn-primary" href="/howto/edit-edge-rule/">Edit a Rule</a></td>
<td width="50%"><a class="btn btn-large btn-primary" href="/edge-rule-examples/301-redirect/">301 Redirect</a></td>
</tr>
</tbody>
</table>
location ~* \.(?:css|js)$ {
allow 64.3.62.1;
deny all;
...
}
location ~ \.(?:css|js)$ {
set $no_cache 0
if ($http_method ~ (GET|HEAD)) {
set $no_cache 1;
}
...
proxy_no_cache $no_cache;
...
}
<?php
$domains_path = "/srv/www/domains";
$full_path = $domains_path . "/commando.io";
$repo = "git@github.com:nodesocket/commando.io.git";
if(is_dir($full_path)) {
exec("cd $full_path && git pull");
echo '{"pull":true}';
} else {
exec("cd $domains_path && git clone $repo");
rs-san-jose:PRIMARY> rs.status()
{
"set" : "rs-san-jose",
"date" : ISODate("2013-02-03T20:24:30Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "10.52.30.71:27017",
"health" : 1,