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
.bs-wizard {padding: 0 0 10px 3px; margin-left: 0px;} | |
.bs-wizard > .bs-wizard-step {margin: 0 -1px 0 0; padding: 0; position: relative;} | |
.bs-wizard > .bs-wizard-step + .bs-wizard-step {} | |
.bs-wizard > .bs-wizard-step .bs-wizard-stepnum {color: #595959; font-weight: bold; font-size: 16px; margin-bottom: 5px;} | |
.bs-wizard > .bs-wizard-step .bs-wizard-info {color: #999; font-size: 14px;} | |
.bs-wizard > .bs-wizard-step > .bs-wizard-dot {position: absolute; width: 30px; height: 30px; display: block; background: #fbe8aa; top: 45px; left: 50%; margin-top: -15px; margin-left: -15px; border-radius: 50%;} | |
.bs-wizard > .bs-wizard-step > .bs-wizard-dot:after {content: ' '; width: 14px; height: 14px; background: #fbbd19; border-radius: 50px; position: absolute; top: 8px; left: 8px; } | |
.bs-wizard > .bs-wizard-step > .progress {position: relative; border-radius: 0px; height: 8px; box-shadow: none; margin: 20px 0;} | |
.bs-wizard > .bs-wizard-step > .progress > .bar {width:0px; box-shadow: none; background: #fbe8aa; transition: wid |
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 | |
SERVICE=openvpn; | |
while [[ test $(ps -ef |grep ${SERVICE}) -gt 0 ]] | |
do | |
echo "waiting for openvpn..." | |
sleep 1m | |
done |
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 reset_vm { | |
echo "resetting $1..." | |
cd /home/pettazz/VMs/ | |
if [ -a $1.pid ] | |
then | |
echo "killing existing VM pid:" |
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
var urls = []; | |
var thumbs = $('.tab-frame-content .pg img.pv-img'); | |
var doit = function(idx){ | |
if(idx < thumbs.length){ | |
var el = $(thumbs[idx]); | |
var link = el.parent('a'); | |
link.trigger('mousedown'); | |
var timeoutID = window.setTimeout(function(){ | |
$('.pf-plane > .pv-ready .pv-inner > img.pv-img').each(function(){ | |
var style = $(this).attr('style'); |
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 | |
lvcreate -L2G -s -n /dev/alonso-vg/root-snapshot /dev/alonso-vg/root | |
dd if=/dev/alonso-vg/root-snapshot bs=16M status=progress | gzip -9 > /backup/alonso.nightly.gz | |
lvremove -f /dev/alonso-vg/root-snapshot |
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 | |
declare -A oids | |
#upload | |
oids["sent-lo"]=".1.3.6.1.2.1.31.1.1.1.10.1" | |
oids["sent-eth0"]=".1.3.6.1.2.1.31.1.1.1.10.2" | |
oids["sent-vlan1"]=".1.3.6.1.2.1.31.1.1.1.10.5" | |
oids["sent-vlan2"]=".1.3.6.1.2.1.31.1.1.1.10.6" | |
oids["sent-eth1"]=".1.3.6.1.2.1.31.1.1.1.10.11" |
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 | |
$data = 'blah'; | |
$data = hex2bin($data); | |
header('Content-Type: image/png'); | |
imagepng(imagecreatefromstring($data)); | |
?> |
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
import threading | |
import time | |
from selenium import webdriver | |
TOTAL_WORKERS = 10 | |
TWITTER_USER = 'butts' | |
TWITTER_PASSWORD = 'bu77s' | |
def worker(): |
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 | |
import sys | |
BAD_PEOPLE = [ | |
'192.168.1.118', | |
'192.168.1.119' | |
] | |
while True: | |
# squid writes stuff to us via stdin like this: |
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 | |
if [ "$1" == 'stop' ]; then | |
echo "Stopping selenium server..." | |
pid=`ps -eo pid,args | grep selenium-server.jar | grep -v grep | cut -c1-6` | |
kill -9 $pid | |
elif [ "$1" == 'start' ]; then | |
echo "Starting selenium server..." | |
cd /Library/Python/2.7/site-packages/SeleniumLibrary/lib/ | |
java -jar selenium-server.jar &> /dev/null & | |
else |
OlderNewer