Skip to content

Instantly share code, notes, and snippets.

todgru

Block or report user

Report or block todgru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@todgru
todgru / ssh.md
Last active Jun 19, 2019
enable ssh on raspberry pi raspian fresh install etcher OS X Mac network cable direct connect
View ssh.md
  • after image is flashed using Etcher, cd /Volumes/boot.
  • Then add ssh file to root. touch ssh.
  • connect network cable between os x computer and raspberry pi. boot the raspberry pi.
  • wait a minute.
  • then ssh pi@raspberrypi.local

That's it. No need for a screen, keyboard or any other device to get into the pi. :)

View gist:4ce29f55ea39be537b8eb69ae1792449
meteor shower intensity https://fireballs.ndc.nasa.gov/cmor-radiants/
View gist:5d0219bdd81ab3923a82f1b9e96e5254
good link to running ntp time server on rpi with gps https://robrobinette.com/pi_GPS_PPS_Time_Server.htm
@todgru
todgru / ffmpeg.md
Last active May 29, 2019
trim an mp3 from the command line cli using ffmpeg copies to new file, original undedited
View ffmpeg.md

trim an mp3

I record mp3s from a few streams. Sometimes the recordings do not stop on schedule. This command allows me to trim or trucate the mp3 file.

ffmpeg -i infile.mp3 -vn -acodec copy -ss 00:00:00 -t 01:00:34 outfile.mp3

installation on ubuntu 14.04

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 May 29, 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:
You can’t perform that action at this time.