Skip to content

Instantly share code, notes, and snippets.

View hedefalk's full-sized avatar

Viktor Hedefalk hedefalk

View GitHub Profile
[
{
"name": "Lily58"
},
[
{
"x": 3,
"a": 7
},
"",
This file has been truncated, but you can view the full file.
Date/Time: 2023-04-14 20:28:42.493 +0200
End time: 2023-04-15 18:26:59.828 +0200
OS Version: macOS 13.1 (Build 22C65)
Architecture: x86_64h
Report Version: 40
Incident Identifier: FBF0EDC7-A7FE-4418-BFB6-E4C3AAD9AA4D
Data Source: Stackshots
Shared Cache: EA7F9772-219E-3ECE-A4D9-20AEEE3BC80F slid base address 0x7ff809f34000, slide 0x9f34000 (System Primary)
Shared Cache: 73F7D64A-0E58-33BB-B79D-9CD6E9461CAE slid base address 0x7ff80b5ee000, slide 0xb5ee000 (DriverKit)
@hedefalk
hedefalk / io.ts
Created December 15, 2021 17:03 — forked from thoradam/io.ts
Pure TypeScript
// Did you know JavaScript has pure functions*?
// *: just add asterisks!
/**
* Describes a computation that requires `E` to produce an `A`. Has to be run
* to do anything.
*
* We could also do something like:
* `type Async<E,A> = Generator<void,Promise<A>,E>`
*/
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:
@hedefalk
hedefalk / gist:d4e806fea065d2b3e6b9cdf381c46220
Created November 27, 2020 09:24
sleep wake issue Hackintosh
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
# 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 September 25, 2020 07:32
docker history --no-trunc jitesoft/tesseract-ocr > tesseract-layers
IMAGE CREATED CREATED BY
@hedefalk
hedefalk / 0.5.7
Last active April 28, 2020 15:56
sleep on hackintosh - turns psu relay back on after a couple of seconds
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