Skip to content

Instantly share code, notes, and snippets.

View dbirks's full-sized avatar
🦔

David Birks dbirks

🦔
View GitHub Profile
@dbirks
dbirks / raspi-stream.md
Last active September 14, 2016 15:30
Streaming to YouTube from a Raspberry Pi

Streaming to YouTube from a Raspberry Pi

All credit goes to Wolfgang Schlatter for his guide on Google+, which I've only modified slightly.

  • Install Raspbian and download the crosscompiled ffmpeg from Google Drive or Mega.

  • Transfer arm.tar.gz to your Raspberry Pi and untar with tar -xvf arm.tar.gz.

  • Move to the new folder with cd arm/bin.

  • Start the livestream with 720p quality:

@dbirks
dbirks / centos-zfs-urbackup.md
Last active July 13, 2022 09:12
Install Urbackup on CentOS 7 using ZFS

Installing Urbackup on CentOS using ZFS

Here's the details on installing Urbackup on the ZFS file system on the stable CentOS 7.

  • Install CentOS 7. I'll be using the Minimal install.
    • Once you have the .iso, write it to a CD or USB drive. I recommend using Rufus if you're on Windows to write it to USB.
    • Go ahead and boot to it.
    • Most of the defaults on the Installation Summary page should be good. However you will want to:
      • Confirm the time zone is correct.
      • Click the disk you want to install to.
@dbirks
dbirks / centos-rclone-backblaze.md
Last active December 21, 2017 19:39
centos-rclone-backblaze

Syncing with Backblaze B2 with rclone on CentOS

Here's how to sync your files onto Backblaze once you have a Backblaze account. More on that here. Also if you're uploading more than 10 GB, you'll want to increase your cap size on the web portal.

  • You'll want to do this all as root: sudo su -
  • Install rclone
    • Add the extra EPEL repos: yum install epel-release
    • Install some prerequisites: yum install golang git
    • Add Go's folder to your path: export GOPATH="$HOME/gopath/"
    • Install rclone in the Go folder: go get github.com/ncw/rclone
  • Copy the program to your binary folder: cp $GOPATH/bin/rclone /usr/bin/
@dbirks
dbirks / install-.net-3.5.md
Last active September 16, 2016 13:56
Install .NET 3.5 on Windows server

Installing .NET 3.5 on Windows Server

In an administrative command prompt or powershell console, enter:

dism /online /enable-feature /featurename:NetFx3 /all /source:e:\sources\sxs\

Where E:\ is where the install medium is mounted.

Tested on 2012 R2 and 2016 Tech Preview 5.

ffmpeg -video_size 1920x1080 -framerate 60 -f x11grab -i :0.0 -f alsa -ac 2 -i hw:0 output.mp4

@dbirks
dbirks / speedtest-cli-edgerouter.md
Last active February 10, 2023 08:22
Make a Speedtest log on a Ubiquity Edgerouter

Tested on an Edgerouter Lite, EdgeOS 1.9.0

Enable the Wheezy repo

configure
set system package repository wheezy components 'main contrib non-free'
set system package repository wheezy distribution wheezy 
set system package repository wheezy url http://http.us.debian.org/debian
commit
save
@dbirks
dbirks / restore-alsa.md
Last active July 20, 2017 12:34
Restore ALSA to default
alsactl restore -P
@dbirks
dbirks / cloudSettings
Created March 29, 2017 17:11
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-03-29T17:10:55.267Z","extensionVersion":"v2.6.1"}
@dbirks
dbirks / disable-system-beep.md
Last active June 21, 2017 12:23
To disable system beep

To disable the system beep on your Linux system, as root, enter:

rmmod pcspkr

Then to prevent the module from loading on reboot, enter:

echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist