Skip to content

Instantly share code, notes, and snippets.

View juniorbird's full-sized avatar

Wade Armstrong juniorbird

View GitHub Profile
@mattmc3
mattmc3 / 1-setopts.zsh
Last active June 6, 2024 18:02
ZSH - options by framework
## ZSH Options
# http://zsh.sourceforge.net/Doc/Release/Options.html
# Changing Directories
# http://zsh.sourceforge.net/Doc/Release/Options.html#Changing-Directories
setopt auto_cd # if a command isn't valid, but is a directory, cd to that dir
setopt auto_pushd # make cd push the old directory onto the directory stack
setopt pushd_ignore_dups # don’t push multiple copies of the same directory onto the directory stack
setopt pushd_minus # exchanges the meanings of ‘+’ and ‘-’ when specifying a directory in the stack
@atoponce
atoponce / gist:07d8d4c833873be2f68c34f9afc5a78a
Last active July 26, 2024 09:10 — forked from tqbf/gist:be58d2d39690c3b366ad
Cryptographic Best Practices

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from

@yefim
yefim / Dockerrun.aws.json
Last active April 7, 2023 16:11
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "443"
}
@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@juniorbird
juniorbird / sayings.md
Last active June 24, 2018 19:36
Sayings

Sayings worth remembering

On life

  • "He who quotes others is an idiot" - Thomas Jefferson
  • "Wine we need for health, and the health we need to drink vodka." - Viktor Chernomyrdin
  • "To answer before listening -- that is folly and shame." - Proverbs 18:13
  • "Some name it disappointment and become poorer, others name it experience and become richer" - Siegmund Warburg
  • "If we want to fully experience love and belonging, we must believe that we are worthy of love and belonging." - Brene Brown
  • In some ways suffering ceases to be suffering at the moment it finds a meaning, such as the meaning of a sacrifice." - Viktor Frankl
@juniorbird
juniorbird / .bash_profile
Last active December 28, 2020 19:20
My setup process for a new machine
# What is the name of the machine I'm working on?
export MYMACHINENAME="Laptop"
# What color should I write this name in the prompt?
export MYMACHINECOLOR="38;5;36m"
# What color should I use for tmux?
export MYMACHINETMUX="colour36"
# Personal or Work machine?
export MYMACHINETYPE="Work"
if [ -f ~/dotfiles/bashrc ]; then
@witt3rd
witt3rd / brew-sync.sh
Last active February 25, 2024 12:04 — forked from jpawlowski/brew-sync.sh
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*
@artjomb
artjomb / 1_phantomErrors.js
Last active April 5, 2022 22:10
Error event handlers for PhantomJS and CasperJS: PhantomJS and CasperJS don't show errors on the page by default. This can give clues as to what did go wrong.
var page = require('webpage').create(),
url = 'http://example.com/';
// Put the event handlers somewhere in the code before the action of
// interest (opening the page in question or clicking something)
// http://phantomjs.org/api/webpage/handler/on-console-message.html
page.onConsoleMessage = function(msg, lineNum, sourceId) {
console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")');
};
@sebmarkbage
sebmarkbage / Enhance.js
Last active January 31, 2024 18:33
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@SpotlightKid
SpotlightKid / github_download.py
Created August 6, 2014 14:12
Github file viewer / general URL download script for Pythonista
"""Prompt user for URL and filename and download the remote resource to a file.
If the clipboard contains a HTTP(S) or FTP(S) URL, the URL input dialog is
pre-filled with it.
The suggested local filename is extracted from the URL, if possible.
If a github file viewer URL is given, it is transformed into the matching
raw file access URL, which makes it easier to download files on github you
are viewing in your browser. Just copy the URL to the clipboard, change to