Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@brewn
brewn / gist:1f9ace49fb3563c418db861bf3d24e7e
Created March 20, 2018 14:20
i have no idea what i'm doinghere
$env:temp
wget http://downloads.example.com/install.msi -OutFile install.msi
msiexec /i .\install.msi /quiet /qn
dig +trace congresoendodoncia2018.pe
; <<>> DiG 9.8.3-P1 <<>> +trace congresoendodoncia2018.pe
;; global options: +cmd
. 127885 IN NS b.root-servers.net.
. 127885 IN NS a.root-servers.net.
. 127885 IN NS h.root-servers.net.
. 127885 IN NS j.root-servers.net.
. 127885 IN NS f.root-servers.net.
. 127885 IN NS e.root-servers.net.
M2Crypto-0.23.0-x86_64-1
a2ps-4.14-x86_64-5
a52dec-0.7.4-x86_64-2
aaa_base-14.2-x86_64-2
aaa_elflibs-14.2-x86_64-23
aaa_terminfo-5.9-x86_64-1
aalib-1.4rc5-x86_64-5
acl-2.2.52-x86_64-1
apr-1.5.2-x86_64-1
apr-util-1.5.4-x86_64-2
@brewn
brewn / error
Last active October 6, 2016 18:14
sudo varnishd -f /etc/varnish/custom.vcl -s malloc,500M -T 127.0.0.1:6082 -a 0.0.0.0:80 -d
sudo: unable to resolve host varnish
[sudo] password for n:
Message from VCC-compiler:
Expected an action, 'if', '{' or '}'
('Builtin' Line 42 Pos 1)
vcl 4.0;
###-----
Running VCC-compiler failed, exited with 2
server {
listen 8080;
listen [::]:8080;
server_name example.com;
return 301 http://www.example.com$request_uri;
}
server {
listen 8080;
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
#
# Note: If systemd is installed, this file is obsolete and ignored. You will
# need to copy /lib/systemd/system/varnish.service to /etc/systemd/system/ and
# edit that file.
# Should we start varnishd at boot? Set to "no" to disable.
vcl 4.0;
backend default {
.host = "localhost";
.port = "8080";
}
acl purger {
"localhost";
“123.45.67.89”;