This file contains hidden or 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
#add this line for each USB drive | |
#format USB drive: sudo mkfs.ext4 /dev/sda1 -L untitled | |
UUID=uuid /mnt ext4 auto,rw,defaults 0 0 |
This file contains hidden or 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 | |
# Checkout qt5 submodules to specific branch/tag | |
# call as 'git submodule foreach /path/to/qt5checkout.sh 5.4' | |
if git show-ref | grep -q refs/remotes/origin/$1 ; then | |
echo -e '\e[31mgit checkout ...' | |
git checkout "$1" | |
echo -e '\e[32mgit pull ...' | |
git pull | |
echo -e '\e[39m' |
This file contains hidden or 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/sh | |
# | |
# chmodr.sh | |
# | |
# author: Francis Byrne | |
# date: 2011/02/12 | |
# | |
# Generic Script for recursively setting permissions for directories and files | |
# to defined or default permissions using chmod. | |
# |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<Map background-color="#f2efe9" srs="+proj=latlong +datum=WGS84"> | |
<FontSet name="book-fonts"> | |
<Font face-name="DejaVu Sans Book" /> | |
</FontSet> | |
<Style name="highways"> | |
<Rule> | |
<Filter>[highway] <> ''</Filter> | |
<LineSymbolizer stroke="#808080" stroke-width="2" stroke-linejoin="round" | |
stroke-linecap="round" /> |
This file contains hidden or 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
config = [ | |
{ | |
'consumer_key': 'KEY', | |
'consumer_secret': 'SECRET', | |
'access_token': 'TOKEN', | |
'access_token_secret': 'SECRET' | |
'user_name': 'YOUR_TWITTER_USER' | |
} | |
] |
This file contains hidden or 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
SET pgpass=secret | |
SET pguser=postgres | |
DROPDB -U postgres -h localhost planetosm | |
CREATEDB -U postgres -h localhost -T template_postgis -e -O postgres planetosm | |
psql -h localhost -t -d planetosm -U postgres -a -c "CREATE SCHEMA markware;" | |
psql -h localhost -t -d planetosm -U postgres -a -c "ALTER DATABASE planetosm SET search_path='markware','public';" | |
psql -h localhost -t -d planetosm -U postgres -a -c "GRANT ALL PRIVILEGES ON DATABASE planetosm to osm;" | |
psql -h localhost -t -d planetosm -U postgres -a -c "CREATE EXTENSION hstore;" | |
psql -h localhost -U postgres -f /home/osm900913.sql planetosm |
This file contains hidden or 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/sh | |
### BEGIN INIT INFO | |
# Provides: deluge-daemon | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Daemonized version of deluge and webui. |
This file contains hidden or 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 sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
This file contains hidden or 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 devices: | |
ls /dev/disks/ -l | |
#create RDM | |
vmkfstools -r /vmfs/devices/disks/vml.01000000002020202020202020202020203951473358423630535433353030 /vmfs/volumes/datastore1/MediaServer/hwRAID5.vmdk -a lsilogic |
This file contains hidden or 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
# coding=utf-8 | |
import datetime | |
import sys | |
import time | |
import threading | |
import traceback | |
import SocketServer | |
from dnslib import * |