This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chooseTerraform() { | |
# Choose a specific version of terraform based on binaries being in your path | |
# with a `-` separator e.g. $PATH/terraform-v0.11.14, $PATH/terraform-v0.12.1 | |
select version in $(ls /usr/local/bin/ | grep terraform\- | cut -d '-' -f 2) | |
do | |
if [[ $version == "" ]] | |
then | |
echo "Please choose from the available versions!" | |
continue | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tickName() { | |
tick list | \ | |
rg -o "\[\s[a-z-]+\s\]" | \ | |
sort | \ | |
uniq | \ | |
sd '\[\s|\s\]' '' | |
} | |
alias tick-names=tickName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
limpiaGit() { | |
command git rev-parse --is-inside-work-tree &>/dev/null | |
if [[ $? == 0 ]] | |
then | |
git remote prune origin | |
git branch --merged | rg -v "(^\*|ma[inster]+)" | xargs git branch -d | |
fi | |
} | |
alias limpia-git=limpiaGit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wikipedia | |
from bs4 import BeautifulSoup, Tag | |
import datetime | |
import urllib.parse | |
from ankisync2.apkg import Apkg | |
from ankisync2.anki20 import db | |
if __name__ == "__main__": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tickDay() { | |
timerIs=$1 | |
today=$(date +"%m-%d") | |
tick list | rg "${today}" | rg "${timerIs}" | |
} | |
alias tick-today=tickDay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "test-config-with-shellexpand" | |
version = "0.1.0" | |
edition = "2018" | |
[dependencies] | |
config = "0.11.0" | |
shellexpand = "2.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tick Linux image for Ubuntu with all the necessary dependencies and | |
# environment variables. This Dockerfile can be used to test assertions that | |
# Tick was installed properly on Linux Ubuntu 18.04 and that it runs without | |
# needing to run `diesel_cli` commands to run the initial migraitons. This | |
# example is the first step to shipping a single binary for Tick cross-platform. | |
# | |
# Because of the life cycle of Docker containers, this container can only be | |
# used to run Tick commands in an ephemeral matter. Starting timers will only | |
# create timers which get destroyed when the tick command exits and the | |
# container is destroyed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IO.puts("Hola mundo desde Elixir!") | |
:timer.sleep(1000 * 1) | |
IO.puts("\nY eso es todo por ahora...") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a template Makefile that I use for automating projects that might | |
# require one. | |
# | |
# For more guidance around Makefiles, the checkout out the helpful | |
# [makefiletutorial](https://makefiletutorial.com/). | |
directory = tmp | |
# A loop that automatically runs to check if executables are in the $PATH variable before running any targets. | |
EXECUTABLES = echo cat grep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image | |
# input. I recommend grabbing an emoji from https://emojipedia.org/ | |
set -euo pipefail | |
# Number of frames of shaking | |
count=10 | |
# Max pixels to move while shaking |