This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PS1='[\[\033[1;33m\]\# \[\033[1;32m\]\u@\H \[\033[1;36m\]\w\[\033[0m\]]\$ ' |
If you want Slic3r to generate Gcode with a temperature change at a specific height (e.g. for printing a temperature tower), you will need to add a line of conditional G-code.
To do that, click on the Printer Settings
tab and in the left sidebar on Custom G-code
.
In the text field After layer change G-code
add a line like the following for each desired temperature change:
{if layer_z==10}M104 S190{endif}
This example changes the extruder temperature at a height of 10mm to 190°C.
- PDFTK (https://www.pdflabs.com/docs/pdftk-cli-examples/)
- PDFJam (https://warwick.ac.uk/fac/sci/statistics/staff/academic-research/firth/software/pdfjam/)
- Pandoc (https://pandoc.org/)
Remove bookmarks/table of contents from a PDF:
pdftk A=file1.pdf cat A1-end output nobookmarks.pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"window.titleBarStyle": "custom", | |
"workbench.colorTheme": "Night Owl", | |
"git.autofetch": true, | |
"terminal.integrated.fontFamily": "'Fira Code'", | |
"editor.minimap.enabled": false, | |
"docker.groupImagesBy": "None", | |
"editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", | |
"editor.fontLigatures": true, | |
"window.title": "${dirty}${activeEditorMedium}${separator}${rootName}${separator}${appName}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class CallerAttributeExtensions | |
{ | |
public static void WriteCallerAttributeValuesToConsole<T>( this T? obj, | |
[CallerMemberName] string? member = null, | |
[CallerFilePath] string? filePath = null, | |
[CallerLineNumber] int lineNum = 0, | |
[CallerArgumentExpression("obj")] string? expr = null ) | |
{ | |
Console.Out.WriteLine( $"{member} {filePath} {lineNum} {expr}" ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -A file_hashes | |
for file in *; do | |
if [[ -f $file ]]; then | |
hash=$(sha256sum "$file" | awk '{print $1}') | |
if [[ ${file_hashes[$hash]} ]]; then | |
echo "Deleting duplicate file: $file" | |
rm -i "$file" |