openpgp4fpr:E20D1FF81F4991D5D43F3C318B4CF8020206A758
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/sh | |
| if [ -f /opt/local/bin/ripgrep ]; then | |
| for dir in */; do (cd "$dir" && git rev-parse --is-inside-work-tree 1>/dev/null && ripgrep "$@") 2>/dev/null ; done | |
| exit 0 | |
| fi | |
| echo You need to install ripgrep |
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
| git config --global alias.duff '!f(){ base64 -d<<</Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4BZuBYJdABBuEi7B7j+c3vor3lHwy8/Qy8aeCQgp+xKwnoYdynnOPjSg4jnmw5oWPFO1tXovAUxuEuGUyS7IDfQTMho6iLkQ7eOak0occChW9kBQ8v5L8vlWXo5U6zpINc1xAJJA6vTZ2+2WTPHxhS9JcB3NSSb4iBER2N8qTjoTYOyEXgSaWuYYmPJBsQZZ18WMlzF6TGbvo50bHWNK5axJ91VT4x4q0VVXoo+l1/w6X5s23VUj9cRNrQ0wUVKP4/he51d9XO9pdggnL4iH8Knwr8iLYxqzCQjLrFxZf1PglITxmAH17hPc9A28o5YAImXLFR11sT0B2CjTn4xU/ulm/qQRrnxrRCOxcQ/ezak6DgKtU7NURpCEnDkz2kxhvl6olFo9UMmF8gx623w7VKr1Yod7J5vkYMJeo2cn5ULWJtKNQdh88oAwXuHmdyA881havulWofCeoymkuK94xtGHy1qIl5PlASwggZhD2+g/jf3eO1LJ0FPUw8bpTFgTaq2Zxcu+DEhlNCJAbpTDyUsCKntCEwr0d40zdxPMnABWfl+pChmO63QBVQ9hobdPRsAB5094SjXi5DwmpGzyip7b5HwaXkwtcnM9lOWUTaMkUTltS6S+VFLkRje9TS21BAOkdfSh4W15GiqvkrxKELs/OzwegH7zZ2DnKnHLYl4cDSdRyPhXay7bVv7lowidY7lEtyUlDIpt3RBeu0Eoqxjm/yQ4xesLm4KgQ37EsulCY0YBmGkfa9/Uxoc081V3aN9cn7dT63GA3qIhfdITbQHjHMPcsv2dWqIRsZQUZtEH5r0i8mFlYGqv0bIZuJfEhLOD6rwfcoW3jbTuhLMk/S0Mk91B2IhgDZQiU/PDaHHlabbYRxAfGgesIXgEdTdT7oGkkg6lMpzP0Xf3emdU8Y3N5zapgZZ1RQ6naIutOQoWRX |
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/sh | |
| if [ -z "${BRAG_PATH}" ]; then | |
| echo You need to set a path to a local git repo with the env var BRAG_PATH | |
| fi | |
| day="$(date '+%Y-%m-%d')" | |
| branch_name="brag-${day}" | |
| git -C "${BRAG_PATH}" switch main | |
| git -C "${BRAG_PATH}" pull | |
| if [ "$(git -C "${BRAG_PATH}" branch --list "$branch_name")" ]; then |
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
| /* The idea of this tool is to run multiple web searches at the same time - say several shopping sites or knowledge bases */ | |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/pkg/browser" | |
| "strings" | |
| ) |
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
| # The purpose of this Python script is to pull the forecast of starters and leavers from form responses and send a summary forecast for the starters/leavers in the next 2 weeks | |
| # Include scopes for GMail API | |
| # Any data you need to customise yourself has been placeholdered with <replace> | |
| import gspread | |
| import datetime | |
| import ezgmail | |
| gc = gspread.service_account(filename='service_account.json') | |
| # Function for getting spreadsheet data and returning filtered lists of leavers and starters |
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 os | |
| import requests | |
| import datetime | |
| import csv | |
| import sys | |
| # Authentication variables | |
| bot_token = os.environ['SLACK_BOT_TOKEN'] | |
| user_token = os.environ['SLACK_USER_TOKEN'] |
I hereby claim:
- I am gleeblezoid on github.
- I am gleeblezoid (https://keybase.io/gleeblezoid) on keybase.
- I have a public key ASAN0wHtA9plCqAs8Srqv8oEmmn3rfg9klow4VsnfGBsTgo
To claim this, I am signing this object:
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
| /* For setting up executables for multiple OS's */ | |
| package main | |
| import( | |
| "fmt" | |
| "strings" | |
| ) | |
| func main(){ |