Skip to content

Instantly share code, notes, and snippets.

View josteinaj's full-sized avatar

Jostein Austvik Jacobsen josteinaj

View GitHub Profile
@josteinaj
josteinaj / ZMorph_PrusaSlicer_config_bundle.ini
Created April 12, 2020 18:42
Basic configuration of a ZMorph 3D-printer with a 0.3mm nozzle
# generated by PrusaSlicer 2.2.0+win64 on 2020-04-12 at 18:27:04 UTC
[print:ZMorph VX]
avoid_crossing_perimeters = 0
bottom_fill_pattern = rectilinear
bottom_solid_layers = 3
bottom_solid_min_thickness = 0
bridge_acceleration = 0
bridge_angle = 0
bridge_flow_ratio = 1

Useful books for testing

språk / language : norsk / english

  • Short full-text full-audio book useful for most basic tests
    • Book ID: 215433
    • Title: Three ethical dilemmas
    • Duration: 3:04:40
  • Contents: 3 images, 77 tables, 5 footnotes, 26 sidebars, 104 pagebreaks

Gode bøker for testing

språk / language : norsk / english

  • Kort fulltekstbok som egner seg for det meste av testing
    • Boknummer: 215433
    • EPUB-boknummer: 552233
    • Tittel: Three ethical dilemmas
  • Varighet: 3:04:40
@josteinaj
josteinaj / sonos.sh
Last active July 22, 2018 18:16
Wrapper for the ["socos" Sonos CLI](https://github.com/soco/socos) for using speaker names instead of IPs
#!/bin/bash
SOCOS="/home/pi/.local/bin/socos"
NAME="$1"
shift
COMMAND="$1"
shift
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josteinaj
josteinaj / keybase.md
Created November 23, 2016 17:27
Keybase proof

Keybase proof

I hereby claim:

  • I am josteinaj on github.
  • I am josteinaj (https://keybase.io/josteinaj) on keybase.
  • I have a public key ASAajMK_QJwt_IgObzJUWnM534QmpDWi-yBhBxaRSZ5Sogo

To claim this, I am signing this object:

#!/bin/bash
set -x
# make a copy with correct permissions - engine runs as user "pipeline2"
cp /mnt/input /tmp/input -r
chown pipeline2:pipeline2 -R /tmp/input
INPUT_DIR="/tmp/input"
OUTPUT_DIR="/mnt/output"
window.setInterval(function(){
var paths = $("#scatter-chart > svg > g > g > g.nv-scatterWrap.nvd3-svg > g > g:nth-child(2) > g.nv-groups > g").children();
var x = [];
var y = [];
var mean_x = 0;
var mean_y = 0;
var ab = 0;
var a2 = 0;
var b2 = 0;
for (var p = 0; p < paths.length; p++) {
@josteinaj
josteinaj / Debugging XProc.md
Last active February 24, 2017 10:26
An example of how I debugged XProc

Debugging XProc

Debugging XProc is mostly a process of elimination, sometimes with hints from the error messages. Here follows an example of debugging XProc with oXygen. The process is similar for other editors. The following is more of a story to show how debugging XProc can be done, and not so much a document to look up solutions to your particular problem.

This is the XProc script we are working on:

@echo off
set LOGFILE="%USERPROFILE%\Desktop\Pipeline_2_environment_info.txt"
echo Gathering info about environment used to run Pipeline 2...
echo.
echo checking locale, cpu architecture, memory and windows version...
systeminfo >> "%LOGFILE%" 2>&1
echo.>> "%LOGFILE%" 2>&1
echo checking java version...
java -version >> "%LOGFILE%" 2>&1
java -d64 -version >> "%LOGFILE%" 2>&1