Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am khaije1 on github.
  • I am khaije1 (https://keybase.io/khaije1) on keybase.
  • I have a public key ASCe7hbb_JNzUwDyIzqhTeYRt3oE6Zp3uD0YsxGuw8EnLgo

To claim this, I am signing this object:

==> salt-test-d1: Clearing any previously set forwarded ports...
==> salt-test-d1: Clearing any previously set network interfaces...
==> salt-test-d1: [landrush] virtualbox requires an additional private network; adding it
==> salt-test-d1: [landrush] Host DNS resolver config looks good.
==> salt-test-d1: Preparing network interfaces based on configuration...
salt-test-d1: Adapter 1: nat
salt-test-d1: Adapter 2: hostonly
==> salt-test-d1: Forwarding ports...
salt-test-d1: 22 (guest) => 2222 (host) (adapter 1)
==> salt-test-d1: Booting VM...
@khaije1
khaije1 / GeMa Elevator Pitch
Last active February 16, 2017 19:58
GeMa Spec
enterprise:
- low-cost, adaptable, dynamic, provable, portable systems design
@khaije1
khaije1 / gist:feeddc58a6d8c4990ff8
Last active August 29, 2015 14:15
the Quest for Unpriviledged LXC on Debian (personal notes, some understood portions omitted)
## unpriviledged LXC on Debian ##
#refs: http://www.cyberciti.biz/faq/howto-linux-configuring-default-route-with-ipcommand/ https://wiki.debian.org/BridgeNetworkConnections https://www.stgraber.org/2014/01/17/lxc-1-0-unprivileged-containers/
## one-time pre-reqs
# install software packages
aptitude install lxc newuidmap
#(opt.) for network access: aptitude install bridge-utils
# the Make rules
$(OBJ_DIR)/%.f$(sfxObj) : %.f $(DEP_DIR)/%.f$(sfxDep)
$(FC) -c $< $(call fn_includes_from_src,$<) $(SHAREDFLAGS) $(FFLAGS) -o $@
...
@khaije1
khaije1 / gitolite.rc
Last active December 29, 2015 03:48
gitolite
# configuration variables for gitolite
# This file is in perl syntax. But you do NOT need to know perl to edit it --
# just mind the commas, use single quotes unless you know what you're doing,
# and make sure the brackets and braces stay matched up!
# (Tip: perl allows a comma after the last item in a list also!)
# HELP for commands (see COMMANDS list below) can be had by running the
# command with "-h" as the sole argument.
@khaije1
khaije1 / .bash_aliases
Last active February 14, 2019 02:57
fun w/ drobo
# Hard Reset SVN working-copy back to checkout (records a diff first).
alias svn.HardReset='read -p "destroy ALL local changes?[y/N]" && [[ $REPLY =~ ^[yY] ]] && svn diff &> $(mktemp | tee -a "${HOME}/.svnReset.log") && svn revert -R . && rm -rf $(awk -f <(echo "/^?/{print $2}") <(svn status );)'
@khaije1
khaije1 / .gitignore
Last active January 13, 2020 02:22
fun w/ git
#
# .gitignore - inhibit git from tracking files matching the below patterns
#
#
# for directory tracking, add empty .gitignore to example/.
!.gitignore
!.gitkeep
;intern is a built-in function in `C source code'.
;|
;|(intern STRING &optional OBARRAY)
;|
;|Return the canonical symbol whose name is STRING.
;|If there is none, one is created by this function and returned.
;|A second optional argument specifies the obarray to use;
;|it defaults to the value of `obarray'.
;#DEMO: reflection in elisp
@khaije1
khaije1 / etc-apt-preferences
Last active September 29, 2015 19:27
debian aptitude setup
# /etc/apt/preferences
#experimental
package: *
pin: release a=experimental
pin-priority: -300
#unstable
package: *
pin: release a=unstable