Skip to content

Instantly share code, notes, and snippets.

Avatar

Viktor Hedefalk hedefalk

View GitHub Profile
View gist:d4af375a95a2302c99b3f9ba6cbe3609
Install native client:
brew tap amar1729/formulae
arch -arm64 brew install browserpass
Setup browser - look at output, in my case:
PREFIX='/opt/homebrew/opt/browserpass' make hosts-chrome-user -f '/opt/homebrew/opt/browserpass/lib/browserpass/Makefile'
Run the host app:
View Software M1.md
View gist:d4e806fea065d2b3e6b9cdf381c46220
Sleep Wake failure in EFI
Failure code:: 0xffffffff 0x0000001f
Please IGNORE the below stackshot
================================================================
Date/Time: 2020-11-27 10:22:20 +0100
OS Version: ??? ??? (Build ???)
Architecture: x86_64
View kitty default
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family monospace
# bold_font auto
@hedefalk
hedefalk / gist:05796ad1d5541bb2a2198b3244071ce6
Created Sep 25, 2020
docker history --no-trunc jitesoft/tesseract-ocr > tesseract-layers
@hedefalk
hedefalk / 0.5.7
Last active Apr 28, 2020
sleep on hackintosh - turns psu relay back on after a couple of seconds
View 0.5.7
2020-04-28 16:43:12 +0200 Notification Display is turned off
2020-04-28 16:43:12 +0200 Assertions PID 159(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle serviceID:1000004bd name:AppleUserHIDEventSe product:USB Receiver eventType:17" 00:00:00 id:0x0x900008161 [System: DeclUser BGTask IntPrevDisp kDisp]
2020-04-28 16:43:12 +0200 Assertions PID 300(mds_stores) Summary BackgroundTask "com.apple.metadata.mds_stores.power" 00:00:00 id:0x0xb000082c6 [System: DeclUser BGTask IntPrevDisp kDisp]
2020-04-28 16:43:12 +0200 Assertions PID 114(powerd) Summary InternalPreventDisplaySleep "com.apple.powermanagement.delayDisplayOff" 00:03:08 id:0x0x1000008001 [System: DeclUser BGTask IntPrevDisp kDisp]
2020-04-28 16:43:12 +0200 Assertions Kernel Idle sleep preventers: -None-
2020-04-28 16:43:12 +0200 Assertions [System: DeclUser BGTask IntPrevDisp kDisp]
2020-04-28 16:43:12 +0200 Assertions PID 114(powerd) Created InternalPreventSleep
View gist:5b428772f7deefc906a194f297371e9e
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
@hedefalk
hedefalk / gist:bf96685098a8cb7d964625c79fa4d421
Created Mar 29, 2019
hit refresh on attestation report page
View gist:bf96685098a8cb7d964625c79fa4d421
2019-03-29 07:39:53.004 QUERY [user.sessions] : {"status": {"$ne": "done"}, "last": {"$lt": ISODate("2019-03-29T07:27:53.000Z")}}. 0 returned.
2019-03-29 07:39:53.004 QUERY [main.presence] : {"ts": {"$lt": ISODate("2019-03-29T07:34:53.001Z")}}. 0 returned.
2019-03-29 07:39:53.006 QUERY [main.reminder_dues] : {"isSent": false, "due": {"$lte": ISODate("2019-03-29T07:44:53.001Z")}}. 0 returned.
2019-03-29 07:39:54.970 QUERY [user.extsessions] : {"_id": UUID("8a47393c-e444-7d38-33c0-a2836555e893")}. 1 returned.
2019-03-29 07:39:54.973 UPDATE [sessions] : {"_id": "node01xgokhdkztnp377n8pg9ukty30"}, {"$set": {"status": "active", "last": ISODate("2019-03-29T07:39:54.967Z")}}. 1 updated.
2019-03-29 07:39:55.002 QUERY [user.users] : {"_id": ObjectId("5c1b7e0f06026f305f1d7d56")}. 1 returned.
2019-03-29 07:39:55.006 QUERY [main.companies] : {"_id": ObjectId("51e96f2284ae91c8800365d4")}. 1 returned.
2019-03-29 07:39:55.011 QUERY [main.notifications] : {"ar": {"$ne": true}, "u": ObjectId("5c
View gist:ac6a21aab8b775b3681563b792d53c5a
Need autopoint which is part of gettext:
brew install gettext
Keg only so need to have the path:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.zshrc
Unfortunatly libtool and libtoolize are prefixed with g on homebrew? So edited autoconf.sh accordingly,