Skip to content

Instantly share code, notes, and snippets.

View tylerkerr's full-sized avatar

Tyler Kerr tylerkerr

View GitHub Profile

inside the application package, open dm-launcher.sh and change the line reading VMOPTIONS="`/usr/libexec/PlistBuddy -c "Print :VMOptions" "$PINFO_PLIST_FILE"`"

to

VMOPTIONS="-Dhttps.protocols=TLSv1.1 -Dhttps.cipherSuites=TLS_RSA_WITH_AES_128_CBC_SHA -Xms64m -Xmx512m"

from flask import Flask
from flask import request
from requests import post
from slackclient import SlackClient
from datetime import datetime
import re
import os
import json
app = Flask(__name__)
@tylerkerr
tylerkerr / makemac.py
Last active May 16, 2018 18:30
quick MAC address formatter. it's really annoying to manually insert/remove colons
#!/usr/bin/env python3
import sys
import argparse
import subprocess
import re
def cleanmac(mac):
return re.sub('[^0-9a-f]', '', mac.lower())
#!/usr/bin/env python3
import re
import os
import sys
import random
from itertools import chain, product
testkey = 'q w e r'
message = 'ta kzxwgpdjtctpf prozif, d nop zs adpgidc agxjoin tn kdccom iokgintho, kzxwgpdjco zi moktmdjco ts proio tn da dcyzitprx ertkr poixtadpon dspoi d statpo dxzgap zs ptxo (ertkr xdf mowoam za pro ythoa agxjoi) dam kziiokpcf moktmon eroproi d ythoa agxjoi joczayn pz pro nop.'
@tylerkerr
tylerkerr / makemac.py
Last active September 8, 2017 14:24
turns whatever format of MAC address (AA-BB-CC, aa:bb:cc, etc) into either cisco format (abcd.1234.1234) or MS DHCP format (abcd12341234)
#!/usr/bin/env python3
import sys
import argparse
import re
def cleanmac(mac):
return re.sub('(\.|-| |\:)', '', mac)
def checkmac(mac):

chili

Shopping List

  • 2 medium/large spanish onions
  • 8 cloves garlic
  • 2lbs lean (80%) ground beef
  • 2x 800ml cans dark red kidney beans
  • 2x 680ml cans tomato sauce ("all-purpose", the kind with spices and no chunks)
  • whatever spices below that you don't already have
package main
import "fmt"
import "os"
import "strconv"
import "math"
func sieve(n int) []int {
isprime := make([]bool, n+1)
export PS1='\[\e[0;39m\][\[\e[0;36m\]\u\[\e[0;97m\]@\[\e[0;32m\]\h \[\e[0;90m\]\W\[\e[0;97m\]]\[\e[0;39m\]'
#!/usr/bin/env python3
# toy RSA key generation/encryption/decryption
# this is only a demonstration of the underlying math - extremely unsafe!
# unmodified textbook RSA is both malleable and semantically insecure.
import subprocess
from gmpy import invert # requires gmpy for modular inversion
def ascii2int(string): # function for converting an ascii string to a single integer so that we can do math on it
www.pinterest.com##.unauth.full.Module.AppBase.App > .appContent > .mainContainer > .Nags.Module