Skip to content

Instantly share code, notes, and snippets.

View adriantorrie's full-sized avatar

Adrian Torrie adriantorrie

View GitHub Profile
@adriantorrie
adriantorrie / git-lfs-track.sh
Last active June 20, 2024 06:37
Git LFS Track Multiple Files
git lfs track \
"*.jpg" \
"*.png" \
"*.pdf" \
"*.xls" \
"*.xlsx"
@adriantorrie
adriantorrie / .pre-commit-config.yaml
Created November 18, 2020 03:19
Pytest pre-commit hook
# https://github.com/pre-commit/pre-commit/issues/761#issuecomment-394167542
- repo: local
hooks:
- id: pytest
name: pytest
entry: venv/bin/pytest
language: script
pass_filenames: false
# alternatively you could `types: [python]` so it only runs when python files change
# though tests might be invalidated if you were to say change a data file
@adriantorrie
adriantorrie / gist:9156a0389de849ca635e8d7bfd2173f6
Created May 13, 2020 09:09 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@adriantorrie
adriantorrie / gist:f579918c9c6dededd4bbb3eb89e50af1
Created May 13, 2020 09:09 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adriantorrie
adriantorrie / deployment.yml
Created April 15, 2020 11:00 — forked from troyharvey/deployment.yml
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@adriantorrie
adriantorrie / apk flags.md
Created January 28, 2020 04:39 — forked from sgreben/apk flags.md
apk flags

apk

apk-tools 2.8.2, compiled for x86_64.

usage: apk COMMAND [-h|--help] [-p|--root DIR] [-X|--repository REPO] [-q|--quiet] [-v|--verbose] [-i|--interactive] [-V|--version] [-f|--force]
           [--force-binary-stdout] [--force-broken-world] [--force-non-repository] [--force-old-apk] [--force-overwrite] [--force-refresh] [-U|--update-cache]
           [--progress] [--progress-fd FD] [--no-progress] [--purge] [--allow-untrusted] [--wait TIME] [--keys-dir KEYSDIR] [--repositories-file REPOFILE]
           [--no-network] [--no-cache] [--cache-dir CACHEDIR] [--arch ARCH] [--print-arch] [ARGS]...
@adriantorrie
adriantorrie / helpful-docker-commands.sh
Created August 15, 2018 03:32 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container
@adriantorrie
adriantorrie / settings.json
Last active February 22, 2018 13:32
VS Code User Settings
{
"editor.dragAndDrop": true,
"editor.minimap.enabled": true,
// Columns at which to show vertical rulers
"editor.rulers": [
79
],
# Hive Makefile
# -----------------------------------------------------------------------------
# The @ in front of the commands prevents make from printing the command
# $<: The file thats changed
# $@: The target file to be created from changed file
# $(@D): The directory part of the target file name ($@)
#
# List of make commands:
# make SAFE Default build command for development
# make clean SAFE Blows away bin folder