Skip to content

Instantly share code, notes, and snippets.

@tvon
tvon / puppet.log
Created October 30, 2015 18:04
hq-vagrant manager debug
2015-10-30 17:51:41 +0000 Puppet (err): Unable to set ownership to puppet:puppet for log file: /vagrant/puppet.log
2015-10-30 17:51:41 +0000 Puppet (debug): Runtime environment: puppet_version=4.2.1, ruby_version=2.1.6, run_mode=user, default_encoding=UTF-8
2015-10-30 17:51:41 +0000 Puppet (debug): Evicting cache entry for environment 'vagrant'
2015-10-30 17:51:41 +0000 Puppet (debug): Caching environment 'vagrant' (ttl = 0 sec)
2015-10-30 17:51:41 +0000 Puppet (debug): Evicting cache entry for environment 'vagrant'
2015-10-30 17:51:41 +0000 Puppet (debug): Caching environment 'vagrant' (ttl = 0 sec)
2015-10-30 17:51:41 +0000 Puppet (debug): Loading external facts from /opt/puppetlabs/puppet/cache/facts.d
2015-10-30 17:51:41 +0000 Puppet (info): Loading facts
2015-10-30 17:51:41 +0000 Puppet (debug): Loading facts from /tmp/vagrant-puppet/environments/vagrant/modules/apt/lib/facter/apt_reboot_required.rb
2015-10-30 17:51:41 +0000 Puppet (debug): Loading facts from /tmp/vagrant-puppet/environments/vagrant/modu
@tvon
tvon / init.vim
Created November 2, 2015 18:15
neovim init
" https://github.com/junegunn/vim-plug
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:plug_window = 'botright new | resize 10'
call plug#begin('~/.config/nvim/plugged')
"Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rails'
Plug 'tpope/vim-jdaddy'
Plug 'tpope/vim-repeat'
@tvon
tvon / install.log
Last active December 14, 2015 00:57
cp /usr/local/share/boot2docker/boot2docker.iso ^[]4;0;rgb:18/18/18^[\^[]4;1;rgb:ab/46/42^[\^[]4;2;rgb:a1/b5/6c^[\^[]4;3;rgb:f7/ca/88^[\^[]4;4;rgb:7c/af/c2^[\^[]4;5;rgb:ba/8b/af
^[\^[]4;6;rgb:86/c1/b9^[\^[]4;7;rgb:d8/d8/d8^[\^[]4;8;rgb:58/58/58^[\^[]4;9;rgb:ab/46/42^[\^[]4;10;rgb:a1/b5/6c^[\^[]4;11;rgb:f7/ca/88^[\^[]4;12;rgb:7c/af/c2^[\^[]4;13;rgb:ba/8b/af^[\^[]4;14;rgb:86/c1/b9^
[\^[]4;15;rgb:f8/f8/f8^[\^[]4;16;rgb:dc/96/56^[\^[]4;17;rgb:a1/69/46^[\^[]4;18;rgb:28/28/28^[\^[]4;19;rgb:38/38/38^[\^[]4;20;rgb:b8/b8/b8^[\^[]4;21;rgb:e8/e8/e8^[\^[]10;rgb:d8/d8/d8^[\^[]11;rgb:18/18/18^[
\^[]12;rgb:d8/d8/d8^[\/Users/tvon/.docker/machine/cache/boot2docker.iso
flags = %{
default: 0,
sourcepos: 1,
hardbreaks: 2,
normalize: 4,
smart: 8,
validate_utf8: 16,
safe: 32
}
defmodule Example do
def test(data \\ [], options \\ [])
def test(data, options \\ []) when is_list(data) do
IO.puts "is list"
end
def test(data, options \\ []) when is_bitstring(data) do
IO.puts "is bitsring"
#!/usr/bin/env bash
NGINX=/usr/sbin/nginx
DIRECTIVES="worker_processes 1; pid /var/run/nginx-${USER}.pid; error_log /dev/null;"
# nginx attempts to write to the default logfile location despite the passed directive, so grep those errors out
# (note that I may just be doing something stupid and not properly setting the directive)
$NGINX -t -c $1 -g "$DIRECTIVES" 2>&1 | grep -v '^nginx: '
@tvon
tvon / configuration.nix
Last active September 29, 2020 03:54
NixOS config
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
activate() {
if [ $# -eq 0 ];
then
if [ -f .nix ];
then
nix-shell .nix -A localEnv
else
echo '.nix file not found' 1>&2
fi
else
-- Build files have been written to: /tmp/nix-build-xen-4.5.2.drv-0/xen-4.5.2/stubdom/tpm_emulator-x86_64/build
touch tpm_emulator-x86_64
/tmp/nix-build-xen-4.5.2.drv-0/xen-4.5.2/wget/wget -c -O gmp-4.3.2.tar.bz2 \/tmp/nix-build-xen-4.5.2.drv-0/xen-4.5.2/stubdom/../xen_ext_files/gmp-4.3.2.tar.bz2
===== Not fetching -c -O gmp-4.3.2.tar.bz2 /tmp/nix-build-xen-4.5.2.drv-0/xen-4.5.2/stubdom/../xen_ext_files/gmp-4.3.2.tar.bz2, copy pre-fetched file instead [6693/72580]
tar xjf gmp-4.3.2.tar.bz2
rm gmp-x86_64 -rf || :
mv gmp-4.3.2 gmp-x86_64
#patch -d gmp-x86_64 -p0 < gmp.patch
cd gmp-x86_64; CPPFLAGS="-isystem /tmp/nix-build-xen-4.5.2.drv-0/xen-4.5.2/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /tmp/nix-build-xen-4.5.2.drv-0/xen-4.5.2/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /tmp/nix-
==> Reinstalling neovim/neovim/neovim
==> Cloning https://github.com/neovim/neovim.git
Updating /Library/Caches/Homebrew/neovim--git
git config remote.origin.url https://github.com/neovim/neovim.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
==> Checking out branch master
git checkout -f master --
Your branch is up-to-date with 'origin/master'.
git reset --hard origin/master