conda install pyyaml conda install PYGI conda install pygi conda install numpy conda install gtk2 conda install -c anaconda gtk2-cos6-x86_64
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 | |
| # creates 4 jails with escalating bans for repeat offenders | |
| # 10min --> 1 hr --> 3 hrs --> 1 day --> 1 week | |
| # creates a filter file and jail definition file | |
| # credit goes to https://blog.shanock.com/fail2ban-increased-ban-times-for-repeat-offenders/ | |
| # run from /etc/fail2ban | |
| cd /etc/fail2ban | |
| cat <<\EOF | base64 -d | tar xfvz - | |
| H4sIAMKNrV8AA+2UUU/bMBDH++xPYalvTGscxzEMrUhsBbEJbQ9Q7aH0wWmd1Ftid44zwbfnUiCK | |
| JjQUqdqYdL8X6+zz/e3k/s5NGbSfrKOcZ29L57aTlbP5aK8wQAqxG4HfR5aIw1GcHIqUxyyVkBcn |
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 socket | |
| import argparse | |
| from time import sleep | |
| from datetime import datetime | |
| import sys | |
| wordsStore = [] | |
| try: | |
| from essential_generators import DocumentGenerator |
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
| /* | |
| * NAME: Arduino Mouse Jiggler | |
| * DATE: 2020-09-17 | |
| * DESC: Arduino based mouse emulator | |
| * VERSION: 1.0 | |
| */ | |
| #include <Mouse.h> | |
| //#define debug 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
| # pretty print string as Hex | |
| pphex = lambda data:"0x0000 " + ''.join("{}{}{}".format("{0:#0{1}x}".format(ord(xxx),4)[2:] , " " if (1+i) % 8 == 0 else ":", "\t{} {}\n{} ".format(data[i-15:i-7],data[i-7:i+1],"{0:#0{1}x}".format(i,6)) if (1+i) % 16 == 0 else "") for i,xxx in enumerate(data)) + (" " if len(data) % 16 < 8 else "").join((lambda ii:[":".join([" "] *((8-ii) % 8 if ii<8 else 0)) , ":".join([" "] * (0 if ii==0 else (8-ii) % 8 if ii>8 else 8))]) (len(data) % 16)) + ("\t{} {}".format(data[-(len(data) % 16):][:8],data[-(len(data) % 16):][8:16]) if (len(data) % 16) != 0 else "") | |
| data=b'Once upon a time in a land called Xanth, there was a king who was sad because his queen had died in childbirth of their only daughter. The princess was the \x02apple of the King\'s eye.' | |
| # | |
| print(pphex(data[:-5].decode("utf-8"))) | |
| # | |
| #0x0000 4f:6e:63:65:20:75:70:6f 6e:20:61:20:74:69:6d:65 Once upo n a time | |
| #0x000f 20:69:6e:20:61:20:6c:61 6e:64:20:63:61:6c:6c:65 in a la nd calle | |
| #0x001f 64:20:58:61:6e:74 |
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
| Homebrew build logs for guitorri/tap/qucs on macOS 10.15.3 | |
| Build date: 2020-04-10 19:25:49 |
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 Node(): | |
| def __init__(self): | |
| # Note that using dictionary for children (as in this implementation) would not allow lexicographic sorting mentioned in the next section (Sorting), | |
| # because ordinary dictionary would not preserve the order of the keys | |
| self.children = {} # mapping from character ==> Node | |
| self.parent = None | |
| self.name = "" | |
| self.value = -1 | |
| def __str__(self): |
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 | |
| # -*- coding: utf-8 -*- (because 0xFF, even : "Yucatán") | |
| import os, re, sys, getopt | |
| _words = [ | |
| ["aardvark", "adroitness"], ["absurd", "adviser"], ["accrue", "aftermath"], ["acme", "aggregate"], ["adrift", "alkali"], ["adult", "almighty"], | |
| ["afflict", "amulet"], ["ahead", "amusement"], ["aimless", "antenna"], ["Algol", "applicant"], ["allow", "Apollo"], ["alone", "armistice"], | |
| ["ammo", "article"], ["ancient", "asteroid"], ["apple", "Atlantic"], ["artist", "atmosphere"], ["assume", "autopsy"], ["Athens", "Babylon"], | |
| ["atlas", "backwater"], ["Aztec", "barbecue"], ["baboon", "belowground"], ["backfield", "bifocals"], ["backward", "bodyguard"], |
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 gen_nonce(length): | |
| """ Generates a random string of bytes, base64 encoded """ | |
| if length < 1: | |
| return '' | |
| string=base64.b64encode(os.urandom(length),altchars=b'-_') | |
| b64len=4*floor(length,3) | |
| if length%3 == 1: | |
| b64len+=2 | |
| elif length%3 == 2: | |
| b64len+=3 |