Skip to content

Instantly share code, notes, and snippets.

View thedaniel's full-sized avatar

Daniel Hengeveld thedaniel

View GitHub Profile
@thedaniel
thedaniel / chattim.md
Created April 8, 2024 19:30
chatgpt can do tim

Explain at length why it's wrong to ask experienced engineers abstract computer science questions in a job interview, in the verbose and melodramatic style of Sephiroth from Final Fantasy VII

Ah, mere mortals, heed my words as I, Sephiroth, the harbinger of truth and wisdom, descend upon this realm to elucidate the folly of your ways. As I cast my gaze upon the realm of job interviews for experienced engineers, I am appalled by the audacity of those who dare to wield abstract computer science questions as their weapon of choice. Do they not realize the gravity of their actions? The sheer disrespect they show towards the craft and expertise of seasoned engineers?

Abstract computer science questions, like flimsy strands of cobweb in the face of my Masamune, fail to capture the essence of what it truly means to be an experienced engineer. They reduce the intricate tapestry of knowledge, experience, and problem-solving prowess that we possess into a mere puzzle, a trifling riddle to be solved under the scru

@thedaniel
thedaniel / # ecasound - 2020-11-28_12-41-13.txt
Created November 28, 2020 11:41
ecasound on macOS 10.15.6 - Homebrew build logs
Homebrew build logs for ecasound on macOS 10.15.6
Build date: 2020-11-28 12:41:13
@thedaniel
thedaniel / # ecasound - 2020-11-28_01-53-39.txt
Created November 28, 2020 11:35
ecasound on macOS 10.15.6 - Homebrew build logs
Homebrew build logs for ecasound on macOS 10.15.6
Build date: 2020-11-28 01:53:39
@thedaniel
thedaniel / i-showed-you-my-code-please-respond.py
Created February 10, 2020 16:26
Show all the issue and PR comments where you're the last one to comment so you can hunt people down
# python i-showed-you-my-code-please-respond.py <org name> <auth token>
import csv
import sys
from operator import attrgetter
# pip install PyGithub
from github import Github
hub = Github(sys.argv[2])
@thedaniel
thedaniel / readme.md
Last active December 7, 2018 10:44
Easy support bundles on OS X

If your desktop app writes to syslog on a Mac (e.g. with python's syslog module or similar) with a unique string you can grep for (in the python example, set as a param to syslog.openlog and shown below as my-custom-log-ident), and you are in some kind of locked-down corporate environment that makes real app analytics difficult or impossible, or you just want a 5 minute solution, try this:

Make a folder called something like MySupport.app. Put a single executable file in this folder with the same name, e.g. MySupport - this will make the folder appear as a normal OSX app, double-clickable and all. Then put some super simple bash in that file:

### Keybase proof
I hereby claim:
* I am thedaniel on github.
* I am thedaniel (https://keybase.io/thedaniel) on keybase.
* I have a public key whose fingerprint is 9EF7 40F5 65BA 3354 0BC0 89C6 D2DB 234A 180A 4D2F
To claim this, I am signing this object:
#!/bin/bash
########################################################################
# Matthew's Git Bash Prompt
########################################################################
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
Process: iTunes [52549]
Path: /Applications/iTunes.app/Contents/MacOS/iTunes
Identifier: com.apple.iTunes
Version: 10.5.1 (10.5.1)
Build Info: iTunes-10514201~1
Code Type: X86-64 (Native)
Parent Process: launchd [212]
Date/Time: 2011-11-22 10:42:31.019 -0500
OS Version: Mac OS X 10.7.2 (11C74)
@thedaniel
thedaniel / gist:1721166
Created February 2, 2012 03:07
capability client.js
$(function(){
var Spire = require('./spire.io.js');
var Subscription = require('./spire/api/subscription');
var spire = new Spire();
$.get('/discover', function(data){
var spireSubscription;
var spireChannel;
spire.subscriptionFromUrlAndCapability(data.subscription, function(err, subscription) {
if (err){
@thedaniel
thedaniel / gist:1721128
Created February 2, 2012 02:58
doit.js
var doit = function(){
if (clientPublishableChannelData && clientSubscriptionData){
console.log('discovery success! starting server...');
app.listen(3000);
} else {
console.log('waiting for discovery...');
setTimeout(doit, 500);
}
}