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
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; |
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
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> |
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
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 |
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
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 |
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 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'); |
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
{ | |
"name": "sunsetvote", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node ./bin/www" | |
}, | |
"dependencies": { | |
"express": "~4.2.0", | |
"static-favicon": "~1.0.0", |
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
#!/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); | |
}); |
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 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: */* |
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
night:/home/nick/node/sunsetvote# netstat -anp 2> /dev/null | grep :3000 | |
tcp6 0 0 :::3000 :::* LISTEN 20918/node |
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
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 |
OlderNewer