Skip to content

Instantly share code, notes, and snippets.

View gist:8916020
gzip on;
gzip_disable "msie6";
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
View gist:9149014
I've been trying different smoothies and so far this one is my favorite. Try to use all organic products if you can.
<strong>Ingredients</strong>
<ul>
2 cups baby spinach
1 cup of frozen berries (strawberry, blueberries, raspberries)
1 banana
1/4 cup plain non-fat or low-fat yogurt
1/4 cup of uncooked oatmeal
1 cup of apple juice</ul>
View gist:9244893
nickfox-mbp:Documents nickfox$ curl -v https://www.mywebsite.com
* Adding handle: conn: 0x7f8e44004400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f8e44004400) send_pipe: 1, recv_pipe: 0
* About to connect() to www.mywebsite.com port 443 (#0)
* Trying 69.164.196.178...
* Connected to www.mywebsite.com (69.164.196.178) port 443 (#0)
* TLS 1.0 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
View gist:0d0e281bb960eaa687fa
The gps coordinates can be displayed easily by adding the following two rows
to maps.js just after line 174:
+ "<tr><td align=right>latitude:</td><td>" + latitude + "</td></tr>"
+ "<tr><td align=right>longitude:</td><td>" + longitude + "</td></tr>"
https://github.com/nickfox/GpsTracker/blob/master/servers/php/javascript/maps.js
View gist:a0c33a8c8bd864f959bf
#!/usr/bin/env node
var debug = require('debug')('sunsetvote');
var app = require('../app');
app.set('port', process.env.PORT || 3000);
var server = app.listen(app.get('port'), function() {
debug('Express server listening on port ' + server.address().port);
});
View gist:01da4a62772a7f541f6c
night:/home/nick/node/sunsetvote# sysctl -a | grep bindv6only
error: "Invalid argument" reading key "fs.binfmt_misc.register"
error: permission denied on key 'net.ipv4.route.flush'
error: permission denied on key 'net.ipv6.route.flush'
net.ipv6.bindv6only = 0
View gist:98c8811309a97fcfa79f
curl 7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
root@night:/home/nick/node/sunsetvote# curl -v localhost:3000/helloworld
* About to connect() to localhost port 3000 (#0)
* Trying 127.0.0.1... connected
> GET /helloworld HTTP/1.1
> User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: localhost:3000
> Accept: */*
View gist:8162eeec0a0a0b6eb09e
night:/home/nick/node/sunsetvote# netstat -anp 2> /dev/null | grep :3000
tcp6 0 0 :::3000 :::* LISTEN 20918/node
View gist:deef567fed9526311b7c
var express = require('express');
var path = require('path');
var favicon = require('static-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
View gist:b849538f89c15998fe25
{
"name": "sunsetvote",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"express": "~4.2.0",
"static-favicon": "~1.0.0",
You can’t perform that action at this time.