Skip to content

Instantly share code, notes, and snippets.

View dmilith's full-sized avatar
🤓
Calculating infinity…

Daniel (dmilith) Dettlaff dmilith

🤓
Calculating infinity…
View GitHub Profile
# ifconfig rename3
rename3 Link encap:Ethernet HWaddr 00:XX:YY:ZZ:AA:BB
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:f7900000-f797ffff
⇒ cat /Users/dmilith/Library/LaunchAgents/Projects-Automount.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>Projects-Automount</string>
<key>ProgramArguments</key>
<array>
${GIT_BIN} remote add ${DEFAULT_REMOTE} "ssh://${APP_USER}@${APP_DOMAIN}:${DEPLOY_PORT}/Users/${APP_USER}/Repos/${APP_NAME}.git" > /dev/null 2>&1
clang: warning: argument unused during compilation: '-I /Users/dmilith/Apps/Bacula-client/include'
console.c:640:10: error: use of undeclared identifier 'rl_completion_suppress_append'
rl_completion_suppress_append=true;
^
console.c:683:7: error: use of undeclared identifier 'rl_catch_signals'
rl_catch_signals = 0;
^
console.c:850:13: error: use of undeclared identifier 'append_history'
ret = append_history(history_length, histfile);
^
@dmilith
dmilith / gist:47da36eb60e9d2f6bf8f
Created July 28, 2014 16:36
Sample of "hanged" Launchbar (after calling the preferences). I'm on 10.9.4, latest LB 6.0.2
Sampling process 663 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
2014-07-28 18:35:24.542 sample[83528:4423] Metadata.framework [Error]: couldn't get the client port
Analysis of sampling LaunchBar (pid 663) every 1 millisecond
Process: LaunchBar [663]
Path: /Applications/LaunchBar.app/Contents/MacOS/LaunchBar
Load Address: 0x10b162000
Identifier: at.obdev.LaunchBar
Version: 6.0.2 (6015)
Code Type: X86-64
frame #3: 0x00007fff8d34abb0 CarbonCore`register_with_server + 869
frame #4: 0x00007fff8d34a69c CarbonCore`FSEventStreamStart + 260
frame #5: 0x000000010023f5a8 QtCore`QFseventsFileSystemWatcherEngine::startStream() + 520
frame #6: 0x000000010023f336 QtCore`QFseventsFileSystemWatcherEngine::restartStream() + 70
frame #7: 0x00000001002414c9 QtCore`QFseventsFileSystemWatcherEngine::removePaths(QStringList const&, QStringList*, QStringList*) + 1817
frame #8: 0x000000010040f3ba QtCore`QFileSystemWatcher::removePaths(QStringList const&) + 634
frame #9: 0x000000010040f0a9 QtCore`QFileSystemWatcher::removePath(QString const&) + 73
frame #10: 0x000000010000f212 svdpanel`unregisterFile + 146 at file_events_manager.cc:27
frame #11: 0x0000000100043453 svdpanel`releaseUpdate + 35 at tail.cc:27
frame #12: 0x0000000100040b98 svdpanel`refresh + 1176 at panel_service.cc:70
Process: Airmail [2949]
Path: /Applications/Airmail.app/Contents/MacOS/Airmail
Identifier: it.bloop.airmail
Version: 1.4 (247)
App Item ID: 573171375
App External ID: 546902650
Code Type: X86-64 (Native)
Parent Process: launchd [154]
Responsible: Airmail [2949]
User ID: 501
Process: Tower [12879]
Path: /Applications/Tower 2.app/Contents/MacOS/Tower
Identifier: com.fournova.Tower2
Version: 2.0.4 (243)
Code Type: X86-64 (Native)
Parent Process: launchd [154]
Responsible: Tower [12879]
User ID: 501
Date/Time: 2014-08-21 12:52:41.980 +0200
@dmilith
dmilith / gist:1ce43827fc88a41739dc
Created October 24, 2014 11:41
That's why I wrote Sofin
root@fbsd93:~ # pkg install vim
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 968 B 1.0k/s 00:01
Fetching digests.txz: 100% 2 MB 1.0M/s 00:02
Fetching packagesite.txz: 100% 5 MB 1.1M/s 00:05
Processing new repository entries: 100%
FreeBSD repository update completed. 23579 packages processed:
0 updated, 0 removed and 23579 added.
Updating database digests format: 100%
The following 79 packages will be affected (of 0 checked):