Skip to content

Instantly share code, notes, and snippets.

View phaus's full-sized avatar
🦓

Philipp Haussleiter phaus

🦓
View GitHub Profile
@phaus
phaus / bundle.js
Created February 10, 2020 14:23
resulting dist/bundle.js
(function () {
'use strict';
let BLANKS = [undefined, null, false];
function simpleLog(type, msg) {
console.log(`[${type}] ${msg}`); // eslint-disable-line no-console
} // returns a function that invokes `callback` only after having itself been
// invoked `total` times
function awaitAll(total, callback) {
@phaus
phaus / dalmatinerfe.log
Created July 17, 2018 23:30
dalmatinerfe errors
==> /data/dalmatinerfe/log/console.log <==
2018-07-17 23:29:23.562 [info] <0.659.0> Application lager started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.568 [info] <0.659.0> Application cowboy started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.568 [info] <0.659.0> Application epgsql started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.569 [info] <0.659.0> Application dflow started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.579 [info] <0.659.0> Application ddb_connection started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.590 [info] <0.659.0> Application pgapp started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.590 [info] <0.659.0> Application dqe_idx_ddb started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.591 [info] <0.659.0> Application dqe_fun started on node 'dalmatinerfe@192.168.168.233'
2018-07-17 23:29:23.591 [info] <0.659.0> Application sqlmig started on node 'dalmatinerfe@192.168.168.233'
@phaus
phaus / checkGC.sh
Last active September 27, 2016 12:02
check for OBJC_IMAGE_SUPPORTS_GC macOS Sierra compatibility
#!/bin/bash
checkFile(){
FILE=$1
OTOOL=`which otool`
TAIL=`which tail`
IFS='/' read -ra ADDR <<< "$FILE"
unset APP
for i in "${ADDR[@]}"; do
if [[ ! "${i-}" = $'\n' ]]; then
@phaus
phaus / openldap.json
Last active June 13, 2016 20:16
that zone worked
{
"alias": "ldap",
"hostname": "ldap",
"brand": "lx",
"kernel_version": "3.10.0",
"cpu_shares": 20,
"max_physical_memory": 512,
"quota": 5,
"image_uuid": "07b33b7a-27a3-11e6-816f-df7d94eea009",
"resolvers": [
@phaus
phaus / gitlab.json
Created June 13, 2016 20:12
failed to login after zone setup
{
"alias": "gitlab",
"hostname": "gitlab",
"brand": "lx",
"kernel_version": "3.10.0",
"max_physical_memory": 1024,
"cpu_shares": 40,
"quota": 64,
"image_uuid": "07b33b7a-27a3-11e6-816f-df7d94eea009",
"resolvers": [
@phaus
phaus / 2fact.js
Last active January 21, 2016 10:23
run a Docker Container on SmartOS
{
"alias": "2fact",
"brand": "lx",
"kernel_version": "3.13.0",
"docker": true,
"cpu_shares": 1000,
"zfs_io_priority": 1000,
"max_physical_memory": 1024,
"quota": 10,
"nowait": true,
#cloud-config
hostname: "coreos1"
# include one or more SSH public keys
ssh_authorized_keys:
- ssh-rsa XXX
coreos:
units:
{
"execution": "failed",
"chain_results": [
{
"result": "All parameters OK!",
"error": "",
"name": "common.validate_params",
"started_at": "2015-08-02T18:16:48.867Z",
"finished_at": "2015-08-02T18:16:48.871Z"
},
@phaus
phaus / Vagrantfile
Last active August 29, 2015 14:07
vagrant-mesos
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
{
"login": "consolving",
"id": 3236400,
"url": "https://api.github.com/orgs/consolving",
"repos_url": "https://api.github.com/orgs/consolving/repos",
"events_url": "https://api.github.com/orgs/consolving/events",
"members_url": "https://api.github.com/orgs/consolving/members{/member}",
"public_members_url": "https://api.github.com/orgs/consolving/public_members{/member}",
"avatar_url": "https://avatars.githubusercontent.com/u/3236400?v=2",
"name": "Consolving Network Solutions",