Usage
go build log.go
./log --port="1337"
./log --port="-1" # Prefer local logger
#!/usr/bin/perl | |
my $ssh="/usr/bin/ssh"; | |
my $mosh="/usr/bin/mosh"; | |
my $host; | |
my $unsupported=0; | |
for (my $i=0; $i <= $#ARGV; $i++) { | |
if ($ARGV[$i] =~ /^-/) { | |
$ssh .= " \"$ARGV[$i]\""; |
Usage
go build log.go
./log --port="1337"
./log --port="-1" # Prefer local logger
#!/bin/bash | |
# | |
# ************************************************* | |
# chkconfig: 2345 70 99 | |
# description: tasks to perform on server startup | |
# ************************************************* | |
# | |
# Installation: | |
# 1. save as /etc/rc.d/init.d/server | |
# 2. chmod a+x /etc/rc.d/init.d/server |
#!/bin/bash | |
# | |
# ************************************************* | |
# chkconfig: 2345 99 99 | |
# description: auto-start our deploy script on reboot | |
# ************************************************* | |
# | |
# Installation: | |
# 1. save as /etc/rc.d/init.d/deploy | |
# 2. chmod a+x /etc/rc.d/init.d/deploy |
#!/bin/bash | |
# | |
# ************************************************* | |
# chkconfig: 2345 99 99 | |
# description: send pushover notification on system boot. | |
# ************************************************* | |
# Installing: | |
# 1) save as /etc/rc.d/init.d/notify | |
# 2) set the token and user in TOKEN and USER | |
# 3) chmod a+w /etc/rc.d/init.d/notify |
package config | |
type Conf struct { | |
User, Password String | |
} |
nice top -d 2 -u nobody -c |
for i in $( find "public/" -name "*.css" ! -name "*.min.css" ); | |
do | |
printf "Minifying %s... " $i | |
java -jar "./yuicompressor-2.4.8.jar" --type css -o '.css$:.css' "$i" | |
echo "Done!" | |
done |
# | |
# Add this somewhere in your httpd.conf file. | |
# I recommend you put it near the same | |
# place that your .htaccess access | |
# exclusions are configured. | |
# | |
<Directorymatch "^/.*/\.git/"> | |
Order deny,allow | |
Deny from all | |
</Directorymatch> |
package main | |
import ( | |
"fmt" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"time" | |
) | |
type Person struct { |