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
require('luau') | |
_addon.name = 'automacro' | |
_addon.version = '1.0' | |
_addon.author = 'Mapogo' | |
_addon.commands = {'am',} | |
sleep_time = 30 | |
windower.register_event('load', function() |
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
""" | |
Checks your Vemmo transactions, generates a receipt, and emails it to email in venmo note. | |
1. Make a PDF of you receipt template. | |
2. https://www.sejda.com/pdf-forms, this is useful to add fields to an existing PDF. | |
3. Use fillpdfs.get_form_fields to find all of the fields in the PDF. | |
4. Get gmail and venmo api credentials. | |
5. Follow instructions here to get venmo token https://github.com/mmohades/Venmo | |
6. Update the GLOBALS. | |
7. Execute this script. | |
""" |
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 os | |
import matplotlib.pyplot as plt | |
from pathlib import Path | |
from export_draft import Multifile | |
DATA_DIRECTORY = Path("/nsls2/data/chx/legacy/Compressed_Data") | |
densities = [] | |
def multifile_density(multifile): | |
total_pixels = 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
import requests | |
import json | |
from ophyd import Component as Cpt | |
from ophyd import Device, Signal | |
from ophyd.sim import NullStatus | |
class UnrealClient(): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
=================== | |
Publishing Releases | |
=================== | |
# Make a new branch called rel-VER for release notes. | |
# Make a PR called release notes VER. | |
# Merge release notes PR. |
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 | |
VERSION=$1 | |
REMOTE=$2 | |
MAIN_BRANCH=$3 | |
echo "Publishing $VERSION" | |
git commit --allow-empty -m "REL: $VERSION" | |
git tag -a $VERSION | |
git push $REMOTE $MAIN_BRANCH |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
# ------------------------------------------------------------------ | |
# Simple Backup Script for MongoDB | |
# ------------------------------------------------------------------ | |
# Definitions | |
MONGO_HOST='localhost' | |
MONGO_PORT="27017" | |
DUMP_PATH='/backup/mongo_backup' | |
DAYS_OF_BACKUPS=2 |
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 builds and serves databroker-pack files | |
""" | |
import asyncio | |
import os | |
import pathlib | |
import subprocess | |
import tempfile | |
import zipfile |