Skip to content

Instantly share code, notes, and snippets.

View Iristyle's full-sized avatar

Ethan J. Brown Iristyle

View GitHub Profile
@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
@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.

<html>
<head>
<script src="http://crashkitapp.appspot.com/static/javascript/crashkit-javascript.js?test/js" type="text/javascript" charset="utf-8"></script>
<!-- <script src="http://localhost:5005/static/javascript/crashkit-javascript.js?test/js" type="text/javascript" charset="utf-8"></script> -->
<script src="crashkit-javascript-sample.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
function xxx(a) {
yyy(a, a, a);
}
@xinmyname
xinmyname / Examples
Created May 21, 2011 21:04 — forked from davidfowl/Examples
Powershell function that recursively walks all project items within a project and lets you execute an action on each one
# Print all project items
Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" }
# Function to format all documents based on https://gist.github.com/984353
function Format-Document {
Recurse-Project -Action { param($item)
if($item.Type -eq 'Folder' -or !$item.Language) {
return
}
@aschepis
aschepis / config.erl
Created August 24, 2011 17:37
Updating properties in a riak config file
#!/usr/bin/env escript
-export([main/1]).
main([]) ->
{ok,[AppConfig]} = file:consult("app.config"),
[Http] = get_config_value(AppConfig, riak_core, http),
io:format("HTTP Address: ~p~n", [Http]),
Updated = update_config_value(AppConfig, riak_core, http, [{"0.0.0.0", 8080}]),
io:format("Original Values:~n~p~n", [AppConfig]),
io:format("Updated Values:~n~p~n", [Updated]).
@danbeam
danbeam / update-nodejs.bash
Created November 30, 2011 18:52
Keep up to date with the latest version of node.js
#!/bin/bash
sudo apt-get -qq install build-essential g++ apache2-utils libssl-dev curl
latest_dir="http://nodejs.org/dist/latest/";
latest_version=$(curl -s "$latest_dir" | grep "tar\.gz" | sed -re 's/.*?href="node-(v[0-9\.]+)\.tar\.gz".*/\1/');
cleanup() {
rm -rf "$temp";
}
@neuhausler
neuhausler / rabbitmq-install.sh
Created December 27, 2011 05:04
Set up RabbitMQ
#!/bin/bash
#
# This script installs and configures rabbitmq on a fresh Amazon Linux AMI instance.
# Requires Erlang to be installed
#
export BUILD_DIR="$PWD"
wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/rabbitmq-server-generic-unix-2.7.1.tar.gz
@eleclerc
eleclerc / solarized-light-markdown.diff
Created February 18, 2012 01:05
Markdown support in Solarized (Light) in Sublime Text 2 - 2165
--- Color Scheme - Default/Solarized (Light).tmTheme 2012-02-08 19:39:09.000000000 -0500
+++ User/Solarized (Light).tmTheme 2012-02-13 19:26:32.000000000 -0500
@@ -1368,17 +1368,6 @@
</dict>
<dict>
<key>name</key>
- <string>Markdown: Raw</string>
- <key>scope</key>
- <string>text.html.markdown markup.raw.inline</string>
- <key>settings</key>
@joseph
joseph / Vagrantfile
Created March 22, 2012 04:14
Various fixes for Vagrant (Lucid64) on Mac OS X Lion
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Preventing kernel panics - VirtualBox 4.1 and Mac OS X Lion 10.7.
#
# This happens on my Macbook Air Mid-2011 Core i7. Every few hours, with
# one or (particularly) more VMs running, you will get a kernel panic.
#
# Some reading:
# https://www.virtualbox.org/ticket/9359
@srs81
srs81 / asgard_setup.sh
Created July 24, 2012 17:39 — forked from bbeck/setup.sh
Setup Asgard on Ubuntu 12.04
#################
# Update packages
#################
sudo yum -y update
sudo yum -y upgrade
########################
# Install the Oracle JDK
########################