This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --verbose --header 'Host: www.example.com' 'http://10.1.1.36:8000/the_url_to_test' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.defineProperty(navigator, "userAgent", {value: 'fake browser'}); | |
// ==UserScript== | |
// @name prevent pop-ad | |
// @include http://animeflv.net/* | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# You can also run this script with 1 line | |
# curl https://gist.githubusercontent.com/alekc/dcbf3a6e0d76560023fb08a6aa58d02c/raw/install-firehol-netdata.sh | bash | |
LC_ALL=C | |
# you need to install a basic build environment | |
# this is for ubuntu, change it according to your needs for other systems | |
apt-get update && apt-get install -y zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config traceroute ipset curl nodejs zip unzip jq ulogd2 autoconf-archive || exit 1 | |
for x in iprange firehol netdata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Define custom service directly inside interface block | |
server custom grayrests "tcp/9000" any accept | |
#Common noise ports | |
server custom plex "tcp/32412" any drop | |
server custom smb "tcp/445" any drop | |
#Whitelist an ip address(es) | |
server all accept src "8.8.8.8,1.1.1.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash/ | |
apt-get update && apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
sudo \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL get.docker.com | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get install curl -y && curl -fsSL get.docker.com | sh | |
curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker system prune | |
docker volume prune | |
docker rmi -f `docker images -qa ` | |
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
acl SSL_ports port 443 | |
acl Safe_ports port 80 # http | |
acl Safe_ports port 21 # ftp | |
acl Safe_ports port 443 # https | |
acl Safe_ports port 70 # gopher | |
acl Safe_ports port 210 # wais | |
acl Safe_ports port 1025-65535 # unregistered ports | |
acl Safe_ports port 280 # http-mgmt | |
acl Safe_ports port 488 # gss-http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi, is it just me or varnish 5 doesn't print hash_data() debug info in varnishlog like it used to around version 2? | |
Alekc | |
(http://pastebin.com/6C4G6XsJ) | |
← hpeter has quit (Client exited) | |
→ hpeter has joined | |
daghf | |
Alekc: param.set vsl_mask +Hash should enable that | |
← vegazo has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) | |
→ vegazo has joined | |
Alekc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installing carbon-relay-ng requirements | |
go get -d github.com/graphite-ng/carbon-relay-ng | |
go get github.com/jteeuwen/go-bindata/... | |
# Build and install carbon | |
cd /root/.gvm/pkgsets/go1.6.1/global/src/github.com/graphite-ng/carbon-relay-ng | |
mv carbon-relay-ng /usr/local/bin/ | |
mkdir -p /etc/carbon-relay-ng/ |