###To laptop
Specify an IP address to eth0 (here 192.168.56.1)
sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0
| #!ipxe | |
| # Set server where image will be downloaded. | |
| # archive.ubuntu.com works fine but you can use your own. | |
| set server archive.ubuntu.com | |
| # Specify a distro | |
| # Just type the distro codename here... | |
| set distro quantal |
| import MySQLdb.cursors | |
| from twisted.enterprise import adbapi | |
| from scrapy.xlib.pydispatch import dispatcher | |
| from scrapy import signals | |
| from scrapy.utils.project import get_project_settings | |
| from scrapy import log | |
| SETTINGS = get_project_settings() |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| import tweepy #https://github.com/tweepy/tweepy | |
| import csv | |
| #Twitter API credentials | |
| consumer_key = "" | |
| consumer_secret = "" | |
| access_key = "" |
| #! /usr/bin/env python | |
| import urllib2 | |
| import json | |
| import sys | |
| def main(args): | |
| if len(args) != 2: | |
| print "%s IPADDR" % args[0] | |
| exit(255) |
| rate_limit = api.rate_limit_status() | |
| [key2 for key in rate_limit['resources'] for key2 in rate_limit['resources'][key].keys() if rate_limit['resources'][key][key2]['remaining']==0] |
| #!/usr/bin/php | |
| <?php | |
| # Senderbase Monitoring Plugin for Nagios | |
| # Dan Miller <[email protected]> | |
| error_reporting(E_ERROR | E_PARSE); | |
| # Function to swap the octets of an IP... | |
| # ..address around in to ARPA formatting. |
I hereby claim:
To claim this, I am signing this object:
| #! /usr/bin/env python | |
| """ racktables.py | |
| Simple script that parses data from 'show mac address-table' command of Dell | |
| Poweredge 5548 switch, and updates the Racktables DB accordingly | |
| [email protected] | |
| """ |
| #!/bin/bash | |
| VERSION=$(awk '{print $1}' /usr/local/psa/version) | |
| VERSION_MAJOR=$(echo $VERSION | cut -d'.' -f1) | |
| cat <<EOF | |
| { | |
| "plesk_version" : "$VERSION", | |
| "plesk_version_major" : "$VERSION_MAJOR" | |
| } |