Skip to content

Instantly share code, notes, and snippets.

@gengwg
gengwg / rsync requesting multiple files from a remote host.txt
Created September 17, 2020 17:30
rsync requesting multiple files from a remote host
The syntax for requesting multiple files from a remote host is done by specifying additional remote-host args in the
same style as the first, or with the hostname omitted. For instance, all these work:
rsync -av host:file1 :file2 host:file{3,4} /dest/
rsync -av host::modname/file{1,2} host::modname/file3 /dest/
rsync -av host::modname/file1 ::modname/file{3,4}
Older versions of rsync required using quoted spaces in the SRC, like these examples:
rsync -av host:'dir1/file1 dir2/file2' /dest
@gengwg
gengwg / fedora_rtl8812au.md
Created August 29, 2020 18:35
Fedora install rtl8812au driver for Realtek Wifi Dongle

Tested on Fedora 32.

sudo dnf groupinstall "Development Tools"
git clone https://github.com/gnab/rtl8812au.git
sudo dkms build 8812au/4.2.2
sudo dkms install 8812au/4.2.2
sudo modprobe 8812au

5/12/20

it's a waste of time to focus o what you don't have, or could have done better. what is in your control is making the most of what you have today, and taking the steps to create the future that you want and deserve. if you are able to face the future without fear -- if you can face it with the strength and conviction that you can handle whatever comes your way --- your future will indeed be bright.

5/14/20

老中还是要多学习business impact, 一个活你得转化成领导kpi上的一个数字一个图, 你tmd一堆术语老板完全不关心,就问你值多少钱把

whats the difference between a mesh system and using a router as a repeater

@gengwg
gengwg / ansible-summary.md
Created February 14, 2020 01:17 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@gengwg
gengwg / mac_python.md
Last active January 17, 2020 19:54
Brew install python on Mac

Brew install python

MacOS 10.15.2 (19C57)

$   brew link --overwrite --dry-run python
Would remove:
/usr/local/bin/python3 -> /opt/homebrew/bin/python3
$   brew link --overwrite  python
Linking /usr/local/Cellar/python/3.7.6_1... 24 symlinks created

Turns out for Protonmail there is no limit on how much email you can receive. The 150/day limit is for sending emails, not receiving. I think it's enough for general usage. I will gradually transit some communications to PM.

Only thing is the 500MB storage limit. But for now I got the habit of delete every email I read except important ones. Emails with large attachments can also be downloaded and deleted. So it should work for at least a few years of time. Maybe after a few years they will increase the storage!

pm

  • took pictures of all NICSN of PDUs in SFO102 (1/6)
  • took pictures of all NICMAC of PDUs in SFO102 (1/6)
  • Check temp sensors in SFO 102; took pictures: T59220452
  • request accesses to both building and server room in SFO102
  • T59413410 - CG Infra Incident - Two dgx1 nodes are reporting only 7 GPUs via nvidia-smi, not 8 as expected.
    • Saw errors on the two DGXs:
  • @mentions, #refs, links, formatting, and tags supported
@gengwg
gengwg / ergo.md
Last active April 18, 2020 00:22
  • wear braces only at night while asleep

    • helps straighten wrist
  • leaning foward puts too much pressure on wrist.

  • put monitor closer or make font larger so that no learn forward

  • pad on left; vertical mouse on right. use pad for scrolling, two finger; use mouse for more precision pointing.

  • move arms instead of wrist sometimes so that not only wrist stresses.

gengwg@example:~/nc$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-11-23 16:52:45 PST; 6min ago
Docs: man:bluetoothd(8)
Main PID: 20081 (bluetoothd)
Status: "Running"
Tasks: 1
CGroup: /system.slice/bluetooth.service
└─20081 /usr/libexec/bluetooth/bluetoothd
@gengwg
gengwg / install_mosh.md
Last active March 28, 2021 18:37
install mosh on raspberry pi

On Server

sudo apt install mosh
sudo ufw allow from 192.168.1.0/24 to any port 60000:61000 proto udp

On Client