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
UNITY_APP_PATH=/Applications/Unity3.4/Unity.app/Contents/MacOS/Unity | |
UNITY_PROJECT_PATH=$WORKSPACE/Unity | |
UNITY_EDITOR_LOG_PATH=~/Library/Logs/Unity/Editor.log | |
XCODE_PROJECT_PATH=$WORKSPACE/Unity-iPhone | |
KEYCHAIN_LOCATION=~/Library/Keychains/login.keychain | |
XCODE_PROJECT_CONFIG_PATH=$XCODE_PROJECT_PATH/Unity-iPhone.xcodeproj | |
### EDIT AREA START | |
UNITY_BATCH_EXECUTE_METHOD=XXXXX |
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 sh | |
######## Usage ################################################################# | |
# Setup | |
# - Install aws cli (https://aws.amazon.com/cli/) | |
# - Install session-manager-plugin (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html) | |
# - Move this script to ~/.ssh/aws-ssm-ec2.sh | |
# - Ensure it is executable (chmod +x ~/.ssh/aws-ssm-ec2.sh) | |
# | |
# Add following SSH Config Entry to ~/.ssh/config |
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
def install_plugin(plugin) | |
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin | |
end | |
%w(vagrant-disksize vagrant-env vagrant-hostsupdater vagrant-docker-compose).each do |plugin| | |
install_plugin(plugin) | |
end | |
Vagrant.configure("2") do |config| | |
config.env.enable |
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/sh -e | |
DAYS=3650 | |
PASS="pass" | |
WORKDIR=/etc/ssl | |
cd $WORKDIR | |
echo 01 > serial && touch index.txt | |
mkdir -p $WORKDIR/newcerts |
I hereby claim:
- I am seiji on github.
- I am seiji (https://keybase.io/seiji) on keybase.
- I have a public key ASANdLGv11-X3wzQbWIHJdRfK0s-zalS1oqO1na2Vhm7yAo
To claim this, I am signing this object:
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
jq <test.json -c '. | {"index": {}}, .' | curl -XPOST -H "Content-Type: application/json" localhost:9200/myindex/_bulk --data-binary @- |
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
NSAttributedString *subjectString = | |
[[NSAttributedString alloc] initWithString:@"git" | |
attributes:@{ | |
NSForegroundColorAttributeName : [UIColor blueColor], | |
NSFontAttributeName : [UIFont boldSystemFontOfSize:20] | |
}]; | |
NSAttributedString *verbString = [[NSAttributedString alloc] initWithString:@" push -u "]; | |
NSAttributedString *objectString = | |
[[NSAttributedString alloc] initWithString:@"origin master" |
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
require 'rake' | |
PROJECT_DIR = File.dirname __FILE__ | |
UNITY_APP_PATH = "/Applications/Unity/Unity.app/Contents/MacOS/Unity" | |
UNITY_EDITOR_LOG_PATH = "~/Library/Logs/Unity/Editor.log" | |
Dir.glob('lib/tasks/**/*.rake').each{ |r| load r } | |
namespace "asset_bundle" do | |
desc "build asset bundle" |
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
AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); | |
audioManager.requestAudioFocus(new AudioService(), AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); |
NewerOlder