Skip to content

Instantly share code, notes, and snippets.

View robszumski's full-sized avatar

Rob Szumski robszumski

View GitHub Profile
@robszumski
robszumski / makeapp.sh
Created May 23, 2018 15:51 — forked from demonbane/makeapp.sh
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@robszumski
robszumski / 1-Instructions.md
Last active November 19, 2021 10:05 — forked from mateobur/CloudFormationTemplateOpenShift.yaml
CloudFormation Template OpenShift 3.9

Blog post to follow: https://sysdig.com/blog/deploy-openshift-aws/

Pre-reqs

AWS account must have accepted the CentOS terms via AWS marketplace See the AMI IDs in the CloudFormation file Upload the stack file to your own S3 bucket Replace your SSH key name, stack name, etc below:

aws cloudformation create-stack \
$ systemctl cat etcd2
# /usr/lib64/systemd/system/etcd2.service
[Unit]
Description=etcd2
Conflicts=etcd.service
[Service]
User=etcd
Type=notify
Environment=ETCD_DATA_DIR=/var/lib/etcd2
module Jekyll
module SortSemVer
def semver(input, property)
# check inputs
if input.nil?
raise ArgumentError.new("Cannot sort a null object.")
end
if property.nil?
GEM
remote: https://rubygems.org/
specs:
blankslate (2.1.2.4)
celluloid (0.15.2)
timers (~> 1.1.0)
classifier-reborn (2.0.1)
fast-stemmer (~> 1.0)
coffee-script (2.3.0)
coffee-script-source
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/",
"Mappings" : {
"RegionMap" : {
"ap-northeast-1" : {
"AMI" : "ami-19fba518"
},
[Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200
@robszumski
robszumski / reset-etcd.service
Created November 21, 2013 20:29
Service that runs like a cron job
[Unit]
Description=Reset etcd
After=etcd.service
[Service]
Type=simple
ExecStart=/usr/bin/etcdctl set /test "Hello"
Unit=reset-etcd.service
[Install]
@robszumski
robszumski / gist:7000061
Created October 15, 2013 23:10
Chrome: disabled CORS restrictions
open -a Google\ Chrome --args --disable-web-security
@robszumski
robszumski / gist:4525731
Created January 13, 2013 19:09
JSON Example
{
debug: {
start_time: 1358103973.1415,
end_time: 1358103973.1523,
duration: "10.778903961182 ms"
},
sensors: {
temperature: {
value: 78.6778
unit: F