Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Bahnman markbahnman

View GitHub Profile
@markbahnman
markbahnman / Cargo.toml
Last active Aug 8, 2020
Testing out json rust parsing
View Cargo.toml
[package]
name = "json_rust"
version = "0.1.0"
authors = ["mark"]
edition = "2018"
[dependencies]
serde = { version = "1.0.104", features = ["derive"] }
serde_derive = "1.0.104"
serde_json = "1.0.44"
View keybase.md

Keybase proof

I hereby claim:

  • I am markbahnman on github.
  • I am markbahnman (https://keybase.io/markbahnman) on keybase.
  • I have a public key ASCTbCJiz2-I0wpcjRr44O6c7F2i7f2Ff-IQdFpfm2gmHAo

To claim this, I am signing this object:

@markbahnman
markbahnman / convert-to-mp4.sh
Last active Apr 20, 2016
Nice script to convert your mkvs to mp4s using ffmpeg
View convert-to-mp4.sh
#!/bin/sh
LOG="$HOME/convert-to-mp4.log"
for arg; do
if [ -d "$arg" ]; then
echo "$arg is a directory\n"
find ${arg%/} -type f -name "*.mkv" -print0 | while IFS= read -r -d '' file; do
DIR=$(dirname "${file}")
BASE=$(basename "${file}" ".mkv")
cd "${DIR}"
MKV=$(find . -maxdepth 1 -name "${BASE}.mkv" -print0)
@markbahnman
markbahnman / HES-Refactor.js
Created Feb 16, 2013
My initial refactor of the Hubski Enhancement Suite using jQuery and the module pattern.
View HES-Refactor.js
// ==UserScript==
// @name Hubski Enhancement Suite
// @namespace http://joshparnham.com/
// @description Several feature additions to Hubski.com
// @copyright Josh Parnham 2013 (http://joshparnham.com/)
// @license LGPL
// @author joshparnham
// @include http://hubski.com/*
// @include https://hubski.com/*
// @version 0.2.1