Skip to content

Instantly share code, notes, and snippets.

empireshades /
Last active March 5, 2024 17:12
A Sister's Eulogy for Steve Jobs

Opinion, The New York Times

Op-Ed Contributor

A Sister’s Eulogy for Steve Jobs

By Mona Simpson

Oct. 30, 2011

I grew up as an only child, with a single mother. Because we were poor and because I knew my father had emigrated from Syria, I imagined he looked like Omar Sharif. I hoped he would be rich and kind and would come into our lives (and our not yet furnished apartment) and help us. Later, after I’d met my father, I tried to believe he’d changed his number and left no forwarding address because he was an idealistic revolutionary, plotting a new world for the Arab people.

empireshades / winsanitize.ps1
Last active December 3, 2022 22:23
windows sanitize
# Remove Cortana
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\' -Name 'Windows Search' | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search' -Name 'AllowCortana' -PropertyType DWORD -Value '0' | Out-Null
get-appxpackage *BingWeather* | remove-appxpackage
get-appxpackage *Xbox* | remove-appxpackage
get-appxpackage *Messaging* | remove-appxpackage
get-appxpackage *OneNote* | remove-appxpackage
get-appxpackage *People* | remove-appxpackage
get-appxpackage *Photos* | remove-appxpackage
empireshades / print_unicode_chars
Created October 8, 2021 13:18
Loop to preview unicode chars
for i in range(1200,2900):
print((b'\\u%d' % i).decode('raw_unicode_escape'),end='')
// grey dots colored dot p5.js
let canvasedge = 600;
// how much to increment each for loop by
let inc = 30;
let ra_x = 0;
let ra_y = 0;
let lastX=0;
empireshades /
Last active September 2, 2021 01:52
Block access to google for younger kid when logged in on mac but make sure it works for everyone else. Run on root's crontab every minute and make sure common_hosts contains what you want as baseline hosts file.
cd "${0%/*}"
# Check which user is logged in
user=$(stat -f '%Su' /dev/console)
# Check if hosts file contains 'google'
if $(grep -q google /etc/hosts);then
empireshades /
Last active August 25, 2021 13:40 — forked from lcarsos/
Repeatedly kill sentinelone so you can actually use the processor and ram on your mac
#!/usr/bin/env bash
# Usage: sudo ./
#ps aux | grep sentinel | awk -F " +" '{print $2}' | xargs kill
while true; do
launchctl kill SIGKILL system/com.sentinelone.sentineld
launchctl kill SIGKILL system/com.sentinelone.sentineld-helper
launchctl kill SIGKILL system/com.sentinelone.sentineld-guard
launchctl kill SIGKILL system/com.sentinelone.sentineld-updater
empireshades /
Created November 7, 2020 00:56 — forked from vireshas/
Split WAV files at silence
#!/usr/bin/env python
from import wavfile
import os
import numpy as np
import argparse
from tqdm import tqdm
# Utility functions
empireshades / my_podcasts.opml
Last active September 3, 2019 13:27
my podcast and rss feeds
<?xml version="1.0"?>
<opml version="1.0"><head><title>Overcast Podcast Subscriptions</title></head><body><outline type="rss" text="IRE Radio Podcast" title="IRE Radio Podcast" xmlUrl="" htmlUrl=""/><outline type="rss" text="O'Reilly Data Show - O'Reilly Media Podcast" title="O'Reilly Data Show - O'Reilly Media Podcast" xmlUrl="" htmlUrl=""/><outline type="rss" text="Korea and the World" title="Korea and the World" xmlUrl="" htmlUrl=""/><outline type="rss" text="Tumble Science Podcast for Kids" title="Tumble Science Podcast for Kids" xmlUrl="" htmlUrl=""/><outline type="rss" text="China Tech Talk" title="China Tech Talk" xmlUrl="" htmlUrl=""/><outline type="rss" text="Radiolab"
float x, y, z;
void setup() {
size(800, 800, P3D);
// setup translate amounts to center screen
x = width / 2;
y = height / 2;
// gonna have the z-axis 'pulsate' as per the last line (sin)
# CIS Controls
## Basic CIS Controls
1. Inventory and Control of Hardware Assets
2. Inventory and Control of Software Assets
3. Continuous Vulnerability Management
4. Controlled Use of Administrative Privileges
5. Secure Configuration for Hardware and Software on Mobile Devices, Laptops, Workstations and Servers