Skip to content

Instantly share code, notes, and snippets.

View ahmedmusaad's full-sized avatar

Ahmed Musaad ahmedmusaad

View GitHub Profile
@ansemjo
ansemjo / mozilla-send.yml
Last active November 15, 2021 06:34
simple docker compose to self-host the firefox send experiment
# add this to a crontab to tidy up expired uploads:
# 0 * * * * find /var/lib/send/ -type f -mmin +1450 -exec rm {} \;
version: "3"
services:
web:
# repository: https://gitlab.com/timvisee/send
image: registry.gitlab.com/timvisee/send:latest
restart: unless-stopped
#!/usr/bin/python
# Credit to frogor for the objc
from Foundation import NSBundle
import json
import objc
import os
import plistlib
import subprocess

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@loderunner
loderunner / 01-mac-profiling.md
Last active June 8, 2024 09:44
Profiling an application in Mac OS X

Profiling an application in Mac OS X

Finding which process to profile

If your system is running slowly, perhaps a process is using too much CPU time and won't let other processes run smoothly. To find out which processes are taking up a lot of CPU time, you can use Apple's Activity Monitor.

The CPU pane shows how processes are affecting CPU (processor) activity: