Skip to content

Instantly share code, notes, and snippets.

View daiooo's full-sized avatar
🌴
On vacation

daiooo

🌴
On vacation
View GitHub Profile
@daiooo
daiooo / dns.overture.sh
Last active March 30, 2020 23:35 — forked from vmvz/dns.overture.sh
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
http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<plist version="1.0">
<dict>
<key>Label</key>
<string>dns</string>
<key>ProgramArguments</key>
@daiooo
daiooo / vim-nginx-conf-highlight.sh
Last active November 19, 2019 09:03 — forked from ralavay/vim-nginx-conf-highlight.sh
Enable syntax highlight for Nginx conf file in Vim
#!/bin/bash
#
# Highligh Nginx config file in Vim
# Download syntax highlight
mkdir -p ~/.vim/syntax/
wget -O ~/.vim/syntax/nginx.vim http://www.vim.org/scripts/download_script.php?src_id=19394
# Set location of Nginx config file
cat >> ~/.vim/filetype.vim <<EOF