Skip to content

Instantly share code, notes, and snippets.

View fujin's full-sized avatar

AJ Christensen fujin

  • Rotorua, New Zealand
View GitHub Profile
@fujin
fujin / watch-unix-socket.stp
Created October 17, 2024 07:43 — forked from robbmanes/watch-unix-socket.stp
Systemtap script to watch UNIX socket input
/*
* watch_unix_socket.stp
*
* This is a simply more modern version of the script found here:
* https://sourceware.org/systemtap/wiki/WSunixSockets
*
* The first argument is the location of the file descriptor for a UNIX socket.
* To find this address, for example, for the Docker socket run:
*
* # lsof 2>&1 | awk '/docker.sock/ {print $7}' | grep -v '0t0' | sort -u

Game Version 1.4.0.3

Multipliers: love(0.9), like(0.95), dislike(1.05), hate(1.1)

Only Santa Claus has loved/hated biomes. All the others either like/dislike biomes.

preferred disliked npc type relationships

[Desert | Snow ] ArmsDealer : loves Nurse, likes Steampunker, dislikes Golfer, hates Demolitionist [Desert | Forest ] DyeTrader : likes ArmsDealer, likes Painter, dislikes Steampunker, hates Pirate

@fujin
fujin / boost.rb
Created June 10, 2019 22:50
boost 1.64.0 formula
class Boost < Formula
desc "Collection of portable C++ source libraries"
homepage "https://www.boost.org/"
revision 1
head "https://github.com/boostorg/boost.git"
stable do
url "https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2"
sha256 "7bcc5caace97baa948931d712ea5f37038dbb1c5d89b43ad4def4ed7cb683332"
@fujin
fujin / brew.sh
Last active July 22, 2019 08:38
PrusaSlicer build steps (macOS - 11/06/2019)
#!/usr/bin/env bash
# For `nproc`
brew install coreutils
# this is 2019_U6, but the cmake script doesn't find it - specify TBB_LIBRARIES_RELEASE as an arg to cmake, with `-D`
brew install tbb
# The BOOST_REQUIRED_VERSION in PrusaSlicer is 1.64, but that is quite old,
# and has been removed from the homebrew-core formula repo.
Changes from Release Candidate 6:
Fixes:
fixed potential problem when in crash flip mode with bidirectional Dshot enabled (#7929);
added missing help text for CLI vtx command (#7934);
fixed bug with altitude warning when disabled (#7937);
fixed problem on F446 boards (#7942).
Target Updates:
added target RUSHCORE7 to 4.0 (#7930);
added target FF_RACEPIT to 4.0 (#7931);
add target KAKUTEF7MINI to 4.0 (#7932);
@fujin
fujin / fujin-tinyhawk.txt
Created February 13, 2019 20:59
TinyHawk tune on 4.0.0 (pre D_MIN)
# diff all
# version
# Betaflight / MATEKF411 (MK41) 4.0.0 Jan 17 2019 / 18:00:23 (9e4d11e19) MSP API: 1.41
board_name MATEKF411
manufacturer_id
mcu_id 0071003b3437510335313736
signature
M220 S100 ; Feed rate (speed) 100%
M221 S100 ; Flow (extrusion modifier) 100%
M83 ; extruder relative mode
M140 S[first_layer_bed_temperature] ; set bed temp
M109 S160 ; Set extruder temp before bed level
M190 S[first_layer_bed_temperature] ; wait for bed temp
; Klipper PINDA Probe warming sequence
[bed_mesh]
speed: 100
min_point: 11,1
max_point: 215,193
probe_count: 7,7
mesh_pps: 2,2
algorithm: bicubic
Recv: // probe at 147.000,1.000 is z=0.407500
Recv: // Failed to home probe: Timeout during endstop homing
Recv: // Make sure to home the printer before probing. If the probe
Recv: // did not move far enough to trigger, then consider reducing
Recv: // the Z axis minimum position so the probe can travel further
Recv: // (the Z minimum position can be negative).
Recv: !! Failed to home probe: Timeout during endstop homing
Changing monitoring state from "Printing" to "Cancelling"
Send: N20 M108*24
Send: N21 M84*44
@fujin
fujin / fujin_petg_bigboy.ini
Created January 9, 2019 03:24
fujin 0.45mm layer 0.6mm nozzle Slic3rPE / Klipper profiles (eSun PETG, Sainsmart TPU)
# generated by Slic3r Prusa Edition 1.41.2+win64 on 2019-01-09 at 16:23:04
avoid_crossing_perimeters = 0
bed_shape = 0x0,250x0,250x210,0x210
bed_temperature = 80
before_layer_gcode = ;BEFORE_LAYER_CHANGE\n\n\n\n\n
between_objects_gcode =
bottom_solid_layers = 4
bridge_acceleration = 1500
bridge_angle = 0
bridge_fan_speed = 70