Skip to content

Instantly share code, notes, and snippets.

View diffficult's full-sized avatar
💽
the big switcharoo

reese diffficult

💽
the big switcharoo
View GitHub Profile
@diffficult
diffficult / edgerouter-qos
Last active July 9, 2023 16:32 — forked from beardicus/edgerouter-qos
EdgeRouter Lite QOS Settings
#
# fair-queue based settings for EdgeRouter Lite traffic shaping
#
# download is typically 6 and change. everything can burst to 100%
# of bandwidth, priority rules keep the garbage in check
set traffic-policy shaper download
set traffic-policy shaper download bandwidth 30Mbit
@diffficult
diffficult / mpv.conf
Created November 1, 2016 04:41
basic MPV config with high settings and ytdl settings
# Video settings
vo=opengl-hq
tscale=linear
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
dscale=mitchell
scale-antiring=0.7
cscale-antiring=0.7
dither-depth=auto
@diffficult
diffficult / chromeos-crosh-custom-setup.md
Last active October 4, 2024 08:41 — forked from bramford/chromeos-crosh-custom-setup.md
Customize your ChromeOS fonts - working April 2017

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

@diffficult
diffficult / pixel-arch.md
Last active November 14, 2016 01:55 — forked from thirteen37/pixel-arch.md
Installing Arch on the Chromebook Pixel 2015

This describes a basic Arch Linux installation on a Chromebook Pixel 2015.

Note: I'm a coward, so I installed Arch to an SD card instead of wiping out the existing SSD.

Requirements

  • SD card. A very minimal Arch installation with XFCE will need about 2GB, so I think 4GB is the minimum you can get by with.
  • Arch installer on a USB drive. The 2013.05.01 is broken with the recent netctl change. So either get an older or newer one.
  • Some Arch Linux familiarity.
  • Time, patience, and good eyesight.
@diffficult
diffficult / qr_clip.sh
Created April 9, 2017 03:42
Small script written by someone that outputs as a QR code whatever you have on your clipboard at the time
#!/bin/bash
#
# This script will output a QR Code made with whatever you have loaded on your clipboard
# You need qrencode C Library and xclip for this script to work
#
function err {
echo -e "[ERROR] in line ${BASH_LINENO[0]}"
[[ $1 ]] && echo "[ MSG ] $1"
exit 1
}
@diffficult
diffficult / WD_My_Cloud_EX2.txt
Created April 16, 2017 07:42
Fan control notes for WD My Cloud EX2 Ultra
~ # fan_control -?
*** Fan Cobtrol Help Message ***
fan_control b c: for NAS booting
fan_control 0 d : [auto: low/medium/high/max] open debug msg
fan_control 0 c : [auto: low/medium/high/max] close debug msg
fan_control -L [value] : set Lower (THYST)
fan_control -H [value] : set Upper(TOS)
fan_control -g 0 : get current temperature
fan_control -g 1 : get Lower temperature
fan_control -g 2 : get Upper temperature
@diffficult
diffficult / moonphase.sh
Created April 16, 2017 07:43
Moonphase blocklet for i3
#!/bin/bash
moonphase(){
local lp=2551443
local now=$(date -u +"%s")
local newmoon=592500
local phase=$((($now - $newmoon) % $lp))
local phase_number=$((((phase / 86400) + 1)*100000))
# Multiply by 100000 so we can do integer comparison. Go Bash!
@diffficult
diffficult / .zpreztorc
Last active June 6, 2017 15:47
zsh prezto config file
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <[email protected]>
#
#
# General
#
@diffficult
diffficult / ledger_nano_s_on_linux.md
Last active September 28, 2024 14:58
Ledger Nano S on Arch

Ledger Nano S on Linux

Requirement:

  • Ledger Nano
  • Ledger HW1
  • Ledger Nano S
  • Ledger Blue
  • Special Edition

You need to create a set of udev rules to allow access to the device on Linux. This can be done easily by running the following command:

@diffficult
diffficult / .tmux.conf
Created October 26, 2017 23:29
2017-10 working tmux config
#Prefix Key
set -g prefix ^a
set -g status-keys vi
setw -g mode-keys vi
# setw -g mode-mouse on
unbind c
unbind i
unbind l
unbind s