Skip to content

Instantly share code, notes, and snippets.

View in03's full-sized avatar
💭
Working on new projects!✨

Caleb Trevatt in03

💭
Working on new projects!✨
View GitHub Profile
@sallysmith1337
sallysmith1337 / speaker_beep.py
Created August 31, 2011 21:19
Speaker beeping fun in Python.
#!/usr/bin/env python
#
# Internal Speaker Beeping Module for Windows
#
import time
import winsound
###
# Notes Config
###
@btgoodwin
btgoodwin / fcpxml_parse
Last active December 29, 2024 17:24
Final Cut Pro X FCPXML Parser
#!/usr/bin/python
'''
Author: Thomas Goodwin
Company: Geon Technologies, LLC, 2014
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
@chenjianjx
chenjianjx / start-celery-for-dev.py
Created March 10, 2016 10:45
A python script which starts celery worker and auto reload it when any code change happens.
'''
A python script which starts celery worker and auto reload it when any code change happens.
I did this because Celery worker's "--autoreload" option seems not working for a lot of people.
'''
import time
from watchdog.observers import Observer ##pip install watchdog
from watchdog.events import PatternMatchingEventHandler
import psutil ##pip install psutil
import os
@akaleeroy
akaleeroy / _goto-opened-folders.md
Last active April 16, 2025 16:26
Easy Access to Currently Opened Folders

Easy Access to Currently Opened Folders

Windows Enhancement Productivity AutoHotkey v2

Enhance Open... or Save As... dialogs with a quick way to navigate to currently opened folders.

Easy Access to Currently Opened Folders v2 - Demo

This is an AutoHotkey v2 script that gives common file selection dialogs an extra feature: middle-clicking invokes a menu of currently opened folders. Say you want to save or upload something to/from a folder you've got open in Windows Explorer. The dialog box pops up with the last folder (from another project) or My Documents, and now you have to manually navigate to the folder you want, or copy-paste its path from the open Explorer window. I wanted to get to the active locations quicker. Recent Items wasn't exactly helping, so I made this by forking [FavoriteFolders.

@kuntalchandra
kuntalchandra / client.py
Last active March 11, 2021 12:21
Python socket programming: server-client design.
import socket
import sys
def main():
soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = "127.0.0.1"
port = 8888
try:
soc.connect((host, port))
@haircut
haircut / modify-system-preferences-authorizations.py
Last active January 31, 2025 03:05
Backs up authdb, then modifies them so users can modify Energy Saver, Network, Printers & Scanners, Date & Time, Time Machine
#!/usr/bin/python
'''
Modifies authorizations database to allow standard users to change select
system preferences.
A great guide to available authorization rights can be found at:
https://www.dssw.co.uk/reference/authorization-rights/index.html
USE AT YOUR OWN RISK
'''
@serjflint
serjflint / trio_lru_cache.py
Created July 31, 2020 18:00
This gist is 100% port of Python built-in function functools.lru_cache for trio
import threading
import weakref
from collections import namedtuple
from functools import update_wrapper
import trio
# Idea of using weakref, trio.Lock and thread-local storage is given by Nathaniel J. Smith <[email protected]>
@talkingmoose
talkingmoose / Jamf Pro Computer EraseDevice.zsh
Last active February 18, 2025 00:26
Use Jamf Pro Classic API to send EraseDevice command (Erase All Content and Settings on macOS Monterey and newer) to one or multiple computers by Jamf Pro ID. This script doesn't support computers locked using Device Lock with unique passcodes.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/d8dbdbc920cbaddd7d60f44f17bf268a
@talkingmoose
talkingmoose / Download and Install Jamf Connect.zsh
Last active January 19, 2025 21:34
Downloads and installs the latest available Jamf Connect software for Mac directly on the client. This avoids having to manually download and store an up-to-date installer on a distribution server every month.
#!/bin/zsh
:<<ABOUT_THIS_SCRIPT
-------------------------------------------------------------------------------
Written by:William Smith
Partner Program Manager
Jamf
[email protected]
https://gist.github.com/talkingmoose/94882adb69403a24794f6b84d4ae9de5
@vrtmrz
vrtmrz / deploy_couchdb_to_flyio_v2_with_swap.ipynb
Last active February 7, 2024 10:19
deploy_couchdb_to_flyio_v2_with_swap.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.