Skip to content

Instantly share code, notes, and snippets.

@devinschumacher
devinschumacher / bulk-transfer-github-issues.md
Last active September 28, 2024 00:24
Bulk Transfer Github Issues to Another Repository
@tenderlove
tenderlove / changing_logo.md
Last active May 20, 2016 14:45
logo change on the Infinity ErgoDox

Install pillow

$ pip3 install pillow

Generate code from bmp

$ python3 Scan/STLcd/bitmap2Struct.py ~/Desktop/dz.bmp
@gene1wood
gene1wood / all_aws_lambda_modules_python.md
Last active November 15, 2024 16:58
AWS Lambda function to list all available Python modules for Python 2.7 3.6 and 3.7
@swinton
swinton / AESCipher.py
Last active November 8, 2024 18:31
Encrypt & Decrypt using PyCrypto AES 256 From http://stackoverflow.com/a/12525165/119849
#!/usr/bin/env python
import base64
from Crypto import Random
from Crypto.Cipher import AES
BS = 16
pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
unpad = lambda s : s[0:-ord(s[-1])]
@jugyo
jugyo / gist:3882497
Created October 13, 2012 00:16
nginx + ngx_lua on Mac
@mperham
mperham / convert.rake
Created March 15, 2012 17:44
Ruby script to update MySQL from Latin1 to UTF8 without data conversion
desc "convert a latin1 database with utf8 data into proper utf8"
task :convert_to_utf8 => :environment do
puts Time.now
dryrun = ENV['DOIT'] != '1'
conn = ActiveRecord::Base.connection
if dryrun
def conn.run_sql(sql)
puts(sql)
end
else