Skip to content

Instantly share code, notes, and snippets.

# 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
#!/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 September 16, 2018 01:20 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
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
@justinsoliz
justinsoliz / remove_git_submodule.sh
Created August 25, 2018 22:04
Remove a git submodule
# 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 / readme.md
Last active September 20, 2022 12:56
Setting up new macbook
@justinsoliz
justinsoliz / ssms_install.ps1
Created February 17, 2018 19:45
Powershell - Install Sql Server Management Studio
# 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)
(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 April 7, 2017 00:10
continuous integration scripts for express apps + babel + aws s3
#!/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 August 10, 2017 15:59
express + aws serverless proxy
{
"presets": [ "es2015", "flow" ],
"plugins": ["transform-object-rest-spread"]
}
@justinsoliz
justinsoliz / jenkins-ci-packer.json
Last active November 10, 2020 19:39
Packer definition for jenkins ci executor
{
"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",