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
--- | |
# ansible-playbook -i hosts -l production deploy.yml | |
- hosts: production | |
vars: | |
app_root: '/home/ubuntu/app' | |
app_public: "{{app_root}}/public_html" | |
tasks: | |
- synchronize: src=blog dest={{app_public}}/ | |
- copy: src=foobar.txt dest={{app_root}}/ |
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
# normal rules before this | |
Options -Indexes | |
Header unset ETag | |
FileETag None | |
#Gzip | |
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
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "" | |
}, | |
"builders": [{ | |
"type": "amazon-ebs", | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"region": "eu-west-1", |
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
### Keybase proof | |
I hereby claim: | |
* I am skinofstars on github. | |
* I am skinofstars (https://keybase.io/skinofstars) on keybase. | |
* I have a public key whose fingerprint is 969A 048C 6746 A52D 13C7 9267 AA1B 33F6 6ADB 691F | |
To claim this, I am signing this object: |
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
# every time, i forget how to pull submodules on a project where i forgot to do a --recursive clone/pull | |
git submodule init | |
git submodule update |
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
// Extend from this for a user to get a notification for unsaved model changes | |
// and rollback the model if they choose to navigate away. | |
Ember.DSModelRoute = Ember.Route.extend({ | |
deactivate: function() { | |
var model = this.get('controller.model'); | |
model.rollback(); | |
if (model.get('isNew')) { | |
model.deleteRecord(); | |
} | |
}, |
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
// BrumJS - Rock Paper Scissors bots game | |
// http://www.meetup.com/Brum-JS/events/218927668/ | |
// https://github.com/mancjs/rock-paper-scissors | |
// water beats dynamite | |
// dynamite beats everything (max 5 use) | |
// for keeping track of some stuff | |
var game = {}; | |
game.me = {}; |
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
// using ActiveModelAdapter | |
App.ApplicationAdapter = DS.ActiveModelAdapter.extend(); | |
// simple model | |
App.Job = DS.Model.extend({ | |
external_ref: DS.attr("string") | |
}); | |
// creating a new Job. | |
App.JobsNewController = Ember.Controller.extend({ |
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/sh | |
# working folder. world store, etc | |
cd /home/skinofstars/mc | |
rsync --rsh='ssh -p25561' -avz [email protected]:mcsrv/* world_folder | |
cd world_folder | |
# so anyone can read the log |
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
# pommes, mele same as apples | |
@shop = { | |
apples: 100, | |
cherries: 75, | |
bananas: 150, | |
pommes: 100, | |
mele: 100 | |
} |