Skip to content

Instantly share code, notes, and snippets.

View nikdoof's full-sized avatar
👋

Andrew Williams nikdoof

👋
View GitHub Profile
@nikdoof
nikdoof / pmotd20130306.py
Last active August 29, 2015 13:57
Brute force solver for Problem Of The Day 2014/03/06
# Vigenere Cipher brute forcer
#
# Solution to http://www.problemotd.com/problem/vigenere-cipher/
# By Andrew Williams (github.com/nikdoof)
import itertools, string
alpha = string.ascii_lowercase
def vigenere_encode(text, key):
@nikdoof
nikdoof / pmotd20140307.py
Last active August 29, 2015 13:57
Problem Of The Day 2014/03/07 - Matrix Rotation
# Problem of the Day - 2014/03/07
# http://www.problemotd.com/problem/matrix-rotation/
#
# By Andrew Williams
from datetime import datetime
start = [[1,2,3,4,5],
[6,7,8,9,10],
[11,12,13,14,15],
@nikdoof
nikdoof / sendim.py
Created October 8, 2012 10:07
Send a IM from Android with SL4A and Python
import sys, xmpp
import android
droid = android.Android()
# Default configuration options
config = {
'server': ('talk.google.com', 5223),
'IM_PRIORITY': 0,
'IM_TYPE': 'chat',
'IM_STATUS': 'Quick message...',

Keybase proof

I hereby claim:

  • I am nikdoof on github.
  • I am nikdoof (https://keybase.io/nikdoof) on keybase.
  • I have a public key ASDlkYOw93cu3GgMht95n3r6XfL0Ebl9Pb79iaPTTE12AQo

To claim this, I am signing this object:

BEGIN MESSAGE.
NB1sabvmBKIFxW9 9l07JKfovAM0wMT kxKbMt9uYIqyI3E Qz5vOg5Svz9IvKi
jKYhQ9nJWYYwpR1 SqvhAaiucj4TCKq 6Xr2MZHgg6QAepI 8EZA9R5CFdZqjRq
vT1weG9MuSY4iQ6 2KxGqSypvkCg6bm rfBPQV2Djpd3eNQ 4XWdZY0Px6HMjwH
q4ZHVkp6qY8gve0 XJHL4k2COoattuE 7Duug2IP.
END MESSAGE.
#!/usr/local/bin/perl
# Basic mailer/bug report perl
# Copyright argh@dimension.spodnet.uk.com 1999
require "cgi-lib.pl";
# change this to the location of sendmail on your system
# this should be standard for linux
$SENDMAIL = "/usr/lib/sendmail -t";
@nikdoof
nikdoof / mkv2mp4.sh
Created October 7, 2012 18:51
Script to remux MKVs to MP4s
#!/bin/bash
if [ "$1" == "" ]; then
echo "Usage: $0 <file>"
exit 0
fi
tempdir="/home/torrent/temp"
MKTMP="mktemp -u -p ${tempdir}"
## **[[Book]]**
### **Topics**:
### **Author**:
### **Goodreads URL**:
### **Status**:
### **Started**:
### **Finished**:
### **Summary Notes**:
### **Raw Highlights**
{{#sections}}
@nikdoof
nikdoof / miniflux2opml.py
Created April 30, 2022 08:08
MiniFlux2OPML - a OPML exporter for Miniflux
#!/usr/bin/env python3
"""
Miniflux2OPML
A tool designed to extract a user's OPML file from a Miniflux installation,
with added support for outputting the OPML into JSON.
Copyright 2022 Andrew Williams
License: MIT
"""
@nikdoof
nikdoof / common.yaml
Created March 17, 2023 10:28
ESPHome Config for a VINDRIKTNING modified with a ESP8266
esphome:
name: "${devicename}"
comment: "${device_description}"
build_path: "${devicename}"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
domain: !secret wifi_domain
fast_connect: true