Skip to content

Instantly share code, notes, and snippets.

View iSkore's full-sized avatar
Vue + Vuetify + AWS Amplify = Power Overwhelming

Nick Soggin iSkore

Vue + Vuetify + AWS Amplify = Power Overwhelming
View GitHub Profile
@iSkore
iSkore / ubuntu-setup.md
Last active March 17, 2023 12:50
Quick Ubuntu Setup

SSH into Ubuntu-based instance

sudo apt-get update -y
sudo apt-get upgrade -y

curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs

sudo npm i -g pm2
@iSkore
iSkore / Install nextcloud on Raspberry Pi.sh
Last active January 30, 2023 02:42
Install nextcloud on Raspberry Pi
sudo apt update -y
sudo apt upgrade -y
sudo apt install vim wget jq -y
# set DNS
# sudo vim /etc/resolv.conf
# set static IP (requires reboot)
# sudo vim /etc/dhcpcd.conf
# if using Argon EON case
@iSkore
iSkore / run.sh
Last active January 21, 2023 16:57
Install Jupyter Notebook with GDAL on AL2
sudo yum update -y
sudo yum upgrade -y
sudo yum-config-manager --enable epel
sudo yum install git vim -y
sudo yum install python3-pip -y
sudo yum install docker -y
sudo usermod -a -G docker ec2-user
id ec2-user
newgrp docker
pip3 install --user docker-compose
node -e "const x=require(process.cwd()+'/package.json');console.log('npm i -D',Object.keys(x.devDependencies).join(' '));console.log('npm i -S',Object.keys(x.dependencies).join(' '));"
@iSkore
iSkore / web-mercator-math.js
Created January 28, 2022 16:36
A class collection of mathematical equations for calculating Web Mercator tiles
'use strict';
/**
* Web Mercator Math
* @class
* @description
* Web Mercator Math
* A class collection of mathematical equations for calculating Web Mercator tiles
*
* 0:0:0

General setup

sudo apt update -y
sudo apt upgrade -y
sudo apt install -y vim

curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
@iSkore
iSkore / Installing Nvidia drivers on Ubuntu 16.04.md
Last active October 29, 2020 17:18
Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Installing Nvidia drivers on Ubuntu 16.04 for GTX1070

Build Specification:

  • Intel i7-6850K @ 3.60GHz
  • GTX 1070

Prerequisites

  • Fresh install of Ubuntu 16.04

Note - did not encrypt home directory or xda drive

@iSkore
iSkore / author.md
Last active September 21, 2020 12:48
Update all git branches, commits, & tags with new email & author

Git correct commit author

Start with:

git clone --bare https://github.com/user/repo.git
cd repo.git

TO CORRECT A SINGLE EMAIL

@iSkore
iSkore / ConnectEC2toCoda2.md
Last active June 8, 2018 19:14
Connect EC2 to Coda 2

Site

Nickname: [whatever]
Remote URL: http://ec2-[your-ip-address].compute-1.amazonaws.com
Local URL: optional
Remote Root: /home/ec2-user/
Local Root: /Volumes/Macintosh HD/Users/User/path/
Use Publishing: true
Automatically index all Site files: true

KEY and CRT from PFX:

  • openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]
  • openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]

Encrypted KEY to decrypted KEY: openssl rsa -in [keyfile-encrypted.key] -out [keyfile-decrypted.key] PEM from key: openssl rsa -in [keyfile-encrypted.key] -outform PEM -out [keyfile-encrypted-pem.key]