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 datetime | |
import fnmatch | |
from functools import partial | |
import gzip | |
import json | |
import os | |
import shutil | |
import socket |
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
upstream elasticsearch { | |
# google auth proxy -> elasticsearch | |
server 127.0.0.1:9201; | |
} | |
server { | |
root /path/to/kibana; | |
# insert standard Nginx boilerplate... |
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 __future__ import unicode_literals | |
import logging | |
# built-in attributes on LogRecord. Used to determine what is passed in `extras` | |
RESERVED_ATTRS = ( | |
'args', 'asctime', 'created', 'exc_info', 'exc_text', 'filename', | |
'funcName', 'levelname', 'levelno', 'lineno', 'module', | |
'msecs', 'message', 'msg', 'name', 'pathname', 'process', | |
'processName', 'relativeCreated', 'stack_info', 'thread', 'threadName') |
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 logging.config | |
import os | |
from django.utils.log import DEFAULT_LOGGING | |
# Disable Django's logging setup | |
LOGGING_CONFIG = None | |
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper() | |
logging.config.dictConfig({ |
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
def partition(start, end): | |
pivot = my_list[start] | |
low = start + 1 | |
high = end | |
while True: | |
while low <= high and my_list[high] >= pivot: | |
high = high - 1 | |
while low <= high and my_list[low] <= pivot: | |
low = low + 1 | |
if low <= high: |
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 Crypto.Util.number import * | |
# calculate the solution to 2^10000 * x = 1002773875431658367671665822006771085816631054109509173556585546508965236428620487083647585179992085437922318783218149808537210712780660412301729655917441546549321914516504576 mod 5^174 | |
R.<x> = PolynomialRing(Integers(5^174), implementation='NTL') | |
f = 2^10000 * x - 1002773875431658367671665822006771085816631054109509173556585546508965236428620487083647585179992085437922318783218149808537210712780660412301729655917441546549321914516504576 | |
print(f.monic()) | |
flag = R(-40911366519048706766028794026595817244329662170458953600729420435667708075268681595360226681630085247360526719063455282924) | |
print(flag) | |
flag = long_to_bytes(850582076141850204917088272646087112157789081182432304925852879338520690155230258866308530234671754970789752036398232701) | |
print(flag) |
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
hanoi :: Int -> a -> a -> a -> [(a,a)] | |
hanoi 1 x y z = [(x,y)] | |
hanoi n x y z = hanoi (n-1) x y z ++ hanoi 1 x z y ++ hanoi (n-1) y z x | |
tamhanoi :: Int -> Int | |
tamhanoi n = 2^n - 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
" _ _ " | |
" _ /|| . . ||\ _ " | |
" ( } \||D ' ' ' C||/ { % " | |
" | /\__,=_[_] ' . . ' [_]_=,__/\ |" | |
" |_\_ |----| |----| _/_|" | |
" | |/ | | | | \| |" | |
" | /_ | | | | _\ |" | |
It is all fun and games until someone gets hacked! |
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
intitle:index.of .bash_history | |
intitle:index.of .sh_history | |
intitle:"Index of" index.html.bak | |
intitle:"Index of" index.php.bak | |
intitle:"Index of" index.jsp.bak | |
intitle:"Index of" ".htpasswd" htpasswd.bak | |
inurl:backup intitle:index.of inurl:admin | |
"Index of /backup" | |
intitle:"Index of" index.html~ | |
intitle:"Index of" index.php~ |
NewerOlder