Skip to content

Instantly share code, notes, and snippets.

View quidome's full-sized avatar

Quido Meijer quidome

  • bol.com
  • Utrecht, Netherlands
View GitHub Profile
{ lib, pkgs, config, ... }:
let
cfg = config.my.gui;
in
{
config = lib.mkIf (cfg.environment == "gnome") {
# set some defaults for gnome
my.xorg.enable = true;
# gnome settings by dconf
@quidome
quidome / python_env_sierra.md
Last active September 12, 2017 20:13
Installing python and virtualenvwrapper in OSX Sierra

Installing python and virtualenvwrapper in OSX Sierra

I don't want to change system python and have the freedom to run python2 or python3 scripts with all needed modules. At the moment virtualenv seems the solution for me.

Homebrew

Follow instructions from [https://brew.sh/]

Install python

@quidome
quidome / dual booting arch and osx using crypted zfs
Last active June 6, 2017 07:44
Dual boot OSX with archlinux using zfs on crypted disks
# resize OSX partition (disable filevault if enabled)
# enable support for OSX
pacman-key -r 0EE7A126
pacman-key --lsign-key 0EE7A126
cat<<EOF>>/etc/pacman.conf
[archzfs]
Server = http://archzfs.com/$repo/x86_64
EOF
{
"alias": "lx-test",
"brand": "lx",
"kernel_version": "3.13.0",
"max_physical_memory": 2048,
"image_uuid": "a21a64a0-0809-11e5-a64f-ff80e8e8086f",
"resolvers": ["10.0.0.1"],
"nics": [
{
"nic_tag": "admin",
@quidome
quidome / hiera.yaml
Created April 20, 2015 08:07
puppet master hiera config
---
:backends:
- yaml
:yaml:
:datadir: "/etc/puppet/environments/%{::environment}/hiera"
:hierarchy:
- "os/%{operatingsystem}"
- common
:merge_behaviour:
- deeper
@quidome
quidome / puppet.conf
Created April 20, 2015 08:06
puppet master config
[main]
dns_alt_names = puppetmaster.domain.org puppetmaster
[master]
environmentpath = $confdir/environments
basemodulepath = $confdir/modules:/opt/puppet/share/puppet/modules
always_cache_features = true
autosign = true
[agent]
@quidome
quidome / puppet_agent_bootstrap.sh
Last active August 29, 2015 14:18 — forked from jim80net/puppet_gem_installer.sh
bootstrap puppet agent on smartos
#!/bin/bash
# For installation of puppet by gem for smartos
#
RUBY=ruby193
PUPPETVERSION=3.7.4
# install ruby
pkgin -y in ${RUBY}

Keybase proof

I hereby claim:

  • I am quidome on github.
  • I am quidome (https://keybase.io/quidome) on keybase.
  • I have a public key whose fingerprint is 6450 BD28 1210 82B7 F057 A80A E6ED 4257 210F 31E6

To claim this, I am signing this object: