Skip to content

Instantly share code, notes, and snippets.

peteristhegreat /
Created Sep 19, 2020
Printer ramms nozzle into print after print #32, examples

3 copies of the same car sent to a FLSUN QQ-S Pro 3d printer.

car-56mm.gcode was sent over mks wifi, and after it finished printing, it went to the home position (top center) and then it immediately started a slow decent to center z:0.

car-56mm_savetofile.gcode was sent to the mounted sd card in windows as d:.

car-56mm_saveastft.gcode was saved as tft and the filetype was changed to gcode in the save dialog.

peteristhegreat /
Last active Sep 10, 2020
Clone a Jira issue from the Jira Rest API

Jira Software (Boards/Sprints etc) and Cloning Issues

The steps to clone an issue in jira are fairly complex. This example has a bash + curl + jq v1.6 tested on Jira Software running inside the jira docker container (tested on Jira v8.12).

This assumes that your favorite/default project is named TRAC. Change where appropriate.

Using the REST API Browser Plugin makes learning these calls much easier.


TXT version of lists of cards

My Decks > New Deck

Actions > Bulk Import
Actions > Change Name

Add variety to the lands the little purple icon and the left panel

peteristhegreat /
Last active Jul 18, 2020
Cura with AMD Crashes Computer, workaround

Windows 10 Virtualization/Container OptionalFeatures have an issue with Cura 3d printing software

Running Cura on my computer would work fine, until a few hours later my graphics card would freeze up and wouldn't register anything.

After a reboot everything would be fine until the next time I launched Cura, it was like a time bomb.

All this has been happening with Ultimaker_Cura-4.6.2-amd64.exe on Windows 10.

peteristhegreat /
Last active Jul 16, 2020
VirtualBox Linux Mint Stuck on 3 out of 5 dots

linux mint loading stuck on 3 of 5 dots

Basically because of Spectre there are now Kernel mode protections that are supposed to prevent hacking.

Right now it is making it so that the latest version of VirtualBox and the latest version of Mint can't agree and at install time the Linux Kernel fails with:


You can see this error if you edit the grub at boot up and replace quiet splash with nomodeset and do a startup.

peteristhegreat /
Created Jul 3, 2020
Bash command once per line of a file bash run command once for each line in file
for i in $(cat < "list_of_input.txt"); do
echo "Item in \"$i\""
peteristhegreat /
Last active Jul 1, 2020
Excel C Dll example, Array Formula, VBA matrix multiply interface, 2d array, and width height, rows and cols, buffer size in and out

Desired output

... 2 Ranges go in ... 1 Array Formula will spill out...

Take two ranges in excel, convert them to 1d c arrays ready to go into a c function call.

Pass in the buffer size as the width and height of the output array as allocated in VBA.

Return the buffer size modified by c to VBA.

peteristhegreat /
Last active Jun 30, 2020
RPI Retropie Raspbian RaspberryPi for kids, quickstart
  • Change localization, timezone, keyboard layout
  • Change password
  • Enable ssh
  • Add some lines to the .bashrc file
export HISTCONTROL=ignoredups:erasedups  # no duplicate entries
export HISTSIZE=100000                   # big big history
export HISTFILESIZE=100000               # big big history
shopt -s histappend                      # append to history, don't overwrite it
peteristhegreat /
Created Jun 3, 2020
Realtek bluetooth usb adapter RTL8671b
peteristhegreat / config.json
Last active Jun 10, 2020
Stretchly + 31 stretch descriptions every 10 minutes for two mins
View config.json
"microbreakDuration": 20000,
"microbreakInterval": 300000,
"breakDuration": 120000,
"breakInterval": 1,
"breakNotification": true,
"microbreakNotification": true,
"breakNotificationInterval": 30000,
"microbreakNotificationInterval": 10000,
"microbreak": false,
You can’t perform that action at this time.