Skip to content

Instantly share code, notes, and snippets.

View todgru's full-sized avatar

todgru

  • Portland, OR
View GitHub Profile
@todgru
todgru / install.sh
Last active January 13, 2019 19:28
raspberry pi debian 9 stretch cleanup and nice-to-have package install
# modified version of:
# wget https://gist.githubusercontent.com/samatjain/4dda24e14a5b73481e2a/raw/5d9bac8ec40b94833b4e9938121945be252fdee1/Slim-Raspbian.sh -O Slim-Raspbian.sh
# GUI-related packages
# none right now...
# Edu-related packages
pkgs="
oracle-java8-jdk
minecraft-pi
python-minecraftpi
@todgru
todgru / jellyfin.md
Last active January 19, 2019 03:21

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 January 13, 2019 00:22
certbot lenscrypt ssl
@soemarko
soemarko / theme.html
Created November 26, 2011 16:18
embed github gist to tumblr
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->

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.

@todgru
todgru / .tmux.conf.sh
Created June 24, 2014 20:32
Tmux Conf taken from the internet
# So we can send prefix to nested tmux sessions, then note that other tmux sessions may still use ctrl-b
bind-key a send-prefix
bind-key Up resize-pane -U
bind-key Down resize-pane -D
bind-key Left resize-pane -L
bind-key Right resize-pane -R
# unbind { key - i keep accidentally hitting it!
unbind-key {
@todgru
todgru / vim_info.md
Last active January 22, 2019 01:23
vim nerdtree copy paste search and replace

#vim

Editing

  • shift V select line, up or down select lines
  • shift > shift select block or line out
  • shift < shift select block or line in
  • d to delete highlighted text and copy to cliboard
  • D delete everything after cursor to end of line
  • y to copy (yank)
@todgru
todgru / gist:39d3f58cff67f6552666da30497db279
Created January 26, 2019 22:01
converting debian 9 raspberry pi file system to f2fs
https://movr0.com/2016/08/19/convert-raspberry-pi-123-to-f2fs/
@todgru
todgru / emby.md
Last active March 16, 2019 00:22
install emby on a raspbery pi 3
@todgru
todgru / gist:4128695
Last active April 12, 2019 00:45
Git Keeps asking for username password clone ssh git https