Skip to content

Instantly share code, notes, and snippets.

View PexMor's full-sized avatar

PexMor PexMor

  • Prague, CZ, Europe
View GitHub Profile
@mfrederickson
mfrederickson / end.gcode
Last active August 1, 2024 14:03
anet a8 start/end gcode
M104 S0 ; turn off extruder
M140 S0 ; turn off heatbed
M107 ; turn off fan
G91 ; relative positioning
G1 Z25 ; raise head 25mm
G90 ; back to absolute positioning
G1 X0 Y220; home X axis and push Y forward
M84 ; disable motors
@smoser
smoser / .gitignore
Last active April 1, 2024 07:38
cloud-init ubuntu nocloud example with network config
*.img
*.raw
@vincepare
vincepare / README.md
Last active July 3, 2021 00:07
Find the readwrite layer and filesystem root of a docker container - DEPRECATED, use https://github.com/vincepare/docker-backup instead

Finds the readwrite layer (top-most layer) and filesystem root of a docker container.

Accessing the readwrite layer from the docker host can be useful to backup ephemeral container data, while finding the filesystem root allow to browse a container directory structure without having to login into.

Please not that this could only work with union filesystem based storage driver like AUFS and Overlay2. Currently, only AUFS is supported, feel free to contribute to add Overlay2 support.

@ianchen06
ianchen06 / end.gcode
Last active February 23, 2022 01:38
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 F{travel_speed} ;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
@HarryRybacki-zz
HarryRybacki-zz / run_oooq_with_ipa.sh
Last active January 28, 2020 18:59
Deploy Over/Undercloud with FreeIPA using TripleO-Quickstart (OOOQ)
#!/bin/bash
set -ex
# Notes:
# - Ensure that you hand the virthsot from which you wish to deploy against
# as an argument during the script call.
# - This deployment will provision an additinoal node and configure it as
# a FreeIPA server prior to installing the undercloud.
VIRTHOST=$1
@BretFisher
BretFisher / docker-for-mac.md
Last active June 23, 2025 11:39
Getting a Shell in the Docker Desktop Mac VM

2021 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@RichardBronosky
RichardBronosky / README.MD
Last active October 13, 2025 19:17
cb - A leak-proof tee to the clipboard - Unify the copy and paste commands into one intelligent chainable command.

cb

A leak-proof tee to the clipboard

This script is modeled after tee (see [man tee][2]) and works on Linux, macOS, Cygwin, WSL/WSL2

It's like your normal copy and paste commands, but unified and able to sense when you want it to be chainable.

This project started as an answer to the StackOverflow question: [How can I copy the output of a command directly into my clipboard?][3]

@timtadh
timtadh / queue.sh
Last active March 12, 2023 07:44
BASH Job Queue. This is a example of how to make a job queue in GNU Bash. It may not work for other shells as it relies on the bash built in `read`. You will need to see the man pages for your shell to determine if this will work for you.
#!/usr/bin/env bash
rep() {
i=$1
data=$2
## run the replicate ....
}
# make the files
START=$(mktemp -t start-XXXX) ## signals the workers are starting
@vszakats
vszakats / codesign.sh
Last active May 9, 2024 10:23
Code-signing PE executables using OpenSSL, osslsigncode (and more)
#!/bin/sh
# To the extent possible under law, Viktor Szakats
# has waived all copyright and related or neighboring rights to this
# script.
# CC0 - https://creativecommons.org/publicdomain/zero/1.0/
# SPDX-License-Identifier: CC0-1.0
# shellcheck disable=SC3040,SC2039
set -o errexit -o nounset; [ -n "${BASH:-}${ZSH_NAME:-}" ] && set -o pipefail
{
"links": [
{
"ethernet_mac_address": "fa:16:3e:ed:9a:59",
"id": "tap1a81968a-79",
"mtu": null,
"type": "bridge",
"vif_id": "1a81968a-797a-400f-8a80-567f997eb93f"
}
],