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 | |
zgrep $1 /proc/config.gz |
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 | |
APIKEY=0000000000000000000000000 | |
VPSOID=00000000 | |
VPSNAME=test01.vps | |
# more info on this per http://apidocs.rimuhosting.com/jaxbdocs/com/rimuhosting/rs/order/OSDPrepUtils.NewVPSRequest.html | |
# & instantiation_options: http://apidocs.rimuhosting.com/jaxbdocs/com/rimuhosting/rs/order/OSDPrepUtils.InstantiationData.html | |
create_vps() { | |
echo Installing ${VPSNAME} ... | |
curl -X POST \ |
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 smtplib | |
import argparse | |
import sys | |
parser = argparse.ArgumentParser(description='SMTP Tester', add_help=True) | |
parser.add_argument('-s', '--server', dest='server', action='store', | |
help='Server Name or IP') | |
parser.add_argument('-u', '--username', dest='username', action='store', | |
help='username - try with and without the @') | |
parser.add_argument('-p', '--password', dest='password', action='store', |
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/python | |
# NatGeo Wallpaper Downloader | |
# version: 0.1.2 | |
# author: Abdallah Deeb <abdallah.deeb@gmail.com> | |
# description: Simply python script to download | |
# and set the gnome wallpaper from the | |
# National Geographic "Photo of the day" page | |
# source: http://photography.nationalgeographic.com/photography/photo-of-the-day/ | |
import urllib2, urllib, os, re | |
from gi.repository import Gio |
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
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | |
# found @ http://midnight-cafe.co.uk/linux-commands/netstat-to-find-number-of-connections-from-each-ip/ |
NewerOlder