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 / cognito_ios.md
Created February 19, 2016 20:02
Gist of StackOverflow answer

[ORIGINAL POSTING][0]

[Check this out][1]

So the steps are:

  1. Set up Cognito to authenticate UNanthenticated users
    • You have to do this otherwise they won't be able to access anything before logging in. [![unauthenticated user][2]][2]

[ORIGINAL POSTING][6]

/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -o left.pvr left.PNG

The file must be a PNG

In Terminal, hit cd to make sure you're in your root directory.

cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ && ls

@iSkore
iSkore / nodejsclitool.md
Last active February 23, 2016 17:49
Node JS CLI Tool Creation

Node JS CLI Tool Creation

[Original post][1]

Create your module folder

mkdir [cli_name] && cd [cli_name]
npm init

Fill out your information

@iSkore
iSkore / powerOfTwo.js
Last active February 24, 2016 02:01
Speed test on power of two
// TEST A
function isPowerA ( x ) {
while ( ( ( x % 2 ) === 0 ) && x > 1 ) x /= 2;
return ( x === 1 );
}
var i = 10000000;
while ( i > 0 ) {
Turquoise:
[UIColor colorWithRed:0.10196 green:0.73725 blue:0.61176 alpha:1.0]
[UIColor colorWithRed:0.08627 green:0.62745 blue:0.52157 alpha:1.0]
Green:
[UIColor colorWithRed:0.18039 green:0.80000 blue:0.44314 alpha:1.0]
[UIColor colorWithRed:0.15294 green:0.68235 blue:0.37647 alpha:1.0]
Blue:
[UIColor colorWithRed:0.20392 green:0.59608 blue:0.85882 alpha:1.0]
@iSkore
iSkore / install_imagemagick_mac.md
Last active February 25, 2016 17:38
Install ImageMagick on Mac Environment

Installing ImageMagick

  1. Open Terminal

  2. cd

  3. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

  4. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

@iSkore
iSkore / RDPUbuntu.md
Last active March 1, 2016 16:07
RDP into Ubuntu EC2

This tutorial is for setting up an Ubuntu EC2 for RDP

In this tutorial, I will be using nano for this. To exit and save, do CTRL-X followed by Y and ENTER

  1. Boot up EC2 - Ubuntu 14.04 (LTS)

  2. Once the instance is all boot up, update it:
    sudo apt-get update
    sudo apt-get upgrade

  3. sudo nano /etc/ssh/sshd_config

@iSkore
iSkore / cprogram.md
Last active March 3, 2016 01:33
C Program in c minor

Square Wave

^   squ x
	 |
	,|, 1 _________________                       _
	 |                     |                     |
	 |                     |                     |
	 |                     |                     |
"""".*""""""""""|""""""""""|."""""""""|""""""""".|"""">
@iSkore
iSkore / unittest.js
Last active March 20, 2016 21:26
Gist unit test example
var arr = [ "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u
@iSkore
iSkore / peekaboo.md
Last active March 31, 2016 19:41
Show and hide files alias in terminal

Show and hide files with showfiles - hidefiles

printf '''\nalias showfiles="\ndefaults write com.apple.finder AppleShowAllFiles YES\nkillall -KILL Finder"\n''' >> ~/.bash_profile && printf '''alias hidefiles="\ndefaults write com.apple.finder AppleShowAllFiles NO\nkillall -KILL Finder"\n''' >> ~/.bash_profile && source ~/.bash_profile

Now you can easily hidefiles and showfiles for hidden .gitconfig for instance