Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / Dockerfile
Created January 22, 2019 15:28 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@jrichardsz
jrichardsz / Rotate Videos using ffmpeg
Created December 17, 2018 17:03 — forked from cseringgo/ Rotate Videos using ffmpeg
Rotate videos 90 or 180 degrees using ffmpeg
Rotate videos 90 or 180 degrees using ffmpeg.
@jrichardsz
jrichardsz / server.js
Created October 2, 2018 21:38 — forked from wiredmax/server.js
Simple NodeJS proxy server
var http = require('http'),
httpProxy = require('http-proxy');
//
// Create a proxy server with custom application logic
//
var proxy = httpProxy.createProxyServer({});
//
// Create your custom server and just call `proxy.web()` to proxy
@jrichardsz
jrichardsz / jenkins.example.com.conf
Created September 8, 2018 16:27 — forked from ofus/jenkins.example.com.conf
How To Configure Apache with SSL as a Reverse Proxy for Jenkins https
<VirtualHost *:80>
ServerName jenkins.example.com
ServerAdmin webmaster@example.com
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
@jrichardsz
jrichardsz / Jenkinsfile
Created September 7, 2018 04:39 — forked from HarshadRanganathan/Jenkinsfile
Jenkins Declarative Pipeline Example
def getProjectName() {
return 'JenkinsPipeline'
}
def getJDKVersion() {
return 'jdk1.8.0_101'
}
def getMavenConfig() {
return 'maven-config'
@jrichardsz
jrichardsz / Readme.txt
Created July 29, 2018 18:47 — forked from jcward/Readme.txt
Generating iOS P12 / certs without Mac OSX Keychain (on linux, windows, etc)
1) Generate a private key and certificate signing request:
openssl genrsa -out ios_distribution.key 2048
openssl req -new -key ios_distribution.key -out ios_distribution.csr -subj '/emailAddress=me@example.com, CN=Example, C=US'
2) Upload CSR to apple at: https://developer.apple.com/account/ios/certificate/create
- choose Production -> App Store and Ad Hoc
3) Download the resulting ios_distribution.cer, and convert it to .pem format:
@jrichardsz
jrichardsz / convertSheet2Json.gs
Last active November 16, 2024 12:41 — forked from daichan4649/convertSheet2Json.gs
spreadsheet as json api using Google Apps Script
/* Source: https://gist.github.com/daichan4649/8877801 */
function doGet(e) {
//tab name in sheet
var sheetName = "Sheet 1";
//key in url of document
var sheetId = "1234...";
var book = SpreadsheetApp.openById(sheetId);
var sheet = book.getSheetByName(sheetName);
@jrichardsz
jrichardsz / setup-elementary.sh
Created June 10, 2018 21:30 — forked from IronistM/setup-elementary.sh
Things to do after installing elementary OS Loki 0.4
#Start with a dist upgrade
sudo apt dist-upgrade
# Get chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i ./google-chrome*.deb
sudo apt-get install -f
# dev (php, docker, git, node, bower, electron, composer)
sudo apt install -y \
@jrichardsz
jrichardsz / setenv.sh
Created May 7, 2018 23:47 — forked from patmandenver/setenv.sh
Tomcat8 setenv.sh
#
# Cutom Environment Variables for Tomcat
#
############################################
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre
export PATH=${JAVA_HOME}/bin:${PATH}
############################################
#
# JAVA_OPTS