Skip to content

Instantly share code, notes, and snippets.

Justin Soliz justinsoliz

Block or report user

Report or block justinsoliz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@justinsoliz
justinsoliz / jwtRS256.sh
Created Sep 16, 2018 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
View jwtRS256.sh
ssh-keygen -t rsa -b 4096 -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
View remove_git_submodule.sh
# bash commands per https://gist.github.com/myusuf3/7f645819ded92bda6677#gistcomment-2650640
git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>
@justinsoliz
justinsoliz / ssms_install.ps1
Created Feb 17, 2018
Powershell - Install Sql Server Management Studio
View ssms_install.ps1
# Set file and folder path for SSMS installer .exe
$folderpath="c:\windows\temp"
$filepath="$folderpath\SSMS-Setup-ENU.exe"
#If SSMS not present, download
if (!(Test-Path $filepath)){
write-host "Downloading SQL Server 2016 SSMS..."
$URL = "https://download.microsoft.com/download/3/1/D/31D734E0-BFE8-4C33-A9DE-2392808ADEE6/SSMS-Setup-ENU.exe"
$clnt = New-Object System.Net.WebClient
$clnt.DownloadFile($url,$filepath)
View gist:2f3b3b07f9b49664c97d6cdfb3a1b85d
(new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec
@justinsoliz
justinsoliz / compile_app.sh
Last active Apr 7, 2017
continuous integration scripts for express apps + babel + aws s3
View compile_app.sh
#!/bin/bash
BUILD_DIR="./.build"
# clean build directory
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR/lib
# copy package.json
@justinsoliz
justinsoliz / .babelrc
Last active Aug 10, 2017
express + aws serverless proxy
View .babelrc
{
"presets": [ "es2015", "flow" ],
"plugins": ["transform-object-rest-spread"]
}
@justinsoliz
justinsoliz / jenkins-ci-packer.json
Last active Apr 6, 2017
Packer definition for jenkins ci executor
View jenkins-ci-packer.json
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-west-2",
@justinsoliz
justinsoliz / lambda_kinesis_handler.js
Last active Mar 13, 2019
Terraform with lambda and kinesis
View lambda_kinesis_handler.js
// applications/kinesis_streamer/lib/handler.js
import AWS from 'aws-sdk';
const kinesis = new AWS.Kinesis();
export function receiveEvent(event, context, callback) {
console.log('demoHandler');
console.log(`Event: ${JSON.stringify(event, null, 2)}`);
console.log(`Context: ${JSON.stringify(context, null, 2)}`);
const base64Data = event.Records[0].kinesis.data;
@justinsoliz
justinsoliz / cloud-config.yml
Last active Dec 24, 2018
Terraform definition for Jenkins with ECS, EFS, CoreOS
View cloud-config.yml
#cloud-config
write-files:
- path: /etc/conf.d/nfs
permissions: '0644'
content: |
OPTS_RPC_MOUNTD=""
coreos:
units:
- name: update-engine.service
You can’t perform that action at this time.