This file contains hidden or 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
pipeline { | |
agent { | |
docker { | |
image '<other-account-id>.dkr.ecr.eu-west-1.amazonaws.com/image/my-image:v1' | |
args '--entrypoint= ' | |
registryCredentialsId "ecr:eu-west-1:aws-instance-role" | |
registryUrl "https://<other-account-id>.dkr.ecr.eu-west-1.amazonaws.com" | |
} | |
} | |
stages { |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ecr:GetAuthorizationToken", | |
"ecr:BatchCheckLayerAvailability", | |
"ecr:GetDownloadUrlForLayer", | |
"ecr:GetRepositoryPolicy", |
This file contains hidden or 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
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Sid": "ECR Read Only", | |
"Effect": "Allow", | |
"Principal": { | |
"type": "*", | |
"identifiers": ["*"] | |
}, |
This file contains hidden or 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 'Creating Ram Disk' | |
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://102400` | |
echo 'Removing old spotify Cache' | |
rm -rf ~/Library/Application\ Support/Spotify/PersistentCache | |
echo 'Giving spotify something to chew on' | |
ln -s /Volumes/RAM\ Disk ~/Library/Application\ Support/Spotify/PersistentCache | |
echo 'Done!' |
This file contains hidden or 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 | |
registryhost="tsuru-registry-01.eduk.vpc" | |
registryport="5000" | |
dockerhost="127.0.0.1" | |
dockerport="2375" | |
version=$(docker version 2>/dev/null | grep " Version" | cut -c16-) | |
if [[ $version != "" ]]; then | |
echo "Skipping docker installation, version installed: $version" | |
else |
This file contains hidden or 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
# sudo su and run the following | |
sudo aptitude update | |
# install all dependencies | |
sudo aptitude -y install \ | |
python-pip \ | |
python2.7-dev \ | |
libssl-dev \ | |
libcurl4-openssl-dev \ |
This file contains hidden or 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
/** | |
* iMessage-style loader | |
*/ | |
@keyframes fade { | |
to { background: rgba(0,0,0,.1); } | |
} | |
.progress, | |
.progress:before, |
This file contains hidden or 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
This file contains hidden or 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot){ | |
robot.clone(); | |
robot.turn(45); | |
this.offset = 1; | |
}; | |
Robot.prototype.onIdle = function(ev) { |
This file contains hidden or 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
NewerOlder