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
| -> % whois google.com | grep "Server Name" | awk '{print $3}' | |
| GOOGLE.COM.ZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM | |
| GOOGLE.COM.ZZZZZZ.THE.BEST.WEBHOSTING.AT.WWW.FATUCH.COM | |
| GOOGLE.COM.ZZZZZ.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM | |
| GOOGLE.COM.ZOMBIED.AND.HACKED.BY.WWW.WEB-HACK.COM | |
| GOOGLE.COM.ZNAET.PRODOMEN.COM | |
| GOOGLE.COM.YUCEKIRBAC.COM | |
| GOOGLE.COM.YUCEHOCA.COM | |
| GOOGLE.COM.WORDT.DOOR.VEEL.WHTERS.GEBRUIKT.SERVERTJE.NET | |
| GOOGLE.COM.VN |
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
| -> % whois microsoft.com | grep "Server Name" | awk '{print $3}' | |
| MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZ.THE.BEST.WEBHOSTING.AT.WWW.FATUCH.COM | |
| MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZ.IM.ELITE.WANNABE.TOO.WWW.PLUS613.NET | |
| MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM | |
| MICROSOFT.COM.ZZZZZZ.MORE.DETAILS.AT.WWW.BEYONDWHOIS.COM | |
| MICROSOFT.COM.ZZZZZ.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM | |
| MICROSOFT.COM.ZZZOMBIED.AND.HACKED.BY.WWW.WEB-HACK.COM | |
| MICROSOFT.COM.ZZZ.IS.0WNED.AND.HAX0RED.BY.SUB7.NET | |
| MICROSOFT.COM.WILL.BE.SLAPPED.IN.THE.FACE.BY.MY.BLUE.VEINED.SPANNER.NET | |
| MICROSOFT.COM.WILL.BE.BEATEN.WITH.MY.SPANNER.NET |
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 fileinput | |
| import re | |
| import sys | |
| f = fileinput.input(['/foo/bar/vhost.conf'], inplace=True) | |
| for line in f: | |
| line = re.sub('DocumentRoot (.*)', 'DocumentRoot /root', line) | |
| sys.stdout.write(line) | |
| f.close() |
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
| public class TutoClass { | |
| public static void main(String[] args) { | |
| System.out.println(); | |
| } | |
| } |
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 os | |
| import webbrowser | |
| token_file = 'token.pickle' # optional | |
| api = ScoopItAPI( | |
| 'consumer key', | |
| 'consumer secret' | |
| ) |
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 os | |
| from Queue import Queue | |
| from threading import Thread | |
| class FileDownloader(Thread): | |
| """Threaded file downloader.""" | |
| def __init__(self, infos_tuple): |
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
| class AutoInitModelMixin(object): | |
| """ | |
| Mixin for populating models' columns automatically (no need to | |
| define an __init__ method) and set the default value if any. | |
| Also sets the model's id and __tablename__ automatically. | |
| """ | |
| id = db.Column(db.Integer, primary_key=True) | |
| # use the lowercased class name as the __tablename__ | |
| @declared_attr |
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
| """""""""""""""""""""""""""""" | |
| " VIM CONFIGURATION FILE " | |
| """""""""""""""""""""""""""""" | |
| " pathogen plugin | |
| filetype off | |
| call pathogen#runtime_append_all_bundles() | |
| call pathogen#helptags() | |
| " basic settings |
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
| class ColorFormatter(logging.Formatter): | |
| _colors_map = { | |
| 'DEBUG': '\033[22;32m', | |
| 'INFO': '\033[01;34m', | |
| 'WARNING': '\033[22;35m', | |
| 'ERROR': '\033[22;31m', | |
| 'CRITICAL': '\033[01;31m' | |
| } | |
| def format(self, record): |
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
| killthem () { | |
| for PID in `ps aux | grep -v grep | grep $1 | awk '{print $2}'` | |
| do | |
| ( | |
| kill -9 $PID &> /dev/null && echo "Killed $PID" | |
| ) || echo "Failed to kill $PID" | |
| done | |
| } |