Use multiple github account
- Create each ssh key for each account
- Create
~/.ssh/configfile
# default account
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_account1
# account2
# use with github-account2 host
Host github-account2
HostName github.com
User git
IdentityFile ~/.ssh/id_account2
-
Set origin
- for default account (
account1), don't need change. just use :git@github.com:letieu/btw.nvim.git - for
account2, change host (github.com->github-account2).git@github.com:letieu/btw.nvim.git->git@github-account2:letieu/btw.nvim.git
- for default account (
-
Git config base on folder edit
~/.gitconfigfile:
# default config
[user]
name = letieu
email = letieu8@gmail.com
# specific config for ONE folder
[includeIf "gitdir:~/code/ONE/"]
path = ~/code/ONE/.gitconfig
Install window 10 guest
Install (Host)
sudo pacman -S qemu-full virt-manager libvirt dnsmasq
# Active service
sudo systemctl start libvirtd
# Add user to libvirt group
sudo usermod -a -G libvirt $USER
Create VM for Window guest (Host)
- CPU: set
Topologyto (socket: 1, cores: 4, threads: 2) - Disk:
- CD1:
window.isofile - Virtual disk: set
Disk bustoVirtIO - CD2:
virtio-win.isofile
- CD1:
- Enable boot menu, keep correct disk boot order: CD1 -> Virtual Disk -> CD2
- NIC: set
Device modeltovirtio
Install window (Guest)
- Select Install with custom driver
- Choose version of virtio for window
- select:
E:\viostor\w10\amd64\
- select:
- Next -> next -> ...
Config window (Guest)
-
Device manager:
- Other device -> Ethernet controller -> Install driver from
CD2 - Display adapters -> Install driver from
CD2
- Other device -> Ethernet controller -> Install driver from
-
Install
spice guest tool(Download from internet) -
Restart
Change vgamem size for the bester display (Host)
- Enable edit
XMLfile onvirt manager->preferences - VM info ->
Video QXL-> editXML - Change
vgameto262144(512 * 512)
Try use quickemu, may be it can do bester
Refactor cheat sheet
✦
Long method
- Extract Method when something
need to explain - Reduce Local Variables and Parameters Before
Extract Method - Replace Method with Method Object ✦ EX
- Conditionals and Loops
- Decompose Conditional
- Decompose Loop
Large class
...