I hereby claim:
- I am jerius on github.
- I am jerius (https://keybase.io/jerius) on keybase.
- I have a public key whose fingerprint is F9EE B884 B87D 544F E725 7903 64E2 EBA9 6661 93C8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Description: | |
# Log all the things to ElasticSearch then lets you ask hubot what you missed | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# ELASTICSEARCH_HOSTNAME - E.G. elasticsearch.example.com:9200, where to send the put requests | |
# ELASTICSEARCH_USERNAME - OPTIONAL basic auth username | |
# ELASTICSEARCH_PASSWORD - OPTIONAL basic auth password |
<html> | |
<head> | |
<title>Animated Sparkline using SVG Path and d3.js</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<style> | |
/* tell the SVG path to be a thin blue line without any area fill */ | |
path { | |
stroke: steelblue; | |
stroke-width: 1; | |
fill: none; |
require 'net/http' | |
require 'net/https' | |
require 'open-uri' | |
require 'optparse' | |
require 'readline' | |
require 'openssl' | |
['TERM', 'INT'].each do |signal| | |
trap(signal){exit} | |
end |
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix | |
set bell-action none | |
set-option -g status-left "" | |
set-option -g status-right "#S" | |
set -g status-bg black | |
set -g status-fg white | |
set utf8-default on |
1 from fabric.api import run, env, get | |
2 | |
3 def target_server(): | |
4 ip = raw_input("IP Address: ") | |
5 port = raw_input("Port: ") | |
6 password = raw_input("Password: ") | |
7 env.host_string = ("root@%s:%s") % (ip, port) | |
8 env.password = password | |
9 | |
10 def server_info_download(): |
from os import * | |
ip = raw_input("Destination server IP: ") | |
for each in listdir('/var/cpanel/users'): | |
system('/scripts/pkgacct --skiphomedir --nocompress %s /home cpmove' % each) | |
system('scp /home/cpmove-*.tar root@%s:/home/' % ip) | |
system('rsync -avHle ssh /home/%s/ root@%s:/home/%s/ --progress' % (each, ip, each)) |