Skip to content

Instantly share code, notes, and snippets.

commit 38ac02d5fef47e2c66c31a548b90dcc41f6803c9
Author: James Mastros <james@mastros.biz>
Date: Sat Nov 20 11:00:22 2010 +0000
Skeletal Makefile.PL
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644
index 0000000..d5e697a
--- /dev/null
#!/usr/bin/perl
use warnings;
use strict;
use Data::ICal;
use Text::LevenshteinXS 'distance';
my $act_schedule = Data::ICal->new(filename => 'timetable.ics')
or die "Can't parse timetable.ics: $!";
my $target = "Things I learned from users";
diff --git a/op.c b/op.c
index 09b1bbc..c46730d 100644
--- a/op.c
+++ b/op.c
@@ -9517,8 +9517,23 @@ Perl_rpeep(pTHX_ register OP *o)
o->op_private |= o->op_next->op_private & (OPpLVAL_INTRO
| OPpOUR_INTRO);
o->op_next = o->op_next->op_next;
- o->op_type = OP_GVSV;
- o->op_ppaddr = PL_ppaddr[OP_GVSV];
@theorbtwo
theorbtwo / presentingperl.org permission slip.tt
Created July 13, 2011 18:25
presentingperl.org permission slip
Hello, [% username %],
First off, let me, a bunch of non-sentient hacked up perl scripts, thank you on behalf of the YAPC::NA::2011 attendees for speaking. You helped entertain / inform / etc the attendees, or at least the ones who weren't talking in the hall, asleep, or attending another talk. But you can do more, and it's easy this time. You may have noticed that your talks were being recorded. If you give us permission, we'll (OK, a different bunch of hacked up perl scripts, really) stick a video of your talk up on presentingperl.org. The license of the site is Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) -- http://creativecommons.org/licenses/by-nc-nd/3.0/ -- though let my overlords know if you want to release under a different license. They've been meaning to create a way to let speakers declare that they want to release under a different license, and would no doubt love a test case.
Anyway, let my owners know if you give your permission, or, contrarywise,
@theorbtwo
theorbtwo / gist:4403417
Created December 29, 2012 00:31
speedtouch 330 notes
23:28 <castaway> Speedtouch modem chipsx:
http://www.linkcommfg.com/u1/v1/w1/6_12_2009-3_45_00_AM-LAL0215-55P_SPEC.pdf
23:28 <castaway> ST20154TQC3
23:28 <castaway> HYNIX

Keybase proof

I hereby claim:

  • I am theorbtwo on github.
  • I am theorbtwo (https://keybase.io/theorbtwo) on keybase.
  • I have a public key whose fingerprint is 93AB 82D1 F9C5 356C BB6B 9B76 4EFC F596 0889 53E6

To claim this, I am signing this object:

@theorbtwo
theorbtwo / gist:ae81c9173e2327729726f491f8cee1bd
Created May 18, 2016 16:55
notes on toaster reflow oven thing
Thermocouple modules are based on MAX6675DS.
eBay: http://www.ebay.co.uk/itm/371409365985?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
Datasheet: https://cdn-shop.adafruit.com/datasheets/MAX6675.pdf
Vcc 3.0-5.5V. Accuracy better at 3.3. Serial levels depend on Vcc.
SPI-like interface. GND, VCC, SCK, CS, SO. To read, force CS low, input clock to SCK, module outputs 16 bits of data to SO.
D15 always low (sign bit).
D14-D3 are tempurature, in 1/4degC.
D2 low normal, high if thermocouple fail open.
D1 always low (device ID).
D0 left floating?
commit 6c0edea89a5e98ec929f1431861e3f1df1f81e77
Author: James Mastros <james@mastros.biz>
Date: Mon Sep 18 23:26:21 2017 +0000
In gdb_get_target_description_chunk, only allocate a buffer as large as needed at EOF.
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 483e551..8ebf0e7 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
  • Manual feed for small axial holes on lathe: https://www.youtube.com/watch?v=PqU5wS0J4MU

    • Tool steel?

    • Right part, fits in tailstock chuck of lathe

      • Natural dia of piece A.

      • Blind hole, 2 inches deep, A-10mm dia, fair bit of precision needed.

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.
Time: 2/5/20 12:58 PM
Description: Initializing game
java.lang.NullPointerException: Initializing game
at net.minecraft.client.renderer.color.BlockColors.func_186722_a(BlockColors.java:97) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
at com.davenonymous.bonsaitrees2.misc.PotColorizer.init(PotColorizer.java:33) ~[?:2.1.2.6] {re:classloading}
at net.minecraftforge.eventbus.ASMEventHandler_296_PotColorizer_init_Block.invoke(.dynamic) ~[?:?] {}