Skip to content

Instantly share code, notes, and snippets.

@specialforest
specialforest / install.sh
Created April 11, 2024 15:26
Nginx git server on Ubuntu
apt update
apt install -y nginx-full fcgiwrap apache2-utils openssl
openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out certificate.crt -keyout certificate.key
# chown -R www-data:www-data /path/to/repos
# nginx -t
# service nginx restart
#!/usr/bin/env python3
import csv
import json
import sys
import os
filename = sys.argv[1]
with open(filename) as input:
@specialforest
specialforest / ruby-1.8.7.patch
Created September 7, 2016 17:43
Ruby 1.8.7 patch for rbenv
From 46b84175dfac14a92fd6bcf3b03bc3c3715ab6cb Mon Sep 17 00:00:00 2001
From: nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Sat, 6 Mar 2010 21:47:30 +0000
Subject: [PATCH] backport the commit from trunk:
Sun Feb 28 11:49:35 2010 NARUSE, Yui <[email protected]>
* openssl/ossl.c (OSSL_IMPL_SK2ARY): for OpenSSL 1.0.
patched by Jeroen van Meeuwen at [ruby-core:25210]
fixed by Nobuyoshi Nakada [ruby-core:25238],
Hongli Lai [ruby-core:27417],
//
// leveldb compaction bug test
//
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <deque>
#include <map>
#include <string>