Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
peteristhegreat / Readme.md
Created Sep 19, 2020
Printer ramms nozzle into print after print #32, examples
View Readme.md

https://www.thingiverse.com/thing:359008

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
peteristhegreat / Readme.md
Last active Sep 10, 2020
Clone a Jira issue from the Jira Rest API
View Readme.md

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.

https://marketplace.atlassian.com/apps/1211542/atlassian-rest-api-browser?hosting=server&tab=overview

View Readme.md

TXT version of lists of cards

https://frogtown.me

My Decks > New Deck

Actions > Bulk Import
Actions > Change Name

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

@peteristhegreat
peteristhegreat / Readme.md
Last active Jul 18, 2020
Cura with AMD Crashes Computer, workaround
View Readme.md

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.

https://community.ultimaker.com/topic/26654-cura-crashes-my-entire-computer/

@peteristhegreat
peteristhegreat / Readme.md
Last active Jul 16, 2020
VirtualBox Linux Mint Stuck on 3 out of 5 dots
View Readme.md

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:

KERNEL PANIC NOT SYNCHRONISING "CORRUPTED STACK DETECTED" windows 10 virtualbox -vmware

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

@peteristhegreat
peteristhegreat / once.sh
Created Jul 3, 2020
Bash command once per line of a file bash run command once for each line in file
View once.sh
IFS=$'\n'
for i in $(cat < "list_of_input.txt"); do
echo "Item in \"$i\""
done
@peteristhegreat
peteristhegreat / Readme.md
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
View Readme.md

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
peteristhegreat / Readme.md
Last active Jun 30, 2020
RPI Retropie Raspbian RaspberryPi for kids, quickstart
View Readme.md
  • 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
peteristhegreat / Readme.md
Created Jun 3, 2020
Realtek bluetooth usb adapter RTL8671b
View Readme.md
@peteristhegreat
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.