There are 3 options, you probably want #3
This will keep the local file for you, but will delete it for anyone else when they pull.
git rm cached <file-name> or git rm -r cached <folder-name>
This is for optimization, like a folder with a large number of files, e.g. SDKs that probably won't ever change. It tells git to stop checking that huge folder every time for changes, locally, since it won't have any. The assume-unchanged index will be reset and file(s) overwritten if there are upstream changes to the file/folder (when you pull).
git update-index --assume-unchanged <path-name>
This is to tell git you want your own independent version of the file or folder. For instance, you don't want to overwrite (or delete) production/staging config files.
git update-index --skip-worktree <path-name>
It's important to know that git update-index will not propagate with git, and each user will have to run it independently.
gsettings set org.gnome.shell.app-switcher current-workspace-only true
- I successfully ran macOS High Sierra on my Ubuntu 18.04 laptop through VirtualBox. VirtualBox is great ! This article helps!
- Install Rime on macOS in five minutes
- download the zip file from latest release from the Tags page on GitHUB
- unzip the file and install the pkg file
- go to https://github.com/rime/plum to get the
wubi
package.
git clone https://github.com/rime/plum.git
cd plum
bash rime-install wubi pinyin-simp
The last step, is creating a default.custom.yaml
file and putting it in ~/Library/Rime
directory.
the content in my default.custom.yaml is
patch:
schema_list:
- schema: wubi_pinyin
- schema: pinyin_simp
I met this issue today morning and find the solution from the link I just refered.
I have made a few change to the solution to meet my case, this is why I wrote this article.
My version of fix-routes.sh
#!/bin/sh
echo "Adding custom route to $route_vpn_gateway with /24 mask..."
# ip route add 10.8.0.0/24 via $route_vpn_gateway
ip route add 192.168.178.0/24 via $route_vpn_gateway
echo "Removing /1 routes..."
ip route del 0.0.0.0/1 via $route_vpn_gateway
ip route del 128.0.0.0/1 via $route_vpn_gateway
I didn't use ip route add default via $route_vpn_gateway
line because I didn't want to route everything through my VPN.
Changes to my openvpn profile
You can see I added an extra askpass
line besides what the author has done. That line was added to help me get ride of the annoyance of entering the password for my private key every time I run the openvpn client program.
auth SHA256
auth-nocache
verb 3
askpass /home/davidwei/ovpn/pass.txt
script-security 2
route-up /etc/openvpn/fix-routes.sh
My ovpn start one-line script
davidwei@xps:~$ cat ~/bin/ovpn
sudo openvpn ~/shukebeta.ovpn > /dev/null 2>&1 &
My pass.txt
davidwei@xps:~$ cat ~/ovpn/pass.txt
my-very-secret-password