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 | |
# | |
# This pre-commit hook checks that you havn't left and DONOTCOMMIT tokens in | |
# your code when you go to commit. | |
# | |
# To use this script copy it to .git/hooks/pre-commit and make it executable. | |
# | |
# This is provided just as an example of how to use a pre-commit hook to | |
# catch nasties in your code. |
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
python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))]))" |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.define "app1" do |app| | |
app.vm.hostname = "app1.dev" | |
app.vm.network :private_network, ip: "192.168.60.4" | |
app.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common | |
sudo apt-add-repository ppa:ansible/ansible | |
sudo apt-get 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/deepstream.io-client-js/2.1.4/deepstream.js"></script> | |
</head> | |
<body> | |
<input type="text" /> | |
<script type="text/javascript"> | |
var client = deepstream('localhost:6020').login() | |
var record = client.record.getRecord('ds/sb') |
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
{ | |
"nid":[ | |
{ | |
"value":"1" | |
} | |
], | |
"uuid":[ | |
{ | |
"value":"182973da-694d-443a-9082-e485665e3bd4" | |
} |
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
[{ | |
"title": "IT Meeting", | |
"description": "<p>This is just a fake description for IT meeting</p>", | |
"url": "https://lakshminp.com/entity-validation-drupal-8-part-1-how-validation-works", | |
"start": "2016-11-01 09:30" | |
},{ | |
"title": "Lunch Catered by Jimmy Johns", | |
"description": "<p>This is just a fake description for Lunch Catered by Jimmy Johns</p>", | |
"url": "https://lakshminp.com/writing-custom-authenticator-drupal-8", | |
"start": "2016-11-26 20:45" |
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
var gitlab = require('node-gitlab'); | |
var client = gitlab.create({ | |
api: 'http://code.projspace.com/api/v3', | |
privateToken: 'qc1FmQcy9FoNAYTS2xtW' | |
}); | |
client.deployKeys.create({id: 239, "title": "nodejs-key", "key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAPupuN3+Dbyay/5/aOHydxv4tXsgowKAs7uZ9NouwTh+Afb045NPbj7HMxMktpu7Y4/hfl53k42L/Cgm2aKpW0NDYwH69MKUVMBUaiwNh6V/EJcf9keAxwM8Qaf8mP85+ELKEhXKiI7fb2S4GqEh9y4I7MElVnQaeE+ljYziW1OFkxYGIyQQJGA+UnaY8QvtxMWl8VQTy4yQ/6YRX8POaAeXP46qnIl+orovkU3mh/4XGPtCTh3dLYDq837+WMn6vD34nl3Noy8wzGx2W3SU8g0nXGfoy2YYtm06zu1VCggXSRDxvMJzh0zSy0rw6upD4FGkCyH7gaHo3fG33czIF root@manomadhu"}, function (err, project) { |
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 $TSURU_HOST | |
TSURU_HOST=$9; | |
ARCHIVE_SERVER_READ="54.225.98.74:6060"; | |
echo ${ARCHIVE_SERVER_READ} | |
ARCHIVE_SERVER_WRITE="http://127.0.0.1:6161"; | |
TSURU_TOKEN=$1; #archive_url=$2; commit=$3; APP_NAME=$4; TSURU_USER=$5 |
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
import pika | |
import json | |
class Connection(object): | |
"""singleton pika connection""" | |
_connection = None | |
@staticmethod | |
def get_shared_connection(): |