Skip to content

Instantly share code, notes, and snippets.

View liaol's full-sized avatar
🎯
Focusing

liaol liaol

🎯
Focusing
View GitHub Profile
@liaol
liaol / direct_list.txt
Created April 15, 2018 16:29
direct_list.txt
||0-6.com
||0001688.com
||001cndc.com
||001en.com
||001jm.com
||001job.com
||001pp.com
||001sj.net
||001sxy.com
||001uk.com
@liaol
liaol / emoji_regex
Last active March 23, 2020 17:38
watermark_emoji_with_imagemagick
/\\x{1F469}\\x{200D}\\x{2764}\\x{FE0F}\\x{200D}\\x{1F48B}\\x{200D}\\x{1F469}|\\x{1F469}\\x{200D}\\x{2764}\\x{FE0F}\\x{200D}\\x{1F48B}\\x{200D}\\x{1F468}|\\x{1F468}\\x{200D}\\x{2764}\\x{FE0F}\\x{200D}\\x{1F48B}\\x{200D}\\x{1F468}|\\x{1F469}\\x{200D}\\x{1F469}\\x{200D}\\x{1F467}\\x{200D}\\x{1F467}|\\x{1F469}\\x{200D}\\x{1F469}\\x{200D}\\x{1F467}\\x{200D}\\x{1F466}|\\x{1F469}\\x{200D}\\x{1F469}\\x{200D}\\x{1F466}\\x{200D}\\x{1F466}|\\x{1F468}\\x{200D}\\x{1F469}\\x{200D}\\x{1F467}\\x{200D}\\x{1F467}|\\x{1F468}\\x{200D}\\x{1F469}\\x{200D}\\x{1F467}\\x{200D}\\x{1F466}|\\x{1F468}\\x{200D}\\x{1F469}\\x{200D}\\x{1F466}\\x{200D}\\x{1F466}|\\x{1F468}\\x{200D}\\x{1F468}\\x{200D}\\x{1F467}\\x{200D}\\x{1F467}|\\x{1F468}\\x{200D}\\x{1F468}\\x{200D}\\x{1F467}\\x{200D}\\x{1F466}|\\x{1F468}\\x{200D}\\x{1F468}\\x{200D}\\x{1F466}\\x{200D}\\x{1F466}|\\x{1F3F4}\\x{E0067}\\x{E0062}\\x{E0077}\\x{E006C}\\x{E0073}\\x{E007F}|\\x{1F3F4}\\x{E0067}\\x{E0062}\\x{E0073}\\x{E0063}\\x{E0074}\\x{E007F}|\\x{1F3F4}\\x{E0067}\\x{E0062}\\x{E0065}\
@liaol
liaol / 0_reuse_code.js
Created June 16, 2016 10:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@liaol
liaol / deploy.sh
Created January 20, 2016 16:04
beego project deploy script
#! /bin/bash
function log() {
echo -e "\033[32m $1 \033[0m"
}
log "starting deploy"
appname="appname"
path="/deploy/project"
src_path=$path"/src"
@liaol
liaol / backup mysql daily.sh
Created April 24, 2015 06:46
backup mysql daily
#!/bin/bash
database=""
user=""
password=""
filename="$database-`date +'%Y%m%d'`"
dir=/root/mysqlbak/$database
/usr/bin/mysqldump --opt $database -u$user -p$password > $dir/$filename.sql