Skip to content

Instantly share code, notes, and snippets.

View airbr's full-sized avatar
🏠
Working from home

Morgan Murrah airbr

🏠
Working from home
View GitHub Profile
@grantdobbe
grantdobbe / wiki-fill.sh
Last active February 1, 2022 18:15
A script for block-filling a disk with Wikipedia (rather than zero-filling)
#!/bin/bash
#
# Copyright © 2022 Grant Dobbe
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software
# and associated documentation files (the “Software”), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
@airbr
airbr / Craft-Lists-for-Sketch.md
Created March 11, 2021 10:59 — forked from demersdesigns/Craft-Lists-for-Sketch.md
A collection of text lists that can be imported into InVision's Craft plugin.
@erdincay
erdincay / sugh.sh
Last active March 14, 2024 21:00
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 2, 2024 22:49
set -e, -u, -o, -x pipefail explanation

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
@DomPizzie
DomPizzie / README-Template.md
Last active July 2, 2024 08:00
A simple README.md template

Project Title

Simple overview of use/purpose.

Description

An in-depth paragraph about your project and overview of use.

Getting Started

@demersdesigns
demersdesigns / Craft-Lists-for-Sketch.md
Last active March 11, 2021 17:34
A collection of text lists that can be imported into InVision's Craft plugin.
@airbr
airbr / Pretty Git History Tree & Log
Created November 6, 2016 05:16
Essential Git Alias's
alias.g log --graph --all --branches --decorate --pretty=format:'[%C(auto)%h%Creset][%C(cyan)%an %ar%Creset]%C(auto)%d%Creset %s %C(auto)%Creset'
alias.ls log --stat --all --decorate
@amysimmons
amysimmons / js-tricky-bits.md
Last active July 2, 2024 20:06
Understanding closures, callbacks and promises in JavaScript

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.

@subfuzion
subfuzion / curl.md
Last active July 1, 2024 14:16
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.