Skip to content

Instantly share code, notes, and snippets.

@warewolf
warewolf / patch-396acde73d84bf6b428f549b378c9be472aa7906.diff
Created October 4, 2022 15:17
rmview hack from commit 396acde73d84bf6b428f549b378c9be472aa7906
diff --git a/src/rmview/connection.py b/src/rmview/connection.py
index 7c92473..3fa8ddc 100644
--- a/src/rmview/connection.py
+++ b/src/rmview/connection.py
@@ -174,16 +174,22 @@ class rMConnect(QRunnable):
return
try:
log.info('Connecting...') # pkey=key,
- self.client.connect(self.address, **self.options)
+ # self.client.connect(self.address, **self.options)
@warewolf
warewolf / remarkable.pl
Last active March 10, 2022 23:48
PDF/EPUB from email to remarkable cloud
#!/usr/bin/perl
use strict;
use warnings;
use MIME::Parser;
use Data::Dumper;
use List::Util qw(first);
$ENV{RMAPI_HOST}='https://rmfakecloud.example.com/';
@warewolf
warewolf / menu.ipxe
Created December 22, 2021 00:26
append to args with "set args ${args} newstuffhere"
#!ipxe
# menu-url, boot-url and sanboot-url is set in bootstrap.ipxe
# Setup some basic convenience variables
isset ${menu-timeout} || set menu-timeout 5000
isset ${submenu-timeout} || set submenu-timeout ${menu-timeout}
set base-iqn iqn.2012-12.com.xabean.sandbox
set base-iscsi iscsi:${iscsi-server}:::1:${base-iqn}
@warewolf
warewolf / woodworking_youtube.txt
Created May 26, 2021 02:30
Woodworking youtube channels to follow
https://www.youtube.com/channel/UC39z4_U8Kls0llAij3RRZAQ
https://www.youtube.com/channel/UCQ_bmgSrYsQS0LboA_tZpEw
https://www.youtube.com/channel/UC47EhkMV18WlRqV3VhUH3yg
https://www.youtube.com/channel/UCaJsEh2_YxWHMcjASs4cJcA
https://www.youtube.com/channel/UCjA8vRlL1c7BDixQRJ39-LQ
https://www.youtube.com/channel/UCOUFSlpGiL9I3jPbt0vcI0A
https://www.youtube.com/channel/UCXBNF-A7QlYT3tT-B9N4ElA
https://www.youtube.com/channel/UCm8CRHDTfYNd1MemitETdbA
https://www.youtube.com/channel/UCxWzA3ZlYEOLr1JkKH0ZMyg
https://www.youtube.com/channel/UCNyGbxoEo6CQvaRVEvItxkA
@warewolf
warewolf / domainsort.pl
Created May 3, 2020 21:41
sort human-wise by domain names
#!/usr/bin/perl
$,="\n";
print sort byd map{chomp;$_}<>;
print "\n";
#sub byd($$){my ($a,$b)=map{lc join(".",reverse split m/\./,$_)}@_[0,1];$a cmp $b;}
sub byd($$) {
my ($a,$b) = @_[0,1];
my ($da) = ($a =~ m/,?([^,]+)$/); my ($db) = ($b =~ m/,?([^,]+)$/);
#my ($da) = ($a =~ m/https?:\/\/([^\/]+)/); my ($db) = ($b =~ m/https?:\/\/([^\/]+)/);
Generating story...
You are Xabean, a wizard living in the kingdom of Larion. You have a staff and
a spellbook. You finish your long journey and finally arrive at the ruin you've
been looking for. You look around and see that it's not much different than
when you left it. The walls are made of stone and there is a door leading to
another room
> open hidden doorway
@warewolf
warewolf / extensions.conf
Created July 12, 2019 18:25
fax interception asterisk
; set dahdi-channels.conf's fax line to use this context
[fax-intercept]
include => from-internal
; expects "immediate=yes" on dahdi line
exten => s,1,Answer()
; emulate dialtone while reading the number being dialed
same => n,ReadExten(FAXOUT,dial,${CONTEXT},i,30)
same => n,Verbose(10,Dialing fax to ${FAXOUT})
same => n,Ringing()
; It takes ~ 4 seconds to dial a 10 digit number from the fax
@warewolf
warewolf / mask_rom_bootstrap.txt
Created May 5, 2019 23:18
Western Digital JTAG firmware dumps, 0x1000 bytes at 0xFFFF0000 (reset vector)
$ find . -type f -ls -exec sha1sum {} \;
134573 64 -rw-r--r-- 1 warewolf warewolf 65536 May 4 03:44 ./wd800jd-75msa3_2060-701335-005/0xFFFF0000.bin
e7828cc2d5104b38f97c6606af7c79dc022f0073 ./wd800jd-75msa3_2060-701335-005/0xFFFF0000.bin
134614 64 -rw-r--r-- 1 warewolf warewolf 65536 May 5 23:47 ./wd10earx-32n0yb0_2060-771698-004/0xFFFF0000.bin
734de39b996cc95a22b0884573fc1b6fb823f9b7 ./wd10earx-32n0yb0_2060-771698-004/0xFFFF0000.bin
134080 64 -rw-r--r-- 1 warewolf warewolf 65536 May 5 23:39 ./wd20ears-00mvwb0_2060-771698-002/0xFFFF0000.bin
734de39b996cc95a22b0884573fc1b6fb823f9b7 ./wd20ears-00mvwb0_2060-771698-002/0xFFFF0000.bin
134613 64 -rw-r--r-- 1 warewolf warewolf 65536 May 5 23:37 ./wd10eacs-00d6b1_2060-701590-000/0xFFFF0000.bin
6f937a263dbb417f5ad2da890661aed6e8f7a9b7 ./wd10eacs-00d6b1_2060-701590-000/0xFFFF0000.bin
131095 64 -rw-r--r-- 1 warewolf warewolf 65536 May 5 18:22 ./wd3200aajb-00wga0_2060-701494-001/0xFFFF0000.bin
@warewolf
warewolf / pizza.md
Created March 5, 2019 12:58
Pizza dough

Richard's Pizza dough recipe by weight.

5 servings 1 serving ingredient
500g 100g white flour
325g 65g 110f water
10g 2g salt
7g 1.4g dry active yeast
5g 1g sugar
@warewolf
warewolf / stuffed_cabbage.md
Last active March 2, 2019 15:34
Harman family stuffed cabbage rolls

STUFFED CABBAGE ROLLS

  • 1 large head green cabbage (about 4lbs)
  • 1 large onion, finely chopped
  • ½ onion, sliced (reserve for top)
  • 2 tbsp oil for chopped onions
  • 2 tbsp oil for sliced onions
  • 1 ½ lbs ground beef
  • ½ lb ground pork
  • 1 ½ cup rice, cooked (3/4c raw – Mom always said use ½ cup raw rice for each pound of meat)