Skip to content

Instantly share code, notes, and snippets.

View stepharr's full-sized avatar

Stephon Harris stepharr

  • Atlanta Ga
View GitHub Profile
@stepharr
stepharr / findingOpenSourceProjects.md
Created September 28, 2020 19:19
How to Find Interesting Github projects to contribute to.
JSON, not Jason - Computerphile
140K views
5 days ago
17:26
GUI: Under the Hood - Computerphile
70K views
1 week ago
CC
12:09
How Password Managers Work - Computerphile
@stepharr
stepharr / LinuxTips.md
Last active May 2, 2019 15:34
Just some simple tips to help with navigating Linux

Windows to Linux

  • Easily SSH using PUTTY by creating a shortcut passing in username and server
    • "C:\Program Files\PuTTY\putty.exe" -ssh user@<hostname>
  • Copy files from Windows to Linux and Linux to Windows
    • pscp -scp "C:\local\path\to\file" user@<hostname>:/remote/path/to/file
    • pscp -scp user@<hostname>:/remote/path/to/file "C:\local\path\to\file"

Linux Commands

  • Moving around the command line
  • Use the last argument from a previous command
@stepharr
stepharr / modernjs.md
Last active June 7, 2018 12:17
Google IO '18: Build the future of the Web with Modern Javascript

ECMA Modules

  • .mjs
  • import/export

Numeric Literals

  • Big Int

Async iterators/generators

  • for await
@stepharr
stepharr / pre-push.sh
Created May 5, 2018 21:16
A git hook to prevent push's if not based on latest in master
#!/bin/bash
red='\033[0;31m'
green='\033[0;32m'
yellow='\033[0;33m'
no_color='\033[0m'
BRANCH="$(git symbolic-ref HEAD 2>/dev/null)"
if [ $? != 0 ]
then
DETATCHED="detached HEAD at $(git rev-parse --short HEAD)"
echo -e "\n${red} You are currently on ${DETATCHED}. Please make sure you're on a valid branch before pushing. ${no_color}\n"
@stepharr
stepharr / up-and-down.md
Created May 12, 2017 16:51
Up and Down Kata solutions
@stepharr
stepharr / Deploying Resume Wrangler
Last active February 12, 2016 15:39
Deploying Resume Wrangler on OSX
## Deploying Resume Wrangler
### Downloading App
1. Create a repo folder
2. Download git repo
```sh
git clone https://avalonconsultingllc.git.beanstalkapp.com/avalonresumewrangler.git
```
@stepharr
stepharr / notifications.swift
Created October 4, 2015 23:06 — forked from kristopherjohnson/notifications.swift
Swift snippets for local and remote notifications
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
registerNotificationTypes()
return true
}
func registerNotificationTypes() {
let types: UIUserNotificationType = .Badge | .Sound | .Alert;