Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / helloworld.html
Created April 10, 2018 22:04 — forked from calebgrove/helloworld.html
"Hello World" HTML/CSS. The first file is the uncommented version to let you "see" the construction better. In the second version, I've placed a lot of instructive comments. Download it, mess around with them in your favorite text editor (TextWranger is free!), and preview them in your browser.
<!DOCTYPE html>
<head>
<title>HTML and CSS "Hello World"</title>
<style>
body {
background-color: #2D2D2D;
}
h1 {
color: #C26356;
@jrichardsz
jrichardsz / waitForKeyElements.js
Created May 5, 2018 14:50 — forked from BrockA/waitForKeyElements.js
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@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
@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 / 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 / google_plus_profile.js
Created July 16, 2018 21:53 — forked from johnz/google_plus_profile.js
google plus profile in json format. no dob, zip, country, email, edu/work no start and end date
{
"kind":"plus#person",
"id":"112095195706125933013",
"displayName":"John Black",
"tagline":"Web developer",
"gender":"other",
"aboutMe":"<p>love internet and social game</p>",
"relationshipStatus":"engaged",
"url":"https://profiles.google.com/112095195706125933013",
"image":{
@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 '/[email protected], 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 / 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 / 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 [email protected]
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
@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