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 / 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 / example-config.md
Last active January 14, 2018 15:46
Adding NGINX HTTP to HTTPS rollover
server {
    listen 80;
    listen [::]:80;
    server_name *.server1.com;
    server_name *.server2.com;
    return 301 https://$server_name$request_uri;
}

server {
@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 / s3publish
Created April 15, 2017 14:54
Publish folder to S3
# Usage: `s3publish bucket-name default-profile`
# BUCKET to upload to
BUCKET=s3://$1
# Optional profile
PROFILE=$2
# specify folders if thou so choose
ENV=/
@iSkore
iSkore / eval.js
Created March 27, 2017 16:32
Is it eval?
'use strict';
function jsEval( jsString )
{
( ( () => {} ).constructor( jsString ) )();
}
jsEval( "console.log( 'hello world' );" );
@iSkore
iSkore / 0b101.js
Last active March 3, 2017 14:39
Binary fun. Learn you some binary.
'use strict';
// only works for binary numbers 0-15 to help with understanding binary
function coerceToBinary( n ) {
n = n === +n ? ( n >>> 0 ).toString( 2 ) : n;
if( n < 0 )
return coerceToBinary( n );
@iSkore
iSkore / nginx_ssl.md
Last active June 26, 2017 11:48
nginx setup

Set up an HTTPS enabled website with NGINX and LetsEncrypt.

sudo apt-get update

/etc/nginx/sites-available/default

sudo letsencrypt certonly --standalone -n -m [email protected] -d sinopia.exploreplanet3.com --agree-tos

A RAW HISTORY DUMP... SORRY

@iSkore
iSkore / good_stuff.js
Last active March 15, 2017 20:57
Very helpful JavaScript functions
/**
* Desc: Checks if a deep property exists
* Exp: checkNested( { a: { b: { c: "d" } } } );
* Returns: Boolean
*/
function checkNested( obj ) {
const args = Array.prototype.slice.call( arguments, 1 );
for( let i = 0; i < args.length; i++ ) {
if( !obj || !obj.hasOwnProperty( args[ i ] ) )
return false;
class ReadStream
{
constructor( obj, opt = {} )
{
if( Buffer.isBuffer( obj ) || obj === ''+obj )
stream.Readable.call( this, {
highWaterMark: opt.highWaterMark, encoding: opt.encoding
} );
else
stream.Readable.call( this, { objectMode: true } );
@iSkore
iSkore / nodeupdate
Last active November 23, 2016 15:53
A relatively useless (to some) platform Node.JS updater. Being in shell - which isn't native to Windows (sorta) - this script attempts to be your Node.JS Updater. Works great for OSX and LINUX.
#!/bin/bash
#########
#
# Once downloaded, run: `chmod 775 nodeupdate` and double click
#
#########
platform='unknown'
case "$OSTYPE" in