Skip to content

Instantly share code, notes, and snippets.

View hschaeidt's full-sized avatar

Hendrik Schaeidt hschaeidt

View GitHub Profile
import React from 'react';
import { shallow } from 'enzyme';
const SampleComp = () => (
<div>
<span>My Component</span>
</div>
);
describe('<SampleComp />', () => {
@hschaeidt
hschaeidt / users.nix
Last active May 18, 2016 08:04
nix read user keys
{ config, pkgs, ... }:
{
##
## User management
##
users.users =
let loadUserConfiguration = userName:
# set structure chosen to fit the builtins.listToAttrs
{
@hschaeidt
hschaeidt / gist:64d389963adf26631047
Last active August 29, 2015 14:14
Vagrant-Puppet example
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at