Skip to content

Instantly share code, notes, and snippets.

View evilscientress's full-sized avatar

Jenny evilscientress

View GitHub Profile
;Sliced at: [timestamp]
G21 ; metric values
G90 ; absolute positioning
M82 ; set extruder to absolute mode
M107 ; start with the fan off
M75 ; start print job timer
; let's start heating up
M140 S[bed_temperature] ; set bed temperature
M104 T0 S[temperature_0] ; set extruder temperature
#!/bin/sh
# gpsd device-hook script for Sierra Wireless cards, by Jenny Danzmayr, based on Bjørn Mork script
#
# gpsd will not poll a device before it is opened, at which time this script is called
# This means that we can unconditionally add the GPS inteface to gpsd without wasting any power.
# It will be activated when the first client connects to gpsd, and this script is called
#
# gpsd will also deactivate the port after some inactivity period
# figure out the parent usb device
@evilscientress
evilscientress / end.gcode
Last active April 21, 2020 14:31 — forked from ianchen06/end.gcode
Anet A8 start end gcode
;End GCode
M104 S0 ; extruder heater off
M140 S0 ; heated bed heater off (if you have it)
G91 ; relative positioning
G1 E-1 F300 ; retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F9000 ; move Z up a bit and retract filament even more
G28 X0 Y0 ; move X/Y to min endstops, so the head is out of the way
M84 ; steppers off
@evilscientress
evilscientress / Readme.md
Last active January 9, 2018 21:36
Lenovo UEFI Update script for Linux

Lenovo UEFI Update with Linux

Howto

  1. Download the "Bios Update Utility for Windows" version of the UEFI update
  2. extrac the exe file using innoextract
  3. insert an usb flash drive and format it with a fat filesystem mkfs.vfat $path_to_flash_drive_devicenode
  4. mount the usb flash drive
  5. download mkusbkey.sh available from here
@evilscientress
evilscientress / div.c
Last active June 30, 2017 17:02
divides stuff by 12 to test other stuff
#include <stdio.h>
void main(void){
for(int i=-13;i<=13;i++){
int iresult=i/12;
float fresult=((float)i)/12.0f;
printf("%d\t%d\t%d\t%f\n",i,iresult,((int)fresult),fresult);
}
}

Keybase proof

I hereby claim:

  • I am masterbase on github.
  • I am masterbase (https://keybase.io/masterbase) on keybase.
  • I have a public key whose fingerprint is E5DC A9BD 69BE 913D 8DFD DC2C 7FD8 4DCC B689 9393

To claim this, I am signing this object:

@evilscientress
evilscientress / D3_Dynamic_Donut_Chart.md
Last active January 6, 2016 03:59 — forked from dbuezas/README.md
D3 Dynamic Donut Chart