Skip to content

Instantly share code, notes, and snippets.

View b-ggs's full-sized avatar

boggs ⚓ b-ggs

View GitHub Profile
@b-ggs
b-ggs / Documentation.md
Created October 18, 2022 04:45 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@b-ggs
b-ggs / alacritty-tmux-vim_truecolor.md
Created July 14, 2022 19:25 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@b-ggs
b-ggs / creative-cloud-disable.md
Created April 17, 2021 15:55 — forked from andreibosco/creative-cloud-disable.md
disable creative cloud startup on mac
@b-ggs
b-ggs / chatterino_filters.md
Last active January 31, 2023 16:49
chatterino filters

partners mods vips staff broadcaster + timeouts - fossabot - streamlabs - nightbot

((author.badges contains "partner" || author.badges contains "moderator" || author.badges contains "vip" || author.badges contains "staff" || author.badges contains "broadcaster" || author.badges contains "admin") || (flags.system_message && !flags.sub_message)) && (author.name !== "Fossabot" && author.name !== "Streamlabs" && author.name !== "Nightbot" && author.name !== "AmazefulBot")

remove graynames

(!(author.no_color) || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message)
;=====================================================
; File Includes
;=====================================================
[section/base]
include-file = $HOME/.config/polybar/master.conf
include-file = $HOME/.config/polybar/modules.conf
;=====================================================
#---- Generated by tint2conf e74f ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for
# full documentation of the configuration options.
#-------------------------------------
# Gradients
#-------------------------------------
# Backgrounds
# Background 1: Panel
rounded = 0
border_width = 1
@b-ggs
b-ggs / split-tunnel.md
Created September 6, 2019 12:42
OpenVPN split tunnel with kylemanna/docker-openvpn
docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm kylemanna/openvpn ovpn_genconfig -N -d -e "route-nopull" -e "route <IP OR SUBNET YOU WANT TO ROUTE TO> 255.255.255.0" -u udp://<VPN SERVER>

In client config, add the following line:

route <IP OR SUBNET YOU WANT TO ROUTE TO> 255.255.255.0 vpn_gateway
@b-ggs
b-ggs / split-tunnel.md
Created September 6, 2019 12:42
OpenVPN split tunnel with kylemanna/docker-openvpn
docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm kylemanna/openvpn ovpn_genconfig -N -d -e "route-nopull" -e "route <IP OR SUBNET YOU WANT TO ROUTE TO> 255.255.255.0" -u udp://<VPN SERVER>

In client config, add the following line:

route <IP OR SUBNET YOU WANT TO ROUTE TO> 255.255.255.0 vpn_gateway
@b-ggs
b-ggs / nginx.conf
Created February 11, 2019 17:32 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# UPDATED 30 January 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration

Keybase proof

I hereby claim:

  • I am b-ggs on github.
  • I am b_ggs (https://keybase.io/b_ggs) on keybase.
  • I have a public key whose fingerprint is CC00 CA46 99D1 BF71 11A7 5B8A 1660 A594 64B2 342C

To claim this, I am signing this object: