Skip to content

Instantly share code, notes, and snippets.

@philthynz
philthynz / firefly iii install on 18.04.md
Last active August 3, 2020 17:40
Firefly III install on Ubuntu18.04

Firefly III install on Ubuntu 18.04

These instructions will install Firefly III on Ubuntu 18.04. It includes setup for:

  • PHP 7.2
  • Nginx
  • MariaDB
  • Securing an Ubuntu server
  • Securing Maria DB
  • Let's Encrypt
@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active May 22, 2025 13:25
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@Dunkelheit
Dunkelheit / benchmark.js
Last active February 9, 2016 13:25
Benchmark between schema-validator and tv4
var Benchmark = require('benchmark');
var schemaManager = require('schema-inspector');
var tv4 = require('tv4');
var suite = new Benchmark.Suite;
var schema = {
count: {
optional: true
},
@KyleAMathews
KyleAMathews / lambda.md
Last active May 13, 2022 00:49
Using Kafka and a Samza-like node.js architecture

Disclaimer

I'm still very new to Kafka, eventsourcing, stream processing, etc. I'm in the middle of building my first production system with this stuff and am writing this at the request of a few folks on Twitter. So if you do have experience, please do me and anyone else reading this a favor by pointing out things I get wrong :)

Inspirations

@staltz
staltz / introrx.md
Last active July 19, 2025 08:08
The introduction to Reactive Programming you've been missing
@yruss972
yruss972 / gist:92a4060fe2a54f2caa8a
Last active August 29, 2015 14:02 — forked from chakatz/gist:6204134
Compile couchbase 2.5.1 on SmartOS base64 14.1 image (as root)
#
# Setup destination directory
#
export MY_CB_DIR=/opt/couchbase
mkdir ${MY_CB_DIR}
# Install pre-requisite packages
/opt/local/bin/pkgin -y in libtool-base autoconf automake git gcc47 gnupg gmake libevent icu py27-expat snappy erlang-15 subversion-base go gettext
#
@denji
denji / nginx-tuning.md
Last active July 18, 2025 05:37
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@jctanner
jctanner / gist:7602743
Created November 22, 2013 16:31
create an ansible test zone in smartos
imgadm import a1d74530-4212-11e3-8a71-a7247697c8f2
vmadm create <<EOF
{
"alias": "ansible"
,"hostname": "ansible"
,"zfs_root_compression": "on"
,"autoboot": false
,"brand": "joyent"
,"dataset_uuid": "a1d74530-4212-11e3-8a71-a7247697c8f2"
,"max_physical_memory": 256
@jmervine
jmervine / Makefile
Last active February 20, 2020 11:30
Node.js forever Makefile tasks.
#
# Tasks
#
# - start :: starts application using forever
# - stop :: stops application using forever
# - restart :: restart application using forever
#
# This set's your local directory to to your NODE_PATH
NODE_EXEC = NODE_PATH=.:$(NODE_PATH)
@revnode
revnode / tar.gz with gpg-encryption on the fly
Created June 5, 2013 17:46
Create a encrypted tar.gz file from a directory on the fly. The encryption is done by GPG with a public key. The resulting filename is tagged with the date of creation. Very usefull for encrypted snapshots of folders.
tar -cvz /<path>/ | gpg --encrypt --recipient <keyID> > /<backup-path>/backup_`date +%d_%m_%Y`.tar.gz.gpg