This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. | |
# Inspired by https://github.com/malob/nixpkgs I highly recommend looking at malob's repo for a more thorough configuration | |
# | |
# Some people are coming directly to this Gist from search results and not the original post[1]. If that sounds like you, you should also know there is a video[2] that accompanies this. | |
# | |
# [1] https://discourse.nixos.org/t/simple-workable-config-for-m1-macbook-pro-monterey-12-0-1-with-nix-flakes-nix-darwin-and-home-manager/16834 | |
# [2] https://www.youtube.com/watch?v=KJgN0lnA5mk | |
# | |
# Let's get started |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# === INFO === | |
# altnetworking.sh | |
# Description: Run the specified application in a custom networking environment. | |
# Uses cgroups to run process(es) in a network environment of your own choosing (within limits!) | |
VERSION="0.1.0" | |
# Author: John Clark | |
# Requirements: Debian 8 Jessie (plus iptables 1.6 from unstable) | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assumption: Mac OS X | |
CHEFDK="/opt/chefdk/embedded" | |
CHEFDK_USER="$HOME/.chefdk/gem/ruby/2.1.0" | |
RVM_GEMS="$HOME/.rvm/gems" | |
RVM_RUBIES="$HOME/.rvm/rubies" | |
RUBY_NAME="ext-chefdk-ruby" | |
mkdir -p $RVM_RUBIES/$RUBY_NAME | |
ln -s $CHEFDK/bin $RVM_RUBIES/$RUBY_NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'appscript' | |
# http://stackoverflow.com/questions/480866/get-the-title-of-the-current-active-window-document-in-mac-os-x | |
while true | |
frontmost = Appscript.app('System Events').application_processes.get.select{ |a| a.frontmost.get }.first | |
if frontmost | |
puts frontmost.name.get | |
if frontmost.windows.count > 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c2950#sh interfaces FastEthernet 0/1 status | |
Port Name Status Vlan Duplex Speed Type | |
Fa0/1 --> to end-user wo connect 1000 auto auto 10/100BaseTX | |
c2950#sh etherchannel 1 summary | |
Flags: D - down P - in port-channel | |
I - stand-alone s - suspended | |
H - Hot-standby (LACP only) | |
R - Layer3 S - Layer2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in /etc/puppet/hieradata/ | |
--- | |
someclass::setting1: 'blah' | |
someclass::another_setting: 1234 | |
someclass::array_setting: | |
- 'oneval' | |
- 'twoval' | |
- 'redval' | |
- 'blueval' |
These templates can be used to feed to veewee to spin up an el6 basebox for use with vagrant.
There are some coded values in definition.rb
and ks.cfg
which point at Yale-ishness. Amend to point at local RHEL iso/yum repo.
Built successfully with veewee 0.2.3
, vagrant 1.0.3
, Virtualbox 4.1.18
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use vars qw($VERSION %IRSSI); | |
use Irssi; | |
$VERSION = '0.01'; | |
%IRSSI = ( | |
authors => 'Alexandre Gauthier', | |
contact => '[email protected]', |
NewerOlder