Skip to content

Instantly share code, notes, and snippets.

Avatar

Collin M. Barrett collinbarrett

View GitHub Profile
@collinbarrett
collinbarrett / vpn-refresh.sh
Last active Jun 6, 2020
DD-WRT script for selecting an optimal ProtonVPN server
View vpn-refresh.sh
#!/bin/sh
# https://collinmbarrett.com/protonvpn-dd-wrt-api-script/
# specify PATH to run from cron
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/bin:/opt/sbin:/opt/bin:/opt/usr/sbin:/opt/usr/bin
# kill openvpn
PID=$(pidof openvpn)
kill -s SIGTERM "$PID"
@collinbarrett
collinbarrett / profile.json
Last active Mar 5, 2020
A Windows Terminal config. Dependencies: Git for Windows, WSL (Ubuntu LTS), Fira Code
View profile.json
// Deprecated: Moved to https://github.com/collinbarrett/box-setup/blob/master/windows-terminal/profiles.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{4a745997-9220-4b9c-9fac-c18e93b46ab2}",
"profiles": [
{
"guid": "{4a745997-9220-4b9c-9fac-c18e93b46ab2}",
"hidden": false,
"name": "MinGW-w64",
View TypeMemberLayout.xaml
<TypePattern DisplayName="StyleCop Classes, Interfaces, &amp; Structs" RemoveRegions="All">
<TypePattern.Match>
<Or>
<Kind Is="Class" />
<Kind Is="Struct" />
<Kind Is="Interface" />
</Or>
</TypePattern.Match>
<Entry DisplayName="Constants">
<Entry.Match>
@collinbarrett
collinbarrett / userChrome.css
Last active Aug 20, 2020
A userChrome.css to use with Tree Style Tab (https://github.com/piroor/treestyletab) for Firefox
View userChrome.css
/*
Windows
Location: C:\Users\<YourUsername>\AppData\Roaming\Mozilla\Firefox\Profiles\<YourFirefoxProfile>\chrome
Notes:
If minimize, maximize, and close buttons are no longer visible, enable the Title Bar or Menu Bar in Firefox Customize.
macOS
Location: /Users/<YourUsername>/Library/Application Support/Firefox/Profiles/<YourFirefoxProfile>/chrome
Notes:
If minimize, maximize, and close buttons overlap other controls, add the Flexible Space in Firefox Customize.
You can’t perform that action at this time.