Skip to content

Instantly share code, notes, and snippets.

@0187773933
0187773933 / BackBlazeUninstall.sh
Created August 11, 2024 19:34
Mac OSX BackBlaze Uninstall
#!/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
@0187773933
0187773933 / zoteroGUI.sh
Created August 11, 2024 19:00
Zotero - Start With Profile Selection - Mac OSX
#!/bin/bash
/Applications/Zotero.app/Contents/MacOS/zotero -P
@0187773933
0187773933 / YouTubeGetChannelsLatest100Videos.py
Created July 16, 2024 19:32
Gets YouTube Channels Latest Videos
#!/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"
@0187773933
0187773933 / VonageAPIWrapper.py
Last active July 17, 2024 14:02
Vonage Voice and SMS API
#!/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
@0187773933
0187773933 / GooglePlacesSearch.py
Created July 8, 2024 23:50
Google Places Search
import requests
from pprint import pprint
import json
import csv
import folium
import time
from folium.plugins import MarkerCluster
API_KEY = 'asdf'
@0187773933
0187773933 / FlightsOverhead.py
Created May 13, 2024 23:14
WIP Flights Overhead Trajectory Intersection Calculator
#!/usr/bin/env python3
from FlightRadar24 import FlightRadar24API
from flydenity import Parser as FlydenityParser
import airportsdata
from bs4 import BeautifulSoup
import requests
from pprint import pprint
import time
import math
import folium
@0187773933
0187773933 / GoogleMediaPipeLiveAudioClassification.py
Last active April 26, 2024 18:13
Runs Google Media Pipe Yamnet Audio Classification on Microphone Audio
import sounddevice as sd
import numpy as np
import tensorflow as tf
import queue
from collections import defaultdict , deque
import time
# https://storage.googleapis.com/mediapipe-models/audio_classifier/yamnet/float32/latest/yamnet.tflite
# https://github.com/tensorflow/models/blob/master/research/audioset/yamnet/yamnet.py
# https://research.google.com/audioset/ontology/index.html
@0187773933
0187773933 / GoogleMediaPipeAudioClassification.py
Last active April 25, 2024 23:57
Runs Google Media Pipe Yamnet Audio Classification on MP3 File
import numpy as np
from pprint import pprint
import librosa
import tensorflow as tf
# https://storage.googleapis.com/mediapipe-models/audio_classifier/yamnet/float32/latest/yamnet.tflite
# https://github.com/tensorflow/models/blob/master/research/audioset/yamnet/yamnet.py
# https://research.google.com/audioset/ontology/index.html
# https://storage.googleapis.com/mediapipe-tasks/audio_classifier/yamnet_label_list.txt
@0187773933
0187773933 / MiroExport.py
Created April 20, 2024 02:57
Downloads Miro Board Backup
#!/usr/bin/env python3
import sys
import time
import json
import requests
from pprint import pprint
import mimetypes
from tqdm import tqdm
from concurrent.futures import ThreadPoolExecutor
from box import Box
@0187773933
0187773933 / AudioWatcher.go
Created April 2, 2024 20:08
Watch Microphone Audio Stream DB Level
package main
import (
"fmt"
"math"
"github.com/gordonklaus/portaudio"
)
const sample_rate = 44100
const buffer_size = 64 // Number of samples per buffer