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
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' } |
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
curl -u ':uname' 'https://api.github.com/repos/:org/:repo/issues' > issues.json |
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
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 \ |
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
# generate ssh key | |
# public key file will be newkey.pub | |
# private key file will be newkey | |
ssh-keygen -f newkey |
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
#!/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 |
NewerOlder