Skip to content

Instantly share code, notes, and snippets.

@jimyang2008
jimyang2008 / fix_Xresources.sh
Last active December 29, 2017 07:18
Replace color names defined in .Xresources for older version of xrdb
#!/bin/bash
err() {
echo "ERROR: $@" >&2
}
: ${INFILE:="$HOME/.Xresources"}
if [[ $# -gt 0 ]]
then
@jimyang2008
jimyang2008 / tips.md
Last active October 21, 2025 03:16
Tips

share files over the Internet with command line

Using Croc (Recommended for simplicity and speed)
Install:
curl https://getcroc.schollz.com | bash


Send file from Host A:
croc send filename
@jimyang2008
jimyang2008 / setup_bbr.sh
Last active December 7, 2017 10:56
Setup BBR for Linux
#!/bin/bash
err() {
msg="$@"
echo "ERROR: $msg" >&2
}
centos6() {
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
@jimyang2008
jimyang2008 / rpi_router.md
Last active November 5, 2017 06:37
Setup RPi as a wireless bridge

Setup RPi as a wireless bridge

Steps

To setup wireless bridge on a Raspberry Pi 3B, following steps need to followed strictly

STAIFNAME=wlan0
APIFNAME=wlan1
APIFMAC=b8:27:eb:1c:98:53
APIFIP=192.168.6.1
@jimyang2008
jimyang2008 / rpi.md
Last active June 12, 2019 07:21
Raspberry Pi

Notes on Raspberry Pi

Initial default username password for Raspbian

username: pi
password: raspberry

Update Locale to support "US"

Need to add US support in addition to default GB, including language, keyboard, etc.

$ raspi-config