Skip to content

Instantly share code, notes, and snippets.

Avatar

Justin Soliz justinsoliz

View GitHub Profile
View linux_setup.sh
# install kde, restart
sudo apt install tasksel
sudo tasksel install kubuntu-desktop
# install chrome
cd ~/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
# base packages
View argument_parsing_in_bash.sh
#!/bin/bash
# https://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash/29754866
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
# set default values
DEFAULT=NO
@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",
You can’t perform that action at this time.