Skip to content

Instantly share code, notes, and snippets.

View crashcoredump's full-sized avatar

This is a private repo used to bookmark other repos for further use. crashcoredump

View GitHub Profile
@crashcoredump
crashcoredump / deployment-tool-ansible-puppet-chef-salt.md
Created June 22, 2019 01:56 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@crashcoredump
crashcoredump / README.md
Created March 26, 2019 02:31 — forked from MoOx/README.md
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
@crashcoredump
crashcoredump / es
Created November 13, 2018 04:09 — forked from alexmurray/es
Shutdown Emacs Server
#!/bin/bash
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/
# simple script to shutdown the running Emacs daemon
# emacsclient options for reference
# -a Alternate editor, runs bin/false in this case
# -e eval the script
# /usr/local/etc/smb4.conf
# Samba 4.1 Configuration file
[global]
# SPECIFIC SETTINGS FOR THIS MACHINE
netbios name = ZNAS1
# Basic settings
workgroup = MYDOMAIN
realm = MYDOMAIN.local
@crashcoredump
crashcoredump / xhyve-freebsd-tutorial-1.md
Created December 6, 2017 01:58 — forked from tanb/xhyve-freebsd-tutorial-1.md
FreeBSD running on xhyve tutorial. (Appendix: Resize image with qemu. Create FreeBSD VM with qemu).

TL;DR

  • Create 5GB FreeBSD image.
  • Install FreeBSD on xhyve.
  • Mount host directory.

Requisites

@crashcoredump
crashcoredump / ca.md
Created November 22, 2017 23:06 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@crashcoredump
crashcoredump / zfs
Created November 16, 2017 03:36 — forked from kiela/zfs
HOWTO: Hetzner + FreeBSD 10.3 + mirrored root ZFS mountpoint optimized for 4K drives
[root@rescue ~]# kldload zfs
[root@rescue ~]# sysctl kern.geom.label.gptid.enable=0
kern.geom.label.gptid.enable: 1 -> 0
[root@rescue ~]# gpart destroy -F nvd0
nvd0 destroyed
[root@rescue ~]# gpart destroy -F nvd1
nvd1 destroyed
# Getting "gpart: arg0 'nvdN': Invalid argument" is alright as it means that there was no partition table on the disk anyway.
[root@rescue ~]# gpart create -s gpt nvd0
@crashcoredump
crashcoredump / README.md
Created August 21, 2017 04:57
Eggdrop scripts

Eggdrop 1.8 SASL script:

  1. For convenience, download this entire gist with git clone https://gist.github.com/4455067.git

  2. Get Eggdrop 1.8 [from Git][egggit] or [from CVS][eggcvs]. Compile and install.

    The preinit-server patch was [merged into Eggdrop 1.8][commit] recently, so you do not need to patch it manually anymore.

  3. From your Eggdrop config, source the scripts and set the SASL information.

#!/bin/sh -x
START_DIR=$CWD
SHARE_DIR=/backup001/chem/home/chem/src/mfsbsd
KEYBOARD=dvorak
WANT_PHORONIX_TEST_SUITE=4.4.1 # set it to no to disable
# catch error from my own error function even in subshell.
err_handler ()
{
rc=$?

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post