Skip to content

Instantly share code, notes, and snippets.

@jnwarp
jnwarp / google-photos-to-icloud.py
Created September 20, 2019 13:47
Parse Google Photos from Takeout and update metadata for iCloud
from PIL import Image, ExifTags
import glob, os, shutil
import re, json
import piexif
from datetime import datetime
source = "GooglePhotos"
dest = "Processed"
debug = False
@jnwarp
jnwarp / df-ubuntu.md
Last active April 29, 2020 14:00
Dwarf Fortress on Digital Ocean (Ubuntu 18.04)

How to install Dwarf Fortress on Ubuntu 18.04

  1. Download the binary from bay12games

  2. Extract the files

tar xfs df*.tar.bz2
  1. Install the needed libraries

Keybase proof

I hereby claim:

  • I am jnwarp on github.
  • I am jnwarp (https://keybase.io/jnwarp) on keybase.
  • I have a public key whose fingerprint is 910A 1263 9DFE AB51 35B3 1F8D 95F3 47D3 4F7F B4CD

To claim this, I am signing this object:

@jnwarp
jnwarp / programming-program.md
Created April 5, 2017 02:08
How does a human create a program?

How does a human create a program?

The goal of this project is to decipher the steps that a human takes to create a new program, and create a program that will follow those steps in order to generate a basic "Hello World" program.

Input

"Create a hello world program"

@jnwarp
jnwarp / vim.md
Last active August 25, 2016 20:32
VIM Cheat Sheet

VIM Cheat Sheet:

esc -> select mode/exit
: -> command mode
i -> insert mode
@jnwarp
jnwarp / rescom.md
Created June 16, 2016 20:41
Instructions for finding Ubuntu/Linux mac address

Ubuntu/Linux:

  1. Open a terminal using Ctrl+Alt+T
  2. Type "sudo ifconfig | grep HWaddr"
  3. Hit enter
  4. Find and write down your ethernet "eth0" address to register in a computer lab or on any Internet ready computer
  5. Do not write down your wireless "wlan0" address

http://rescom.psu.edu/finding-your-address

@jnwarp
jnwarp / win-backup-client.bat
Last active May 4, 2016 00:09
Create an encrypted backup file for files that have changed in the past week
echo off
cls
:: Change variables below
set encPass=CHANGEME-zRFNnk88GpfFXijBcW7Hjfcp9284CRNoQi6ZPogxTJ5W9fZqD4hGfTlZjlOsY7j-CHANGEME
set username=USERNAME
set backupDir=C:\Users\%username%\backup
set backupZip=C:\Users\%username%\backup.7z
set maxAge=8