Skip to content

Instantly share code, notes, and snippets.

set traffic-policy shaper DownStream description "DownStream QoS policy"
set traffic-policy shaper DownStream bandwidth 12325kbit
# default
set traffic-policy shaper DownStream default
set traffic-policy shaper DownStream default bandwidth 3%
set traffic-policy shaper DownStream default ceiling 100%
***XBOX LIVE TRAFFIC***
set traffic-policy shaper shaper1 class 7 match PORT88 ip source port 88
set traffic-policy shaper shaper1 class 7 match PORT3074 ip source port 3074
set traffic-policy shaper shaper1 class 7 match PORT3544 ip source port 3544
set traffic-policy shaper shaper1 class 7 match PORT4500 ip source port 4500
set traffic-policy shaper shaper1 class 7 match PORT500 ip source port 500
set traffic-policy shaper shaper1 class 7 bandwidth 13%
set traffic-policy shaper shaper1 class 7 ceiling 100%
set traffic-policy shaper shaper1 class 7 priority 1
@shallowbit
shallowbit / chromeos-crosh-custom-setup.md
Created January 29, 2020 22:09 — forked from arnaudsj/chromeos-crosh-custom-setup.md
Customize ChromeOS Crosh Terminal with Custom Fonts and Solarized Dark Theme

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

#detect the platform
OS="`uname`"
case $OS in
Linux)
OS='linux'
;;
FreeBSD)
OS='freebsd'
# Description: Boxstarter Script
# Author: Rich Turner <rich@bitcrazed.com>
# Last Updated: 2019-07-08
#
# Run this Boxstarter by calling the following from an **ELEVATED PowerShell instance**:
# `set-executionpolicy Unrestricted`
# `. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force`
# `Install-BoxstarterPackage -DisableReboots -PackageName <URL-TO-RAW-GIST>`
#---- TEMPORARY ---
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#tabbrowser-tabs {visibility: collapse !important;}
/* leaver room for close,minimize,maximize buttons */
#nav-bar {margin-right: 140px !important;}
#titlebar {margin-bottom: -30px !important;}
#navigator-toolbox{--toolbox-border-bottom-color: none !important;}
#navigator-toolbox:after {display: none !important;}
#!/bin/bash
# sudo apt install bash-completion
# sudo cp etc-bash_completion.d-wol.bash /etc/bash_completion.d/wol.bash
_wol() {
local _cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "$(wol --list)" -- "$_cur") )
}
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}
@shallowbit
shallowbit / tridactylrc
Last active August 23, 2019 17:17
.tridactylrc
"set configversion 1.7
"js tri.config.set("keytranslatemap", {"jk": "<esc>"})
"js tri.config.set("update", {"lastchecktime": 1562114387930})
"
" default keybindings:
" https://github.com/cmcaine/tridactyl/blob/af61d8a42e55fa8590ef91e90f474528bcd82ba5/src/config.ts#L37
" ================================
" General
" ================================
*CapsLock::
Send {Blind}{Ctrl Down}
cDown := A_TickCount
Return
*CapsLock up::
; Modify the threshold time (in milliseconds) as necessary
If ((A_TickCount-cDown) < 150)
Send {Blind}{Ctrl Up}{Esc}
Else