Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile
[====================== 100 % =====================]
[sort ispc]: [90322.421] million cycles
[====================== 100 % =====================]
[sort ispc + tasks]: [31999.193] million cycles
[====================== 100 % =====================]
[sort serial]: [30535.641] million cycles
(0.34x speedup from ISPC, 0.95x speedup from ISPC + tasks)
@fire
fire / run_letsencrypt
Created February 3, 2016 21:42 — forked from lgg/run_letsencrypt
Let's encrypt auto authenticator runner for multiply domains
#!/bin/bash
#Vars
web_service='nginx'
config_path='/usr/local/letssl/'
le_path='/opt/letsencrypt'
exp_limit=20;
#Func
function check_ssl {
@fire
fire / simple_git.md
Created February 13, 2016 04:10 — forked from 17twenty/simple_git.md
A Simple Git branching model

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

The gist

@fire
fire / vklayer
Created February 20, 2016 00:41 — forked from cheery/vklayer
Run scripts with added vulkan layers
#!/usr/bin/env python
"""
Run programs with added vulkan layers.
Author: Henri Tuhola <henri.tuhola@gmail.com>
License: MIT
Date: 2016-2-20
"""
import argparse, json, os, sys
@fire
fire / create-smartos-vm.sh
Created March 20, 2016 07:19 — forked from twobitfool/create-smartos-vm.sh
Create a SmartOS VM in VirtualBox
#!/bin/sh
#
# Creates a SmartOS VM in VirtualBox (assuming you alread have VirtualBox installed)
#
# This script will:
# * Download the latest live ISO image of SmartOS
# * Create a VirtualBox VM, or update an existing VM with the latest ISO
# * Configure the VM with a zones disk, and boot it!
#
#

Overview

These instructions outline how to install DalmatinerDB on a single node. Scaling out will be covered in a future document. It also covers configuring Telegraf to send in monitoring data and Grafana to build dashboards.

Here's how everything connects together:

dalmatiner architecture

@fire
fire / gh-dl-release
Created February 27, 2017 17:48 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@fire
fire / README.md
Last active July 17, 2017 02:41 — forked from polvi/README.md
HDFS of Kubernetes

Easiest HDFS cluster in the world with kubernetes.

Inspiration from kimoonkim/kubernetes-HDFS

kubectl create -f namenode.yaml
kubectl create -f datanode.yaml

Setup a port-forward to so you can see it is alive:

@fire
fire / hekad.toml
Created September 14, 2018 13:33 — forked from matschaffer/hekad.toml
[StatsdInput]
address = "localhost:8125"
[StatAccumInput]
type = "StatAccumInput"
ticker_interval = 1
emit_in_fields = true
percent_threshold = 95
[statmetric_atlas_encoder]