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 / 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
@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 / 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
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 / 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

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]

@iSkore
iSkore / 0Option2ConstructorSummary.md
Created November 10, 2017 12:17 — forked from allenwb/0Option2ConstructorSummary.md
New ES6 constructor features and semantics: Alternative 2 manual super in derived classes

New ES6 Constructor Semantics and Usage Examples

Manual super: Alternative Design where subclass constructors do not automatically call superclass constructors

This Gist presents a new design of class-based object construction in ES6 that does not require use of the two-phase @@create protocol.

One of the characteristics of this proposal is that subclass constructors must explicitly super invoke their superclass's constructor if they wish to use the base class' object allocation and initialization logic.

An alternative version of this design automatically invokes the base constructor in most situations.

@iSkore
iSkore / util.js
Last active January 28, 2018 13:08
The Last Kitchen-Sink File Ever.
'use strict';
/**
* @typedef {number} milliseconds
* @description
* A number assumed to be in milliseconds.<br/>
* Number is likely to be calculated against a Unix Epoch based timestamp or milliseconds since Jan 01 1970.<br/>
* When multiplied by <code>1e-3</code>, number should convert to seconds
*/
@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