Skip to content

Instantly share code, notes, and snippets.

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

@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
@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

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 / 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
@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 / deepin20.md
Last active March 23, 2024 21:06
Upgrade to deepin 20 from deepin 15.11
  1. Change the source in /etc/apt/sources.list to
    deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free
  1. Add the official source for app store in /etc/apt/sources.list.d/appstore.list. If no such a list file, please create one there and add below source:

How to find the root servers and tld servers:

$ nslookup 
> set type=ns
> .
Server:		192.168.0.1
Address:	192.168.0.1#53

Non-authoritative answer:
@gengwg
gengwg / format_ext4.md
Created October 20, 2020 04:18
Partition and Format Ext4 in Linux

All command run as root. So pay attention to disk label when copy/pasting.

Find new drive:

# fdisk -l

Model: ST1000DX 001-1CM162 (scsi)
Disk /dev/sde: 1000GB
Sector size (logical/physical): 512B/4096B
[474515.167775] Bluetooth: Core ver 2.22
[474515.167821] NET: Registered protocol family 31
[474515.167829] Bluetooth: HCI device and connection manager initialized
[474515.167833] Bluetooth: HCI socket layer initialized
[474515.167835] Bluetooth: L2CAP socket layer initialized
[474515.167839] Bluetooth: SCO socket layer initialized
[474515.182168] usbcore: registered new interface driver btusb
[474515.255046] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[474515.255048] Bluetooth: BNEP filters: protocol multicast
[474515.255051] Bluetooth: BNEP socket layer initialized