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
'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 { |
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 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 |
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
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Donald Hutchison", | |
"label": "Senior Software Developer", | |
"image": "", | |
"email": "[email protected]", | |
"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.", |
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
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 |
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
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) |
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
[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 |
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
for %i in (ruby python ftp debug wscript cscript powershell javac) do where %i |
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 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]}" |

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
[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" |
NewerOlder