Skip to content

Instantly share code, notes, and snippets.

View adrianharabula's full-sized avatar

Adrian Harabulă adrianharabula

View GitHub Profile
@adrianharabula
adrianharabula / export.rb
Created June 5, 2017 17:05
Export github issues with ruby octokit
require 'octokit'
require 'json'
# !!! DO NOT EVER USE HARD-CODED VALUES IN A REAL APP !!!
# Instead, set and test environment variables, like below
client = Octokit::Client.new :access_token => ENV['MY_PERSONAL_TOKEN']
client.auto_paginate = true
issues = client.issues 'adrianharabula/condr', { :state => 'all' }
@adrianharabula
adrianharabula / export-gh-issues.sh
Last active June 5, 2017 16:34 — forked from toashd/export-gh-issues.sh
Export github issues to json
curl -u ':uname' 'https://api.github.com/repos/:org/:repo/issues' > issues.json
@adrianharabula
adrianharabula / Dockerfile
Created May 14, 2017 18:00 — forked from briceburg/Dockerfile
laravel 5 - running in a docker container
FROM alpine
ENV \
APP_DIR="/app" \
APP_PORT="80"
# the "app" directory (relative to Dockerfile) containers your Laravel app...
COPY app/ $APP_DIR
RUN apk add --update \
@adrianharabula
adrianharabula / newsshkey.sh
Last active January 27, 2017 15:37
Generate new rsa ssh key
# generate ssh key
# public key file will be newkey.pub
# private key file will be newkey
ssh-keygen -f newkey
@adrianharabula
adrianharabula / pdfbook2.sh
Last active January 27, 2017 15:36
pdfbooklet2 - print booklets in linux
#!/usr/bin
# Generate booklet from pdffile
# -t. -b top,botom margins
# -o outer margin
# -i inner margin
# -s short edge (no page flip when printing)
pdfbook2 -s book.pdf -t 0 -b 0 -o 20 -i 50