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
1 | |
1 AM | |
1 CL | |
1 CO | |
1 EG | |
1 GE | |
1 HK | |
1 ID | |
1 IN | |
1 IT |
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 | |
# Re-order interfaces on supermicro boxes to ensure eth0/eth1 are the on-board NICs | |
# Priority given to interfaces with MAC addresses in the SUPERMICRO_ADDRESSES list below | |
RULES_FILE=$1 | |
if [ ! -f "${RULES_FILE}" ]; then | |
echo "Rules file ${RULES_FILE} does not exist! Cannot overwrite" | |
exit 1 |
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
import re | |
class UnJamesEr(object): | |
def __init__(self): | |
while True: | |
ip = raw_input('> ') | |
output = "" | |
for word in ip.split('ay'): |
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
import re | |
class CapsTalk(object): | |
def __init__(self): | |
self.parseInput() | |
def parseInput(self): | |
counter = 0 | |
while True: |
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
- 14:18 UTC | |
**ATTENTION** | |
Our DC Ops personnel are actively engaged in sourcing fuel supplies from | |
vendors in the local area. As of now we continue to run on the available | |
fuel reserves on the mezzanine level could stop supporting customer load | |
at anytime. Once this fuel supply has been exhausted the generator will no | |
longer be able to sustain operation and critical customer power loads will | |
be lost. We urge all Internap customers to take necessary remote action, |
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
from escpos import * | |
import requests | |
import sys | |
import textwrap | |
from time import sleep | |
import twitter | |
p = escpos.Escpos(7344, 3, 0) | |
devwidth = 31 |
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
Sams-MacBook-Air:~ sr$ dig gopotato.co.uk | |
; <<>> DiG 9.8.3-P1 <<>> gopotato.co.uk | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34011 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 6, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;gopotato.co.uk. IN A |
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
Sams-MacBook-Air:~ sr$ nslookup gopotato.co.uk | |
Server: 192.168.0.1 | |
Address: 192.168.0.1#53 | |
Non-authoritative answer: | |
Name: gopotato.co.uk | |
Address: 94.23.155.32 | |
Sams-MacBook-Air:~ sr$ ping 94.23.155.32 | |
PING 94.23.155.32 (94.23.155.32): 56 data bytes |
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
Dropped Packet:IN=eth0 OUT= MAC=00:27:0e:0b:86:51:ec:30:91:e0:df:80:08:00 SRC=213.251.188.141 DST=188.165.192.119 LEN=63 TOS=0x00 PREC=0x00 TTL=60 ID=27771 PROTO=UDP SPT=37983 DPT=53 LEN=43 | |
Dropped Packet:IN=eth0 OUT= MAC=00:27:0e:0b:86:51:ec:30:91:e0:df:80:08:00 SRC=213.251.188.141 DST=188.165.192.119 LEN=58 TOS=0x00 PREC=0x00 TTL=60 ID=27772 PROTO=UDP SPT=37983 DPT=53 LEN=38 | |
Dropped Packet:IN=eth0 OUT= MAC=00:27:0e:0b:86:51:ec:30:91:e0:df:80:08:00 SRC=213.251.188.141 DST=188.165.192.119 LEN=63 TOS=0x00 PREC=0x00 TTL=60 ID=27773 PROTO=UDP SPT=37983 DPT=53 LEN=43 | |
Dropped Packet:IN=eth0 OUT= MAC=00:27:0e:0b:86:51:ec:30:91:e0:df:80:08:00 SRC=213.251.188.141 DST=188.165.192.119 LEN=82 TOS=0x00 PREC=0x00 TTL=60 ID=27774 PROTO=UDP SPT=37983 DPT=53 LEN=62 | |
Dropped Packet:IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:27:0e:0b:86:2e:08:00 SRC=188.165.192.95 DST=188.165.192.255 LEN=78 TOS=0x00 PREC=0x00 TTL=128 ID=728 PROTO=UDP SPT=137 DPT=137 LEN=58 | |
Dropped Packet:IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:27:0e:0b:86:2e:08: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
/*Add cursor to the spans and labels*/ | |
form .mycssdropdown li label, form .mycssdropdown li label span{ | |
cursor:pointer; | |
} | |
/*By default, hide the spans*/ | |
form .mycssdropdown li label span{ | |
display:none; | |
} |
NewerOlder