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
''' | |
/* @Cleanup\Delete("SomeRandomString-123") */ | |
// @Cleanup\Delete("asd") | |
''' | |
import os, re, argparse | |
class Filter(): | |
def matches(self): | |
raise NotImplementedError() |
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
/* | |
* Ugly, deprecated code, just archived as a gist | |
* | |
* If you're looking for an example implementation for a brute force algorithm, | |
* you may want to look at this repo: https://github.com/jwoschitz/Brutus/ | |
*/ | |
class Program | |
{ | |
#region Private variables |
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
''' | |
dependencies: | |
requests | |
http://www.python-requests.org/ | |
pip install requests | |
beautifulsoup4 | |
http://www.crummy.com/software/BeautifulSoup/ | |
pip install beautifulsoup4 | |
''' |
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 requests | |
url = 'http://192.168.178.134:8080' | |
chars = { | |
" ": [ | |
'0', | |
'0', | |
'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
<?php | |
spl_autoload_register(function ($class) { | |
// in hhvm, this will not get executed | |
include 'parent_file.php'; | |
}); | |
// this will return false in hhvm due to https://github.com/facebook/hhvm/issues/2097 | |
var_dump(get_parent_class('C')); |
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
print(ObjectId(Math.floor(ISODate("2015-05-07T11:00:00.000Z")/1000).toString(16) + "0000000000000000")) |
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 | |
# ssh-multi | |
# D.Kovalov | |
# Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
# a script to ssh multiple servers over multiple tmux panes | |
starttmux() { | |
if [ -z "$HOSTS" ]; then |
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 NConverter { | |
private final String base9; // The first digit (after the "N") | |
// is always one of these. | |
private final String base10; // The possible second and third digits | |
// are one of these. | |
// Note that "I" and "O" are never used as letters, | |
// to prevent confusion with "1" and "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
#!/usr/bin/env python | |
# | |
# import modules used here -- sys is a very standard one | |
import sys, argparse, logging | |
# Gather our code in a main() function | |
def main(args, loglevel): | |
logging.basicConfig(format="%(levelname)s: %(message)s", level=loglevel) | |
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 python | |
import sys, argparse, logging, requests, json | |
def main(args, loglevel): | |
logging.basicConfig(format="%(levelname)s: %(message)s", level=loglevel) | |
repositories =[] |