Skip to content

Instantly share code, notes, and snippets.

@0187773933
0187773933 / DumbPowerPointBatchExporter.sh
Created November 9, 2025 02:30
osascript Apple Script to Batch Export PowerPoints to PDF
#!/bin/bash
# Usage:
# ./export.sh "/path/to/folder"
folder="$(cd "$1" && pwd)"
if [[ ! -d "$folder" ]]; then
echo "Usage: $0 /path/to/ppt/folder"
exit 1
fi
@0187773933
0187773933 / CensorVideo.py
Created November 6, 2025 19:31
Censors Profanity from Video
#!/usr/bin/env python3
import sys
import string
import subprocess
import json
import unicodedata
from pathlib import Path
from pprint import pprint
import torch
import re
@0187773933
0187773933 / HNB-Lab2.html
Created August 29, 2025 13:58
Human Neurobiology - Lab 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Human Neurobio - Lab 2</title>
<style>
* {
margin: 0;
padding: 0;
@0187773933
0187773933 / HIA.xml
Created August 29, 2025 12:59
TR HIA
<Response>
<Say loop="2">Haley is awake</Say>
</Response>
@0187773933
0187773933 / download.py
Created April 7, 2025 12:13
FSL Course PDF Downloader
#!/usr/bin/env python3
import sys
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from concurrent.futures import ThreadPoolExecutor, as_completed
import time
import json
from tqdm import tqdm
import base64
@0187773933
0187773933 / TestDeepFaceOneHot.py
Created April 6, 2025 13:46
DeepFace - Retinaface - DeepID
#!/usr/bin/env python3
import os
import cv2
import json
import time
import pickle
from deepface import DeepFace
from deepface.modules import verification
# https://github.com/serengil/retinaface
@0187773933
0187773933 / PythonAutoDecimal.py
Created February 18, 2025 15:33
Python Auto Decimal Wrapper
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)
@0187773933
0187773933 / MacOSXTypeUserNamePassword.sh
Last active February 6, 2025 17:15
Types Username and Password
#!/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
@0187773933
0187773933 / MacOSXTypeClipboard.sh
Created February 6, 2025 01:19
Types MacOSX Clipboard for Copy/Paste Sync
#!/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
@0187773933
0187773933 / FSL_Alpine_Dockerfile
Last active January 8, 2025 17:57
FSL Alpine Docker Install
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