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
#!/usr/bin/env python | |
""" | |
Usage: | |
./rtail.py user@host:port:path/foo.log bar.log host2:port:/path/baz.log | |
""" | |
import optparse | |
import os |
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 | |
################################################################################ | |
# Subversion daily report generator 1.0 # | |
# fast & dirty version by Grzegorz Blaszczyk <[email protected]> # | |
################################################################################ | |
AFTER_HOURS=17 | |
CAT=`which cat` |
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 | |
function print_usage { | |
echo "Usage: $0 [delay time in seconds]" | |
} | |
SLEEP_TIME=2 | |
if [ "x$1" != "x" ]; then | |
if [[ $1 == "-h" || $1 == "--help" ]]; then | |
print_usage; |
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
AUTO_ACCEPT=true rake db:reset --trace |
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
list_of_sheets.xml | |
nodes.txt |
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 | |
SWAP_FILE="/swap" | |
sudo swapoff ${SWAP_FILE} | |
sudo dd if=/dev/zero of=${SWAP_FILE} bs=1M count=2048 && sudo mkswap ${SWAP_FILE} && sudo chmod 0600 ${SWAP_FILE} && sudo swapon ${SWAP_FILE} |
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 | |
# Quick and dirty MP4 to MP3 converter | |
# by Grzegorz Błaszczyk <[email protected]> 2014-2015 | |
# License: MIT http://rem.mit-license.org/ | |
MPLAYER=`which mplayer` | |
LAME=`which lame` | |
RM=`which rm` |
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 | |
CREATE_USER="$1" | |
# Do it as root | |
apt-get update | |
apt-get install -y vim mc curl libcurl4-openssl-dev git libmysqlclient-dev mysql-client patch gawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev | |
useradd -d /home/${CREATE_USER} -m ${CREATE_USER} |
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 | |
TAIL=`which tail` | |
APP="app" | |
NGINX_ACCESS_LOG_FILE="/opt/nginx-${APP}/logs/access.log" | |
NGINX_ERROR_LOG_FILE="/opt/nginx-${APP}/logs/error.log" | |
RAILS_LOG="${HOME}/current/log/staging.log" | |
$TAIL -f $NGINX_ACCESS_LOG_FILE $NGINX_ERROR_LOG_FILE $RAILS_LOG |
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 | |
# Do it as root | |
apt-get update | |
apt-get install -y vim mc curl libcurl4-openssl-dev git libmysqlclient-dev mysql-client patch gawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev | |
USERNAME=$1 | |
useradd -d /home/$USERNAME -m $USERNAME |
OlderNewer