Skip to content

Instantly share code, notes, and snippets.

@amoe
amoe / fmpdump2.log
Created February 8, 2021 08:56
fmpdump with partial results
== 7732 -> [ BLOCK 7733 ] -> 7734 ==
[ Len: 4076 ]
-- PUSH 0x20 [ 0x04 ] --
-- PUSH 0x20 [ 0x05 ] --
-- PUSH 0x20 [ 0x43 ] --
-- PUSH 0x20 [ 0x0A ] --
[4].[5].[67].[10].
-- field (0x1E): "[fZ>Yc" => "ZYXÉPZZZ[" --
-- field (0x1E): "[f[Û[¾" => "ZYXÏâZZZ[" --
-- field (0x1E): "[f^U[²" => "ZYXÏçZZZ[" --
@amoe
amoe / linode-support.diff
Created September 2, 2021 07:13
Linode support for ddclient (updated for Debian bullseye package 3.9.1-7)
--- a/ddclient
+++ b/ddclient
@@ -764,6 +764,16 @@
$variables{'service-common-defaults'},
),
},
+ 'linode' => {
+ 'updateable' => undef,
+ 'update' => \&nic_linode_update,
+ 'examples' => \&nic_linode_examples,
@amoe
amoe / figshare_categories.out
Created June 13, 2023 07:06
Figshare categories (2023-06-13)
23818 Agricultural biotechnology diagnostics (incl. biosensors)
23821 Agricultural marine biotechnology
23824 Agricultural molecular engineering of nucleic acids and proteins
23827 Genetically modified animals
23830 Genetically modified field crops and pasture
23833 Genetically modified horticulture plants
23836 Genetically modified trees
23839 Livestock cloning
23842 Non-genetically modified uses of biotechnology
23845 Transgenesis
@amoe
amoe / preventsleep.c
Created March 15, 2024 13:27
Prevent sleep on Mac
#import <IOKit/pwr_mgt/IOPMLib.h>
// build with:
// clang -framework IOKit -framework Foundation preventsleep.c -o preventsleep
int main(int argc, char** argv) {
// kIOPMAssertionTypeNoDisplaySleep prevents display sleep,
// kIOPMAssertionTypeNoIdleSleep prevents idle sleep
// reasonForActivity is a descriptive string used by the system whenever it needs