Skip to content

Instantly share code, notes, and snippets.

View andyshora's full-sized avatar

Andy Shora andyshora

View GitHub Profile
@andyshora
andyshora / async-await.js
Created March 3, 2018 18:22
Async Await Example
async function fetchConfig() {
const response = await fetch(
`${TMDB_API_PATH}/configuration?api_key=${TMDB_API_KEY}`,
);
return await response.json();
}
// Async/Await requirements: Latest Chrome/FF browser or Babel: https://babeljs.io/docs/plugins/transform-async-to-generator/
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch
@andyshora
andyshora / update-dokku-buildpack.sh
Created December 4, 2017 08:56
Set dokku buildback URL for static builds
#Add a .static file to your app repo.
#Update BUILDPACK_URL:
dokku config:set YOUR_APP BUILDPACK_URL=https://github.com/dokku/buildpack-nginx.git
@andyshora
andyshora / d.sh
Last active July 28, 2017 10:38
d
mkdir ~/Documents/Files
echo "say Double Espresso Mackiato, and a bottle of your finest Barolo -r 300 -v Whisper" >> ~/Documents/Files/Startup.cmd
chmod +x ~/Documents/Files/Startup.cmd
@andyshora
andyshora / .bash_profile
Created March 6, 2017 16:55
.bash_profile
ulimit -n 65536
source ~/.bash_git
# enable the git bash completion commands
source ~/.git-completion.sh
# enable git unstaged indicators - set to a non-empty value
GIT_PS1_SHOWDIRTYSTATE="."
@andyshora
andyshora / .bash_git
Created March 6, 2017 16:55
.bash_git
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
@andyshora
andyshora / dev-2016.txt
Created February 6, 2016 19:17
Ideal Product Development Workflow 2016
1. Requirements Gathering with Stakeholders. Gather User Journeys.
2. Design + UX collaborating to produce wireframes + low fidelity visuals, using technological insights (or experiments) from Front-End Developers.
3. Front-End prototyping.
5. UX listing components and variations.
6. Front-end architecture fleshed out according to UX requirements.
7. Design + Front-End styleguide planning.
8. Back-End and Infrastructure planning.
9. Agile Design + Development process from here.
@andyshora
andyshora / ssh-copy.ssh
Created December 11, 2015 09:20
Remote copy file via scp
scp [email protected]:/home/dokku/ssl_temp ~/Dev/logs
# Add -r to copy directory
@andyshora
andyshora / add-key.sh
Created December 4, 2015 12:44
new public key dokku digital ocean
cat ~/.ssh/az.pub | ssh [email protected] "sudo sshcommand acl-add dokku az"