Skip to content

Instantly share code, notes, and snippets.

Michael Rupert rupertdev

Block or report user

Report or block rupertdev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rupertdev
rupertdev / match_macos_theme.py
Last active Dec 18, 2019
Iterm2 Python Script to match MacOS System Theme
View match_macos_theme.py
#!/usr/bin/env python3
# To Use: In iterm2, select Manage -> New Python Script, Basic script, daemon mode. Install python runtime if necessary and then paste in script, replace my themes with your chosen light and dark themes, save. In Scripts, uncheck and recheck your new script.
import asyncio
import iterm2
from subprocess import run
from time import sleep
View gist:2b6f06d9c5a317f69e24cee9328bd956
### Keybase proof
I hereby claim:
* I am rupertdev on github.
* I am michaelrupert (https://keybase.io/michaelrupert) on keybase.
* I have a public key ASCADM7sEXTPmQ0S8h0566vDlPSSExhMYQgCOMtOTXqmsQo
To claim this, I am signing this object:
View keybase.md

Keybase proof

I hereby claim:

  • I am michaelrupertdev on github.
  • I am rupertdev (https://keybase.io/rupertdev) on keybase.
  • I have a public key ASAheYDZYfwgTyN4wcQSJoP1f6zk8PBl0wzxptsttiw5Ngo

To claim this, I am signing this object:

View gist:c1f8bf1a481eb02fc8a0
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
int main(int argc, char * argv[])
{
pid_t child;
child = fork();
You can’t perform that action at this time.