Install required dependencies
$ pacman -S avahi pulseaudio-zeroconf
image: golang:1.7 | |
stages: | |
- build | |
- test | |
before_script: | |
- go get github.com/tools/godep | |
- cp -r /builds/user /go/src/github.com/user/ | |
- cd /go/src/github.com/user/repo |
import boto3 | |
print(boto3.client('sts').get_caller_identity()['Account']) |
var AWS = require('aws-sdk'); | |
var http = require('http'); | |
var httpProxy = require('http-proxy'); | |
var express = require('express'); | |
var bodyParser = require('body-parser'); | |
var stream = require('stream'); | |
if (process.argv.length != 3) { | |
console.error('usage: aws-es-proxy <my-cluster-endpoint>'); | |
process.exit(1); |
#!/bin/bash | |
AWS_DEFAULT_REGION="ap-northeast-1" | |
AWS_ACCESS_KEY_ID="YOUR ACCESS KEY HERE" | |
AWS_SECRET_ACCESS_KEY="YOUR SECRET ACCESS KEY HERE" | |
INSTANCE_ID_URL="http://169.254.169.254/latest/meta-data/instance-id" | |
INSTANCE_ID=$(curl -s ${INSTANCE_ID_URL}) | |
SERVER_STATUS_URL="http://localhost/php-fpm-status" |
#!/bin/bash | |
# This gist contains pre-commit hooks to prevent you from commiting bad code or to the wrong branch. | |
# There are six variants that I have built: | |
# - pre-commit: stops commits to master/main/develop branches. | |
# - pre-commit-2: also includes a core.whitespace check. | |
# - pre-commit-3: the core.whitespace check and an EOF-newline-check. | |
# - pre-commit-4: only the core.whitespace check. | |
# - pre-commit-5: elixir formatting check. | |
# - pre-commit-6: prettier formatting check. | |
# Set the desired version like this before proceeding: |
#!/bin/bash | |
# Disclaimer - make backups, use at your own risk. | |
# | |
# Based on this comment: http://stackoverflow.com/a/13944924/843067 | |
# Views and stored procedures have to be done separately. | |
OLDDB="old_db_name" | |
NEWDB="new_db_name" | |
MYSQL="mysql -u root -pyour_password " |