Skip to content

Instantly share code, notes, and snippets.

On vacation


On vacation
Block or report user

Report or block daiooo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
daiooo /
Last active Mar 30, 2020 — forked from vmvz/
ts-dns install in macOS
echo "\n DNS.Local install in macOS\n"
sudo cat > /Library/LaunchDaemons/dns.plist <<END
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN >
<plist version="1.0">
lsb_release -d
# check os version
co=$(lsb_release -a)
version="Ubuntu 18.04.4 LTS"
result=$(echo $co | grep "${version}")
if [[ "$result" != "" ]]; then
echo $version
daiooo /
Last active Nov 19, 2019 — forked from ralavay/
Enable syntax highlight for Nginx conf file in Vim
# Highligh Nginx config file in Vim
# Download syntax highlight
mkdir -p ~/.vim/syntax/
wget -O ~/.vim/syntax/nginx.vim
# Set location of Nginx config file
cat >> ~/.vim/filetype.vim <<EOF
You can’t perform that action at this time.