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
sudo apt-get update | |
sudo apt-get install python-virtualenv | |
sudo apt-get install python-dev | |
sudo apt-get install postgresql | |
sudo apt-get install postgresql-server-dev-9.3 | |
sudo apt-get install redis-server | |
sudo -u postgres createuser -s sentry | |
sudo -u postgres psql -c "alter user sentry with password 'sentry';" |
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
--------------------------------------------------------------- | |
Splitr.js | |
--------------------------------------------------------------- | |
var json = { | |
watch: { | |
js: { | |
files: ['<%= yeoman.app %>/scripts/{,*/}*.js', '<%= yeoman.common %>/js/{,*/}*.js'], | |
tasks: ['concat'] | |
}, |
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 | |
# | |
# MongoDB installer for Debian/Ubuntu (32- and 64-bit) | |
# | |
# curl -sL https://gist.githubusercontent.com/ebuildy/c8dd49169f10b86b2980/raw/693afca681c277411017d95ef9ec2708b5aceb87/install_mongodb | sudo bash - | |
# | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update |
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 | |
### BEGIN INIT INFO | |
# Provides: carbon | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Carbon | |
# Description: Carbon interface for Whisper storage. | |
### END INIT INFO |
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
class AngularRequest extends \Symfony\Component\HttpFoundation\Request | |
{ | |
/** | |
* Creates a new request with values from PHP's super globals. | |
* | |
* @return Request A new request | |
* | |
* @api | |
*/ | |
public static function createFromGlobals() |
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 | |
sudo apt-get install snmpd xinetd | |
#sudo nano /etc/snmp/snmpd.conf | |
sudo curl -o /usr/bin/observium_agent https://gist.githubusercontent.com/ebuildy/6aab534af385ab535b99/raw/c6665fbcc086ca953c08b9b85189d67d6bfd5387/observium_agent | |
sudo curl -o /etc/xinetd.d/observium_agent_xinetd https://gist.githubusercontent.com/ebuildy/6aab534af385ab535b99/raw/ec27ea4f5d2b11d6b0f35296dbdbbca5f2cc3ee1/observium_agent_xinetd | |
sudo chmod a+x /usr/bin/observium_agent |
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 | |
curl -X DELETE localhost:9200/music | |
curl -X PUT localhost:9200/music | |
curl -X PUT localhost:9200/music/song/_mapping -d '{ | |
"song" : { | |
"properties" : { | |
"name" : { "type" : "string" }, | |
"suggest" : { "type" : "completion", |
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
Vagrant.configure("2") do |config| | |
config.vm.provider :azure do |azure, override| | |
override.vm.box = "azure" | |
override.ssh.username = "tom" | |
azure.mgmt_certificate = '/Users/tom/Documents/Azure/Kinoulink/mgt.pem' | |
azure.mgmt_endpoint = 'https://management.core.windows.net' | |
azure.subscription_id = '*******************************' |
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
<?php | |
$buffer = json_decode(file_get_contents('http://*****:*******@********/v1/containers'), true); | |
$containers = $buffer['data']; | |
$mysqlContainers = []; | |
$i = 0; | |
foreach($containers as $container) | |
{ | |
$valid = false; |
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
redis: | |
image: redis | |
postgres: | |
image: postgres:9.4 | |
environment: | |
- POSTGRES_USER:sentry | |
- POSTGRES_PASSWORD:sentry | |
volumes: | |
- /var/data/sentry/postgre:/var/lib/postgresql/data:rw |
OlderNewer