This file contains hidden or 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 | |
set -e | |
file_name=$1 | |
new_path=$2 | |
full_path=$(find docs/ -iname "${file_name}") | |
extracted_file_name=$(basename "${full_path}") |
This file contains hidden or 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
diff --git a/nvim/bundles.vim b/nvim/bundles.vim | |
index fa91ed5..c20c7e2 100644 | |
--- a/nvim/bundles.vim | |
+++ b/nvim/bundles.vim | |
@@ -80,7 +80,11 @@ | |
Plug 'othree/javascript-libraries-syntax.vim' | |
Plug 'moll/vim-node' | |
Plug 'marijnh/tern_for_vim' | |
- Plug 'mxw/vim-jsx' | |
+ Plug 'maxmellon/vim-jsx-pretty' |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Check for things that are changed. A file or directory can be checked and a | |
# message is printed out for the user to perform an action on. Emoji use | |
# encouraged for the echo message. | |
# | |
# You may copy and paste the `if changed` statement below and modify the string | |
# that you'd like to grep for. Make sure you escape any back-ticks "\`" in your | |
# echo statements in order to include them in your message. | |
# |
This file contains hidden or 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
BlogPage.prototype.repo_migration_form_on_change = function() { | |
var ___iced_passed_deferral, | |
__iced_deferrals, | |
__iced_k; | |
__iced_k = __iced_k_noop; | |
___iced_passed_deferral = iced.findDeferral(arguments); | |
this.cleanse_repo_inputs(); | |
this.make_repo_migration(); | |
$("#repo-migration-extras").slideDown(); | |
$(".myteam-2nd").text($("#repo-teamname").val()); |
This file contains hidden or 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
#!/usr/bin/env bash | |
patch_file=$( | |
curl -L \ | |
-s \ | |
https://github.com/transcom/mymove/commit/e22ed5cdd10d7fb46e448c4d99b9d98880279a5a.patch | |
) | |
# Checkout a previous branch that doesn't have migration/ changes in it. |
This file contains hidden or 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 | |
function changed { | |
git diff --name-only HEAD@{1} HEAD | grep "^$1" > /dev/null 2>&1 | |
} | |
if changed 'migrations/'; then | |
echo "🗄 The migrations/ directory has changed. Run migrations script to get up-to-date." | |
fi |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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__": |