Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#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();

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:

### 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:
@rupertdev
rupertdev / match_macos_theme.py
Last active December 18, 2019 15:55
Iterm2 Python Script to match MacOS System Theme
#!/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