Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

daiooo

🌴
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
daiooo / dns.overture.sh
Last active Mar 30, 2020 — forked from vmvz/dns.overture.sh
ts-dns install in macOS
View dns.overture.sh
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>
View deploy.sh
#!/bin/bash
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
else
@daiooo
daiooo / vim-nginx-conf-highlight.sh
Last active Nov 19, 2019 — forked from ralavay/vim-nginx-conf-highlight.sh
Enable syntax highlight for Nginx conf file in Vim
View vim-nginx-conf-highlight.sh
#!/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
You can’t perform that action at this time.