Skip to content

Instantly share code, notes, and snippets.

#!/bin/env bash
set -e -o pipefail
latest_nginx=$(curl -L http://nginx.org/en/download.html | egrep -o "nginx\-[0-9.]+\.tar[.a-z]*" | head -n 1)
cd /tmp
git clone --depth=1 https://boringssl.googlesource.com/boringssl &
(curl -fLRO "http://nginx.org/download/${latest_nginx}" && tar -xaf "${latest_nginx}") &
wait
@fjctlzy
fjctlzy / ca.md
Last active August 29, 2015 14:16 — forked from soarez/ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@fjctlzy
fjctlzy / ca.md
Last active August 29, 2015 14:16 — forked from soarez/ca.md

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

#!/usr/bin/env python
rows = 3
cols = 3
start_row = 0
start_col = 0
count = 0
def trace(row, col):
if row == rows and col == cols:
global count
@fjctlzy
fjctlzy / ngx_http_script.c
Created April 9, 2012 11:05
learning_nginx
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
@fjctlzy
fjctlzy / test.php
Created September 15, 2011 22:56
test
<?php
include_once('abc');
?>