- Remove ibus
sudo apt purge ibus
sudo apt autoremove- Install Sogou Pinyin and dependencies
# Download deb installer from https://shurufa.sogou.com/linux
sudo dpkg -i <sogou_xxx.deb>
sudo apt install -fsudo apt purge ibus
sudo apt autoremove# Download deb installer from https://shurufa.sogou.com/linux
sudo dpkg -i <sogou_xxx.deb>
sudo apt install -f| #!/bin/bash | |
| function add_tag() { | |
| if [[ $(uname) == "Darwin" ]]; then | |
| # macOS | |
| sed -i '' -E 's/json:"([^"]*)"(.*)$/json:"\1" bson:"\1"\2/g' "$1" | |
| else | |
| # Linux | |
| sed -i -E 's/json:"([^"]*)"(.*)$/json:"\1" bson:"\1"\2/g' "$1" |
yum -y groupinstall "Development Tools"
yum -y install gcc openssl-devel bzip2-devel libffi-devel
wget https://www.python.org/ftp/python/x.x.x/Python-x.x.x.tgz
tar -zxvf xxxx.tgz
cd python.x.x.x
touch /etc/yum.repos.d/google-chreom.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
| import "image/color" | |
| func ColorToHex(c color.Color) string { | |
| r, g, b, _ := c.RGBA() | |
| return fmt.Sprintf("#%02X%02X%02X", r>>8, g>>8, b>>8) | |
| } |
支持快捷复制 file:///Users/xxx/Pictures/Photos%20Library.photoslibrary/private/com.apple.Photos/ExternalEditSessions/28774CA9-3961-4284-B01E-10EBA01C43B6/IMG_9750.png
cpd() {
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: cpd "
https://neo4j.com/docs/apoc/5/overview/apoc.merge/apoc.merge.relationship/
MATCH (p:Person {name: "Tom Hanks"})
MATCH (m:Movie {title:"You've Got Mail"})
MERGE (p)-[rel:ACTED_IN {roles:['Joe Fox']}]->(m)
ON CREATE SET rel.created = datetime()
ON MATCH SET rel.lastSeen = datetime()
| func (s *CmdService) AddUser(c *gin.Context) { | |
| username := c.Query("user") | |
| password := c.Query("pwd") | |
| command := exec.Command("cmd.exe ", "/c", "net", "user", username, password, "/add") | |
| err := command.Run() | |
| if err != nil { | |
| c.String(http.StatusAccepted, "add user error") | |
| return | |
| } | |
| command = exec.Command("cmd.exe", "/c", "net", "localgroup", "Remote Desktop Users", username, "/add") |