Skip to content

Instantly share code, notes, and snippets.

todgru

View GitHub Profile
View module.js
function foo() {
console.log('foo');
}
function bar() {
foo();
}
module.exports = {
foo,
View paclink-unix-install.md
@todgru
todgru / 0-ax25.md
Last active Jan 27, 2019
installing ax25 on debian 9 raspberry pi
View 0-ax25.md
@todgru
todgru / gist:39d3f58cff67f6552666da30497db279
Created Jan 26, 2019
converting debian 9 raspberry pi file system to f2fs
View gist:39d3f58cff67f6552666da30497db279
https://movr0.com/2016/08/19/convert-raspberry-pi-123-to-f2fs/
@todgru
todgru / firefox-keyboard-shortcuts.md
Created Jan 22, 2019
damn websites that take over my keyboard shortcuts. horrible ux.
View firefox-keyboard-shortcuts.md

websites jira and outlook take over my keyboard shortcuts.

How to disable:

in firefox, about:config

change permissions.default.shortcuts to 3.

I tried to use 2, "always deny", but that changed how the backspae/delete key behaved.

View darkify_slack.sh
#!/bin/sh
# Darkify Slack on Mac OS:
# curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh
SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js"
# Thanks to: https://gist.github.com/DrewML/0acd2e389492e7d9d6be63386d75dd99#gistcomment-2358430
if [ -z "`grep tt__customCss ${SLACK_INTEROP_JS}`" ]; then
# Backup original CSS for reverts:
View jellyfin.md

Jellyfin setup on Raspberry Pi 3 Debian 9(stretch)

Jellyfin is the open source version of Emby.

install docker

wget -nv -O- https://get.docker.com/ | sh
@todgru
todgru / certbot.md
Created Jan 13, 2019
certbot lenscrypt ssl
View certbot.md
@todgru
todgru / bootable-usb-drive.md
Last active Jan 8, 2019
osx debian usb asus 900A EEE PC
View bootable-usb-drive.md

I created a bootable usb drive in disk utility

then ran diskutil list to find the identifier

/dev/disk2s1 in my case

make sure to unmount the drive

then dd

View raspberry-pi-usb-hdd.md

raspberry pi auto mount usb drive

my drive is hfsplus usb 2TB

get the usb UUID from blkid

pretty print drive locations lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL

followed this, with special attention to the order. Drive must be unmounted before running fsck.

You can’t perform that action at this time.