Skip to content

Instantly share code, notes, and snippets.

View emjayoh's full-sized avatar

Matt Ogram emjayoh

View GitHub Profile
@emjayoh
emjayoh / hangouts.py
Created March 19, 2021 05:46 — forked from purneshwar/hangouts.py
Convert/Parse Google Takeout/Export Data Hangouts/Chat into individual conversations
# Run this in the same directory as the Hangouts.json file generated by Google Takeout / Data Export tool.
# python3 hangouts.py
import json
import datetime
import os
import shutil
import re
chat_dir = "hangouts"
@emjayoh
emjayoh / .gitconfig
Last active April 17, 2021 23:18 — forked from Jiri-Mihal/.gitconfig
[global .gitconfig] Set of handy .gitconfig aliases. https://github.com/durdn/cfg/blob/master/.gitconfig. #.gitconfig
[user]
email = [email protected]
name = Firstname Lastname
[alias]
# basic
st = status -s
cl = clone
ci = commit
co = checkout
@emjayoh
emjayoh / 95-lolcat
Created August 31, 2021 04:20 — forked from dorentus/95-lolcat
dynamically generated /etc/motd using fortune, cowsay & lolcat,save it as /etc/update-motd.d/95-lolcat.Google `pam_motd` or `update-motd` for more details of dynamically generated message-of-the-day.
#!/bin/bash
# see: http://blog.tomtung.com/2009/11/cowsay-fortune
# http://www.commandlinefu.com/commands/view/3584/remove-color-codes-special-characters-with-sed
# https://github.com/busyloop/lolcat
# https://github.com/dorentus/mruby-lolcat-bin
#
# requires `fortune`, `cowsay`,
# and ruby gem `lolcat` or its mruby version equivalent
export LANG="en_US.UTF-8"
@emjayoh
emjayoh / jq-cheetsheet.md
Created February 21, 2022 13:43 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq