Skip to content

Instantly share code, notes, and snippets.

View delin's full-sized avatar

Denis Yulin delin

View GitHub Profile
@delin
delin / update_block_hosts.sh
Last active April 14, 2018 23:03 — forked from korovamilk/update_hosts.sh
Update Ad-Free /etc/hosts file from public lists
#!/bin/bash
TMP_FILE="$(mktemp)"
HOSTS_FILE="/config/hosts.deny"
DENY_HOSTS_URLS="http://adaway.org/hosts.txt \
http://winhelp2002.mvps.org/hosts.txt \
http://someonewhocares.org/hosts/hosts \
http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts\&showintro=0\&mimetype=plaintext"
EXCLUDE="\.google\.com \
google-analytics\.com \
\.yandex\.ru"
docker-machine create -d virtualbox --virtualbox-boot2docker-url https://releases.rancher.com/os/latest/rancheros.iso rancher
docker-machine create -d virtualbox --virtualbox-boot2docker-url https://releases.rancher.com/os/latest/rancheros.iso agent1
@delin
delin / com.zabbix.zabbix_agentd.plist
Last active January 14, 2016 09:59
Zabbix launchctl for OS X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.zabbix.zabbix_agentd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/zabbix_agentd</string>
<string>-c</string>
wget http://repo.zabbix.com/zabbix/2.4/debian/pool/main/z/zabbix-release/zabbix-release_2.4-1+wheezy_all.deb
dpkg -i zabbix-release_2.4-1+wheezy_all.deb
apt-get update