(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'chef/knife' | |
Chef::Config.from_file(File.join(Chef::Knife.chef_config_dir, 'knife.rb')) | |
rest = Chef::REST.new(Chef::Config[:chef_server_url]) | |
Chef::Node.list.each do |node| | |
%w{read update delete grant}.each do |perm| |
import System.Posix.Unistd | |
import XMonad hiding (Tall) | |
import qualified XMonad.StackSet as W | |
import qualified Data.Map as M | |
import Control.Monad (filterM) | |
import Data.Char (ord) | |
import Data.List | |
import Data.Maybe | |
import Data.Ratio |
import System.Taffybar | |
import System.Taffybar.Systray | |
import System.Taffybar.XMonadLog | |
import System.Taffybar.SimpleClock | |
import System.Taffybar.FreedesktopNotifications | |
import System.Taffybar.DiskIOMonitor | |
import System.Taffybar.CPUMonitor | |
import System.Taffybar.FSMonitor | |
import System.Taffybar.NetMonitor | |
import System.Taffybar.MPRIS |
EC 11.1.x has a bug [OC-11384] when an LDAP user attempts to create a new account | |
that has never existed in the Enterprise Chef database before, rather than linking | |
with an existing internal user. | |
Please apply the attached patch to your EC 11.1.x release: | |
$ cd /opt/opscode/embedded/service/gem/ruby/1.9.1/bundler/gems/mixlib-authorization-c03f584a371b | |
$ patch -p1 < /tmp/cache/ec11.1-ldap500error.patch | |
patching file lib/opscode/models/user.rb | |
$ private-chef-ctl restart opscode-account |
Bus 004 Device 043: ID 1cfb:1010 | |
Device Descriptor: | |
bLength 18 | |
bDescriptorType 1 | |
bcdUSB 2.00 | |
bDeviceClass 2 Communications | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 16 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
;;; init.el --- Where all the magic begins | |
;; | |
;; This file loads Org-mode and then loads the rest of our Emacs | |
;; initialization from Emacs lisp embedded in literate Org-mode files. | |
;; Load up Org Mode and (now included) Org Babel for elisp embedded in | |
;; Org Mode files | |
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name))) | |
(let* ((org-dir (expand-file-name |
XTerm*faceName: Pragmata | |
XTerm*faceSize: 10 | |
XTerm*background: grey13 | |
XTerm*foreground: grey75 | |
XTerm*cursorColor: darkorange1 | |
XTerm*scrollBar: false | |
XTterm*utf8: 2 | |
XTerm*metaSendsEscape: true | |
XTerm*eightBitInput: false |
#!/bin/bash -eo pipefail | |
## Allows for creation of "Basic" DNS records in a Route53 hosted zone | |
function main() { | |
record_name=$1 | |
record_value=$2 | |
[[ -z $record_name ]] && echo "record_name is: $record_name" && exit 1 | |
[[ -z $record_value ]] && echo "record_value is: $record_value" && exit 1 |
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/ | |
wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/iso/latest/archlinux-bootstrap-*-x86_64.tar.gz' | |
# Make sure you'll have enough entropy for pacman-key later. | |
apt-get install haveged | |
# Install the arch bootstrap image in a tmpfs. | |
mount -t tmpfs none /mnt | |
cd /mnt | |
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1 |