- Install a base server with open ssh server enabled.
- Update the OS.
sudo apt-get update
sudo apt-get upgrade
- Install developement tools.
| module.exports = TwoStep; | |
| var slice = Array.prototype.slice; | |
| function Group(callback) { | |
| this.args = [null]; | |
| this.left = 0; | |
| this.callback = callback; | |
| this.isDone = false; | |
| } |
| local Path = require('path') | |
| local FS = require('fs') | |
| local function search(code, pattern) | |
| local data = {} | |
| for pos, k, v in code:gmatch(pattern) do | |
| local sub = code:sub(1, pos) | |
| local comment = sub:match("\n-- ([^\n]+)\n$") | |
| if not comment then | |
| local long = sub:match("\n--%[(%b[])%]\n$") |
| # how to build luvit on windows7 x64 | |
| ## setup msysgit | |
| http://code.google.com/p/msysgit/ | |
| download and execute | |
| Git-1.7.11-preview20120710.exe | |
| installation target: C:\msysgit |
sudo apt-get update
sudo apt-get upgrade
| ------------------------------------ | |
| -- basic TLS/SSL3.1 implementation | |
| -- $Id: ssl.lua,v 1.13 2006-12-02 21:25:58 kt Exp $ | |
| ------------------------------------ | |
| require "clua" | |
| require "util" |
| #define RSA_BITS 2048 | |
| #define RSA_BYTES (RSA_BITS/8) | |
| #define DIGIT uint32_t | |
| #define DIGIT_BITS (sizeof(DIGIT)*8) | |
| #define DIGIT_MAX ((DIGIT)(-1)) | |
| #define NDIGITS (RSA_BITS/DIGIT_BITS) | |
| static int b_add(DIGIT * restrict r, DIGIT * restrict x, DIGIT * restrict y) | |
| { |
| { config, pkgs, ... }: | |
| let | |
| hostname = "luz3"; | |
| in { | |
| imports = | |
| [ # Include the results of the hardware scan. | |
| ./hardware-configuration.nix | |
| # I use VirtualBox to connect to Windows and Linux guests |
Lisp syntax, but using whitespace to remove most parentheses.
do to get just the value.|) acts like indentation without wasting whitespace.For example, take the following lisp style program:
| require "formula" | |
| class Lit < Formula | |
| homepage "https://github.com/luvit/lit" | |
| url "https://lit.luvit.io/packages/luvit/lit/v2.1.11.zip" | |
| sha1 "be0904957a4867bf1284d0ebd7b04e6ec521b85a" | |
| depends_on "luvi" => :build | |
| def install |