git clone https://github.com/mattsherwood87/CoNNECT
cd CoNNECT/
/Users/morpheous/.pyenv/versions/3.9.19/bin/python3 -m venv venv
source venv/vin/activate
pip install httplib2 pymeshlab pymysql nipype pycondor sphinx pandas sphinx_adc_theme sphinx_rtd_theme sphinx-argparse setuptools sphinxcontrib-autoprogram
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
| from decimal import Decimal, getcontext | |
| getcontext().prec = 28 | |
| class D(Decimal): | |
| def __new__(cls, value): | |
| if isinstance(value, (float, int)): | |
| return super().__new__(cls, str(value)) | |
| return super().__new__(cls, value) |
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 | |
| osascript -e ' | |
| tell application "System Events" | |
| -- Type something | |
| keystroke "w036cjc" | |
| delay 0.3 | |
| -- Press Tab key | |
| key code 48 | |
| delay 0.1 | |
| -- Type something else |
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 | |
| osascript -e ' | |
| tell application "System Events" | |
| set clipboardContent to (do shell script "pbpaste") | |
| repeat with char in characters of clipboardContent | |
| if char is equal to linefeed or char is equal to return then | |
| key code 36 -- Simulates Enter key | |
| else if char is equal to tab then | |
| key code 48 -- Simulates Tab key |
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
| FROM alpine:latest | |
| ENV LANG=C.UTF-8 | |
| ENV FSLDIR="/opt/miniconda/envs/FSL/share/fsl" | |
| ENV PATH="$FSLDIR/bin:$PATH" | |
| ENV TERM=xterm | |
| ENV CONDA_OVERRIDE_GLIBC=2.34 | |
| ENV CONDA_ALWAYS_YES=true | |
| ENV CONDA_AUTO_UPDATE_CONDA=false | |
| # ENV MAMBA_ROOT_PREFIX=/opt/miniconda |
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 | |
| sudo pkill -f Backblaze | |
| # /Library/Backblaze.bzpkg/bzfilelist -urgent_refresh_all | |
| # /Applications/Backblaze.app/Contents/MacOS/bzserv | |
| # /Library/Backblaze.bzpkg/bzbmenu.app/Contents/MacOS/bzbmenu | |
| sudo launchctl unload /Library/LaunchDaemons/com.backblaze.bzserv.plist | |
| sudo rm /Library/LaunchDaemons/com.backblaze.bzserv.plist | |
| launchctl unload /Users/morpheous/Library/LaunchAgents/com.backblaze.bzbmenu.plist | |
| sudo rm /Users/morpheous/Library/LaunchAgents/com.backblaze.bzbmenu.plist |
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 | |
| /Applications/Zotero.app/Contents/MacOS/zotero -P |
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 python3 | |
| import sys | |
| import json | |
| # pip install google-api-python-client | |
| from googleapiclient.discovery import build | |
| from pprint import pprint | |
| import isodate | |
| api_service_name = "youtube" | |
| api_version = "v3" |
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 python3 | |
| import time | |
| import os | |
| import sys | |
| import signal | |
| from pprint import pprint | |
| from box import Box | |
| import datetime | |
| import uuid | |
| import jwt |