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.
This file contains 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
# 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 |
This file contains 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
<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); | |
} | |
This file contains 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
# 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 | |
} | |
This file contains 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
#!/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]). |
This file contains 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 | |
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"; | |
} |
This file contains 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 | |
# | |
# 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 |
This file contains 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
--- 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> |
This file contains 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
# -*- 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 |
This file contains 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
################# | |
# Update packages | |
################# | |
sudo yum -y update | |
sudo yum -y upgrade | |
######################## | |
# Install the Oracle JDK | |
######################## |
OlderNewer