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 | |
usage() { | |
( | |
echo "usage: ${0##*/} COMMAND [args] [-h|--help]" | |
echo "Tool for archiving and restoring git branches." | |
( | |
echo " -h, --help@ show usage help" | |
echo " create BRANCH@ create an archive ref for the given branch" | |
echo " list@ list archived branches" |
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 json | |
import logging | |
from typing import Any, List, cast | |
import discord | |
from deepdiff.diff import DeepDiff | |
from discord_slash import SlashCommand | |
from discord.ext.commands import Bot | |
logger = logging.getLogger(__name__) |
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 | |
set -e | |
# The meeting_detector script: https://gist.github.com/lexicalunit/ff7bb0981cb92ee5ce1cac6f83e1c248 | |
AGENT="$HOME/Library/LaunchAgents/com.lexicalunit.meeting_detector.plist" | |
cat >"$AGENT" <<EOF | |
<?xml version="1.0" encoding="UTF-8"?> |
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 | |
source "$HOME/.blickstick_utilities" | |
APP="zoom.us" | |
OP="osascript -e 'tell application \"System Events\" to (name of processes) contains \"$APP\"'" | |
FIREFOX_TABS="firefox-tabs" | |
is_running() { | |
TABS="$($FIREFOX_TABS | grep 'meet.google.com')" |
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 | |
# Source this file to import these utilites into your scripts. | |
BLINK_LOCK="/tmp/.blinkstick-toggle" | |
touch "$BLINK_LOCK" | |
# Choose the python needed for blinkstick and the path to blinkstick | |
BS="/usr/bin/python /usr/local/bin/blinkstick" |
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
#!/usr/bin/bash | |
# See https://gist.github.com/lexicalunit/db01dbb0c1c1dc81f54cf31a825d0920 for firefox-tabs. | |
firefox-tabs | grep -q "meet.google.com" | |
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
#!/usr/bin/env python3 | |
import argparse | |
import json | |
import pathlib | |
# You'll need to install python-lz4: https://pypi.org/project/lz4/ | |
import lz4.block | |
parser = argparse.ArgumentParser(description="List open urls in Firefox tabs") |
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 | |
APP="zoom.us" | |
OP="osascript -e 'tell application \"System Events\" to (name of processes) contains \"$APP\"'" | |
test "$(eval "$OP")" = "true" | |
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
1 Blue Mana Battery | |
2 Arena of the Ancients | |
1 Fire Diamond | |
2 Library of Leng | |
1 Feroz's Ban | |
1 Kormus Bell | |
3 Sunstone | |
1 Bubble Matrix | |
1 Horn of Greed | |
1 Predator, Flagship |
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
{ | |
"document": { | |
"document_id": "1", | |
"documentType": "Nomina Normal", | |
"document": "Nomina", | |
"documentName": "Nomina 325", | |
"documentNumber": "320", | |
"date": "2016-01-13", | |
"company": "SHMEX", | |
"currency": "Pesos", |
NewerOlder