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
var plumber = require('gulp-plumber'); | |
var gutil = require('gulp-util'); | |
var onError = function(err) { | |
gutil.beep(); | |
console.error("You did something wrong, NERD! " + err.message); | |
} | |
gulp.task('less', function() { | |
gulp.src('app/src/less/main.less') |
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
# Generated by iptables-save v1.4.21 on Thu Sep 18 12:53:41 2014 | |
*nat | |
:PREROUTING ACCEPT [378:24243] | |
:INPUT ACCEPT [48:2690] | |
:OUTPUT ACCEPT [9616:597220] | |
:POSTROUTING ACCEPT [9616:597220] | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 | |
-A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8080 | |
-A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE | |
COMMIT |
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
.categories { | |
ul { | |
li { | |
width: 200px; | |
text-align: center; | |
.font-size(1.6); | |
display: inline-block; | |
margin: 0 36px; |
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
root@ipsec-vpn:~# service ipsec start | |
ipsec: unrecognized service |
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 necessary dependencies... | |
Extracting templates from packages: 100% | |
Installing StrongSwan... | |
strongswan start/running | |
Downloading StrongSwan's source... | |
Configuring StrongSwan... | |
configure: error: GNU Multi Precision library gmp not found | |
Installing StrongSwan... | |
make: *** No rule to make target `install'. Stop. | |
Generating /var folder |
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
Oct 13 16:39:53 ipsec-vpn charon: 09[NET] received packet: from 184.152.76.63[500] to 162.242.170.217[500] | |
Oct 13 16:39:53 ipsec-vpn charon: 09[NET] waiting for data on sockets | |
Oct 13 16:39:53 ipsec-vpn charon: 16[NET] received packet: from 184.152.76.63[500] to 162.242.170.217[500] (668 bytes) | |
Oct 13 16:39:53 ipsec-vpn charon: 16[ENC] parsed ID_PROT request 0 [ SA V V V V V V V V V V V V V V ] | |
Oct 13 16:39:53 ipsec-vpn charon: 16[CFG] looking for an ike config for 162.242.170.217...184.152.76.63 | |
Oct 13 16:39:53 ipsec-vpn charon: 16[CFG] candidate: %any...%any, prio 28 | |
Oct 13 16:39:53 ipsec-vpn charon: 16[CFG] found matching ike config: %any...%any with prio 28 | |
Oct 13 16:39:53 ipsec-vpn charon: 16[IKE] received NAT-T (RFC 3947) vendor ID | |
Oct 13 16:39:53 ipsec-vpn charon: 16[IKE] received draft-ietf-ipsec-nat-t-ike vendor ID | |
Oct 13 16:39:53 ipsec-vpn charon: 16[IKE] received draft-ietf-ipsec-nat-t-ike-08 vendor ID |
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
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/netlib/tcp.py", line 379, in request_thread | |
self.handle_connection(request, client_address) | |
File "/usr/local/lib/python2.7/dist-packages/libmproxy/proxy.py", line 549, in handle_connection | |
h.handle() | |
File "/usr/local/lib/python2.7/dist-packages/libmproxy/proxy.py", line 196, in handle | |
while self.handle_request(cc) and not cc.close: | |
File "/usr/local/lib/python2.7/dist-packages/libmproxy/proxy.py", line 239, in handle_request | |
sc.send(request) | |
File "/usr/local/lib/python2.7/dist-packages/libmproxy/proxy.py", line 66, in send |
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
# Remove /v1/ from the request uri | |
map $request_uri $post_uri { | |
~^/v1(?P<uri_string>.*)$ $uri_string; | |
} | |
# Main Host | |
server { | |
listen 80; | |
server_name host; |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "trusty64" | |
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box" | |
config.vm.network :private_network, ip: "198.18.0.114" | |
config.vm.synced_folder "./web", "/vagrant/web", owner: "www-data", group: "www-data", mount_options: ["dmode=775,fmode=664"] | |
end |
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
server { | |
listen 80; | |
server_name public.dev; | |
location / { | |
proxy_pass http://127.0.0.1:8020; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; |