Skip to content

Instantly share code, notes, and snippets.

Roy Lines roylines

Block or report user

Report or block roylines

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@roylines
roylines / github_issues_to_csv
Last active Jan 21, 2016
Extract github issues into a csv file. Usage: github_issues_to_csv -u USER -t TOKEN -o ORG -r REPO -l LABELS -h HOST
View github_issues_to_csv
#!/usr/bin/env bash
while [[ $# > 1 ]]
do
key="$1"
case $key in
-u|--user)
USER="$2"
shift # past argument
@roylines
roylines / remote-terraform-s3-policy
Created Sep 19, 2015
IAM policy to allow storing of remote terraform state in S3
View remote-terraform-s3-policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::my.bucket",
@roylines
roylines / haproxy.cfg
Last active Nov 18, 2019
haproxy configuration for using with prerender.io
View haproxy.cfg
# Change YOUR_TOKEN to your prerender token
# Change http://example.com (server_name) to your website url
frontend my-frontend
mode http
bind :80
# prerender.io
acl user-agent-bot hdr_sub(User-Agent) -i baiduspider twitterbot facebookexternalhit rogerbot linkedinbot embedly showyoubot outbrain pinterest slackbot vkShare W3C_Validator
acl url-asset path_end js css xml less png jpg jpeg gif pdf doc txt ico rss zip mp3 rar exe wmv doc avi ppt mpg mpeg tif wav mov psd ai xls mp4 m4a swf dat dmg iso flv m4v torrent ttf woff
@roylines
roylines / haproxy.cfg
Last active Jul 23, 2019
SImple haproxy configuration for microservices. Optional ssl and prerender.io
View haproxy.cfg
global
pidfile /var/run/haproxy.pid
log 127.0.0.1 local0
maxconn 4000
# set default parameters to the intermediate configuration
# tune.ssl.default-dh-param 2048
# ssl-default-bind-ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
defaults
log global
View keybase.md

Keybase proof

I hereby claim:

  • I am roylines on github.
  • I am roylines (https://keybase.io/roylines) on keybase.
  • I have a public key whose fingerprint is 0D6E C8A2 9750 F7F1 FC0C 4DBD 731F B64F FE46 56EA

To claim this, I am signing this object:

@roylines
roylines / renamepics.sh
Created Jan 5, 2013
renames jpgs using exif info
View renamepics.sh
#!/bin/bash
set -e
exiv2 -v -r'%Y%m%d.%H%M%S' rename $(ls)
@roylines
roylines / dumppics.sh
Created Jan 5, 2013
finds mounted DCIM directories and copies all jpgs
View dumppics.sh
#!/bin/bash
set -e
cp -v $(find `mount | grep vfat | cut -d' ' -f3` *.jpg | grep DCIM) .
@roylines
roylines / flickrup.sh
Created Mar 18, 2012
Use flickcurl to upload all jpgs in the current directory
View flickrup.sh
#!/bin/bash
set -e
FLICKCURL="/usr/bin/flickcurl"
for image in *.jpg; do flickcurl upload $image; done
You can’t perform that action at this time.