Skip to content

Instantly share code, notes, and snippets.

View nomicode's full-sized avatar
💭
🐸

Naomi Rose nomicode

💭
🐸
View GitHub Profile
@nomicode
nomicode / setdate.py
Last active April 17, 2023 15:16
setdate
#!/usr/bin/env python3
def main():
pass
if __name__ == "__main__":
main()
@nomicode
nomicode / keybase.md
Created November 8, 2022 17:51
Keybase

Keybase proof

I hereby claim:

  • I am nomirose on github.
  • I am nomirose (https://keybase.io/nomirose) on keybase.
  • I have a public key ASDXHQwTX6CwxbN43nQH12_e-FXBGMzypjnJyrcPO6cAUAo

To claim this, I am signing this object:

@nomicode
nomicode / cpulimit.py
Created June 26, 2022 16:47 — forked from anonymous/cpulimit.py
reduce the cpu time of a process by pausing and resuming it repeatedly
#!/usr/bin/env python
import time, os, sys, signal
sleeptime = waketime = 0.01
def send(signal, pids):
for pid in pids:
os.kill(pid, signal)
@nomicode
nomicode / process.py
Created December 27, 2021 05:17
Paste a screenshot on top of a template image to produce an output image with a drop shadow
#!/usr/bin/env python3
# This script pastes the input image on top of the template image and writes out
# a new file. The reference template image includes a drop shadow.
#
# To get this script working on macOS, install the following dependencies:
#
# $ brew install pngquant
# $ python3 -m pip install Pillow pngquant
#
@nomicode
nomicode / export_chat.py
Last active October 31, 2018 19:06
Export chat logs from Messages.app
#!/usr/bin/env python
import sys
import urllib
import urlparse
import base64
import mimetypes
import cgi
from os import path