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
{ | |
"due_date": "03-07-2016", | |
"parents": ["Megan Marsh", "Chris Gilmer"], | |
"sex": "", | |
"length": "", | |
"weight": "", | |
"birthdate": "", | |
"delivered": false, | |
"name": "" | |
} |
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 | |
echo "Deleting the Xprotect blacklisted plugins and Disabling the Xprotect updater so that old versions of Flash still work" | |
echo "This is a truly terrible idea and you should be ashamed if you implement it on any computer that you don't mind being a massive sinkhole of security doom" | |
echo "No, really, don't do this unless you hate yourself and your private information and your lack of viruses" | |
sudo /usr/libexec/PlistBuddy -c "Delete :PlugInBlacklist" /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/XProtect.meta.plist | |
/bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.xprotectupdater.plist |
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 | |
DEVICES_XCODE5=("iPhone Retina (3.5-inch)" "iPhone Retina (4-inch)" "iPhone Retina (4-inch 64-bit)" "iPad" "iPad Retina" "iPad Retina (64-bit)") | |
# possible xcode versions: 5.1, 6.0, 6.1 | |
XCODEVER="Xcode-5.app" | |
SIMVER="iPhoneSimulator5.1.sdk" | |
if [ -e "/Applications/""$XCODEVER" ] && [ ! -h "/Applications/""$XCODEVER" ]; then | |
echo "Using $XCODEVER..." | |
sudo /usr/bin/xcode-select -switch /Applications/$XCODEVER |
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
void mode(float *s, int count) | |
{ | |
int c_new=0; | |
int c_old=0; | |
float mode_new=0.0; | |
float mode_old=0.0; | |
float num; | |
int i; | |
for(i=0; i<count; i++) | |
{ |
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 python | |
# encoding: utf-8 | |
import sys | |
import os | |
from selenium import webdriver | |
import unittest | |
import nose | |
from nose.plugins.multiprocess import MultiProcess | |
from optparse import OptionParser |
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
on getwhat(what) | |
set options to {res1920_1200:1, res1680_1050:2, res1600_1200:3, res1400_1050:4, res1400_900:5, res1376_1032:6, res1280_1024:7, res1280_800:8, res1152_900:9, res1152_864:10, res1024_768:11} | |
set s to "on run {options}" & return | |
set s to s & "get " & what & " of options" & return | |
set s to s & "end" | |
run script s with parameters {options} | |
end getwhat | |
on run argv | |
set myres to item 1 of argv |
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
import random | |
import time | |
random.seed() | |
SLEEP_TIME = 2 | |
def clear_screen(): | |
print(chr(27) + "[2J") | |
turn_number = 1 |
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
{ | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}", | |
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}", | |
"region": "{{env `AWS_DEFAULT_REGION`}}" | |
}, | |
"builders": [ | |
{ | |
"access_key": "{{user `aws_access_key`}}", | |
"ami_name": "packer-qs-{{timestamp}}", |
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
2017/08/28 17:24:23 packer: 2017/08/28 17:24:23 Retryable error: Error uploading script: scp: /var/folders/8t/0yb5q0_x6mb2jldqq_vjn3lr0000gn/T: No such file or directory | |
2017/08/28 17:24:28 packer: 2017/08/28 17:24:28 [INFO] 13 bytes written for 'uploadData' | |
2017/08/28 17:24:28 [INFO] 13 bytes written for 'uploadData' | |
2017/08/28 17:24:28 packer: 2017/08/28 17:24:28 opening new ssh session | |
2017/08/28 17:24:28 packer: 2017/08/28 17:24:28 Starting remote scp process: scp -vt /var/folders/8t/0yb5q0_x6mb2jldqq_vjn3lr0000gn/T | |
2017/08/28 17:24:28 packer: 2017/08/28 17:24:28 Started SCP session, beginning transfers... | |
2017/08/28 17:24:28 packer: 2017/08/28 17:24:28 Copying input data into temporary file so we can read the length | |
2017/08/28 17:24:28 packer: 2017/08/28 17:24:28 [DEBUG] scp: Uploading packer-shell501563101: perms=C0644 size=13 | |
2017/08/28 17:24:28 packer: 2017/08/28 17:24:28 Retryable error: Error uploading script: scp: /var/folders/8t/0yb5q0_x6mb2jldqq_vjn3lr0000gn/T: No such file or directory | |
2017/08/ |
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
mmarsh@Megans-MacBook-Pro ~/dev/packer-ubuntu master ● packer build 1404-min.json | |
2017/08/31 16:22:56 [INFO] Packer version: 1.1.0-dev (f96f3495) | |
2017/08/31 16:22:56 Packer Target OS/Arch: darwin amd64 | |
2017/08/31 16:22:56 Built with Go Version: go1.8.1 | |
2017/08/31 16:22:56 Detected home directory from env var: /Users/mmarsh | |
2017/08/31 16:22:56 Using internal plugin for parallels-pvm | |
2017/08/31 16:22:56 Using internal plugin for amazon-chroot | |
2017/08/31 16:22:56 Using internal plugin for amazon-ebsvolume | |
2017/08/31 16:22:56 Using internal plugin for amazon-instance |
OlderNewer