- Create 10GB FreeBSD image using QEMU.
- Run the VM using xhyve.
- Mount host directory.
- Resize the image.
- OSX
- Homebrew
# Applies functions in `fs` in order whose input starts with `iv` and | |
# each function's output is fed into the next function in the chain. | |
# Should any function return `None`, the chain is broken, execution | |
# stops and `None` is returned. | |
def chain(iv, *fs): | |
v = iv | |
for f in fs: | |
v = f(v) | |
if v is None: | |
break |
#!/usr/bin/env python2.7 | |
from __future__ import print_function | |
import commands | |
import os | |
import stat | |
from gitlab import Gitlab | |
def get_clone_commands(token, repo_root): | |
con = Gitlab("http://gitlab.your.domain", token) |
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <[email protected]> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
# basic pfctl control | |
# == | |
# Related: http://www.OpenBSD.org | |
# Last update: Tue Dec 28, 2004 | |
# == | |
# Note: | |
# this document is only provided as a basic overview | |
# for some common pfctl commands and is by no means | |
# a replacement for the pfctl and pf manual pages. |
EAL: Detected lcore 0 as core 0 on socket 0 | |
EAL: Detected lcore 1 as core 1 on socket 0 | |
EAL: Detected lcore 2 as core 2 on socket 0 | |
EAL: Detected lcore 3 as core 3 on socket 0 | |
EAL: Detected lcore 4 as core 4 on socket 0 | |
EAL: Detected lcore 5 as core 5 on socket 0 | |
EAL: Detected lcore 6 as core 6 on socket 0 | |
EAL: Detected lcore 7 as core 7 on socket 0 | |
EAL: Detected lcore 8 as core 8 on socket 0 | |
EAL: Detected lcore 9 as core 0 on socket 1 |
os_http_be.map and os_sni_passthrough.map are both just empty files |
/** | |
* CircularFIFO.h - this file defines the template class for a single-producer, | |
* multi-consumer, circular FIFO queue with a size initially | |
* specified in the definition of the instance. This queue | |
* is completely thread-safe so long as there is ONE and ONLY | |
* ONE thread placing elements into this container, and there | |
* can be as many as necessary remobing them from the queue. | |
* The syntax is very simple - push() will push an element, | |
* returning 'true' if there is room, and the value has been | |
* placed in the queue. |
react + redux + RR
It uses https://gist.github.com/iNikNik/3c1b870f63dc0de67c38 for stores and actions.
1) create redux
const redux = createRedux(state);
2) get requireAccess func => bindCheckAuth to redux
#!/bin/sh | |
git rebase --interactive --autosquash \ | |
$(git merge-base $(git symbolic-ref --short HEAD) master) |