I wrote this four years ago, so instead use this command:
$ docker rmi $(docker images -q -f dangling=true)
#!/bin/zsh | |
# | |
# Highlight a given file and copy it as RTF. | |
# | |
# Simon Olofsson <[email protected]> | |
# | |
set -o errexit | |
set -o nounset |
// PROXY | |
var url = require('url'), | |
http = require('http'), | |
colors = require('colors'); | |
http.createServer().listen(9000).on('request', function(request, response) { | |
try { | |
var options = url.parse(request.url); | |
options.headers = request.headers; |
This article will explain how to set up a secure web server with NodeJS which only accepts connection from users with SSL certificates that you have signed. This is an efficient way to ensure that no other people are able to access the web server, without building a login system which will be significantly weaker.
I will not explain how to create a certificate authority (CA), create certificates or sign them. If you need to read up on this, have a look at this excelent article on how to do it with OpenSSL (Mac and Linux): https://help.ubuntu.com/community/OpenSSL#Practical_OpenSSL_Usage It is also possible to do this on a Mac with the keychain application, and I assume it is possible on a Windows machine aswell.
This architecture will allow you to have one web server communicating with an array of trusted clients, the web server itself can be on the public internet, that will not decrease the level of security, but it will only ser
define [ | |
'use!vendor/backbone' | |
'underscore' | |
'str/htmlEscape' | |
], (Backbone, _, htmlEscape) -> | |
## | |
# Extends Backbone.View on top of itself to be 100X more useful | |
class Backbone.View extends Backbone.View |
/** | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2013 Thom Seddon | |
* Copyright (c) 2010 Google | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |