Skip to content

Instantly share code, notes, and snippets.

View Iristyle's full-sized avatar

Ethan J. Brown Iristyle

View GitHub Profile
@Sharpie
Sharpie / NOTES.md
Last active October 3, 2016 23:44
PE Debugging with Pry

This gist contains configuration to make Pry behave a bit better under Puppet Server JRuby.

For debugging, the following might be helpful:

  • Install the pry-nav gem. This is an oldschool "debugger" plugin for Pry and one of the first produced. Newer options like pry-debugger orpry-byebug are much, much better but are tightly integrated with CRuby. The pry-nav plugin provides "next", "step" and "continue" and is as dumb as a bag of hammers, but much better than nothing.

Outstanding issues:

  • Readline completion is busted under Puppet Server for some unknown reason. It works fine when running Pry under a normal JRuby shell. My guess is that some clojure bit is intercepting the tab characters.
$verifyCallback = {
param(
$sender, $certificate, $chain, $policyErrors
)
$verified = $true
switch($policyErrors) {
None {
Write-Host "Verified Cert:" $certificate.SubjectName.Name
@nf
nf / vm-setup.sh
Last active June 14, 2023 22:08
Script for setting up Debian Jessie VM with my development environment
#!/bin/bash -e
echo '
PATH=$HOME/go/bin:$PATH
export GOPATH=$HOME
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg
export EDITOR=vim
' >> ~/.profile
sudo apt-get update
@logicminds
logicminds / puppetdev
Last active December 30, 2015 21:24
puppetdev boxstarter
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst git
cinst git-credential-winstore
cinst console-devel
cinst sublimetext3
cinst poshgit
cinst dotpeek
cinst ruby -Version 2.0.0.48100
@ferventcoder
ferventcoder / 0. 0-Info.md
Last active August 29, 2015 14:13
Ruby 2.1.5 HAVE_STRUCT

Information

This is attempting to determine whether we need additional conditionals defined for Windows builds. We ran into an issue with HAVE_STRUCT_PASSWD_PW_PASSWD not being defined as a switch after 2.0.0. This made Etc::Passwd.passwd not defined as part of the struct. See PUP-3779 for more details.

@kylog
kylog / gist:ab4ec66984ae5f83aa76
Created December 18, 2014 22:21
git branchdate
[alias]
branchdate = !git for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short)%09%(authorname)%09%(refname:short)' | less
@bradwilson
bradwilson / gist:c0e4994f976e757bc7d5
Last active February 1, 2024 15:37
Tweaks to make to VMware .vmx files
# Disables touchscreen emulation
touchscreen.vusb.present = "FALSE"
# Enables support for nested hypervisors
hypervisor.cpuid.v0 = "FALSE"
vhv.enable = "TRUE"
vpmc.enable = "TRUE"
mce.enable = "TRUE"
vhu.enable = "TRUE"
@trusktr
trusktr / DefaultKeyBinding.dict
Last active May 16, 2025 17:14
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@henrik
henrik / yosemite_upgrade_notes.md
Last active December 30, 2015 02:29
Yosemite upgrade notes

Yosemite upgrade notes

From a (mostly) Ruby on Rails developer.

After doing the below everything seems to work (some of it worked before doing anything), including Ruby, Gems, RVM, Homebrew, VirtualBox/Vagrant VMs, Pow, tmux, git, vim.

  1. Did a full-disk backup that I can restore from
  2. Moved out /usr/local to avoid super slow install, per option 1 in https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips/: sudo mv /usr/local ~/local
  3. Upgraded to Yosemite
  4. Restored /usr/local, per option 1 in https://jimlindley.com/blog/yosemite-upgrade-homebrew-tips/: sudo mv ~/local /usr
@MikaelSmith
MikaelSmith / build_cfacter_win.ps1
Last active August 29, 2015 14:06
Build script that downloads dependencies and builds puppetlabs/cfacter.
# Starting from a base Windows Server 2008r2 or 2012r2 installation, install required tools, setup the PATH, and download and build software.
# This script can be run directly from the web using "iex ((new-object net.webclient).DownloadString('<url_to_raw>'))"
### Configuration
## Setup the working directory
$sourceDir=$pwd
## Set the number of cores to use for parallel builds
$cores=2