Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| var mongoose = require('mongoose'); | |
| mongoose.connect('mongodb://localhost/test'); | |
| var db = mongoose.connection; | |
| db.on('error', function() { | |
| return console.error.bind(console, 'connection error: '); | |
| }); | |
| user www-data; | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>localStorage Test</title> | |
| <script type="text/javascript" > | |
| var count = 0; | |
| var storageHandler = function () { | |
| alert('storage event 1'); | |
| }; |
| # One liner for counting unique IP addresses from nginx logs | |
| # Feel free to comment with better ideas - I'm sure it's not the best way of doing this (I'm no awk ninja!) | |
| # | |
| # Sample output: | |
| # | |
| # $ cat example.com.access.log | awk -F " " '{a[$1]++ } END { for (b in a) { print b, "\t", a[b] } }' | |
| # 66.65.145.220 49 | |
| # 92.63.28.68 126 | |
| cat example.com.access.log | awk -F " " '{a[$1]++ } END { for (b in a) { print b, "\t", a[b] } }' |
The list would not be updated for now. Don't write comments.
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.
Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:
githubUsers| <html> | |
| <body> | |
| <video id="v" width="300" height="300"></video> | |
| <input id="b" type="button" disabled="true" value="Take Picture"></input> | |
| <canvas id="c" style="display:none;" width="300" height="300"></canvas> | |
| </body> | |
| <script> | |
| navigator.getUserMedia({video: true}, function(stream) { | |
| var video = document.getElementById("v"); | |
| var canvas = document.getElementById("c"); |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "runtime" | |
| ) |