Skip to content

Instantly share code, notes, and snippets.

@patrickkh7788
patrickkh7788 / debootstrap-debian-squeeze-auto.txt
Created April 24, 2021 04:22 — forked from rwcitek/debootstrap-debian-squeeze-auto.txt
Mostly automated install of Debian Squeeze in a VirtualBox VM using Knoppix 7.2 and debootstrap
# based in part on information from here:
# http://www.linuxquestions.org/questions/debian-26/how-to-install-debian-using-debootstrap-4175465295/
#### Part 1 - Knoppix
# boot Knoppix 7.2
knoppix64 2 vga=788 noaudio
# configure networking
import std.stdio, std.variant;
//==============================================================================
// registry for query field names
template registerQuery(T, string file, size_t line)
{
__gshared string[] fields;
}
#!/bin/sh
# cross & static compile shadowsocks-libev
PCRE_VER=8.41
PCRE_FILE="http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.tar.gz"
MBEDTLS_VER=2.6.0
MBEDTLS_FILE="https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz"
@patrickkh7788
patrickkh7788 / README.md
Created October 16, 2017 06:12 — forked from nichtich/README.md
How to automatically deploy from GitHub

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named www-data (may be apache on other systems)
@patrickkh7788
patrickkh7788 / d_to_html.d
Created August 6, 2017 13:05 — forked from WebFreak001/d_to_html.d
Create websites using D, with a cool syntax
import std.conv;
import std.stdio;
import std.traits;
import std.range;
struct Element
{
string _name;
string[string] _attributes;
string _content;