Skip to content

Instantly share code, notes, and snippets.

@mmack
mmack / gcode
Created March 18, 2023 08:55
bed-level
Send: M420 V
Recv: Raw Bilinear Leveling Grid:
Recv: 0 1 2 3 4 5 6 7 8
Recv: 0 +17.146 +17.021 +16.903 +16.795 +16.695 +16.596 +16.484 +16.358 +16.257
Recv: 1 +17.210 +17.079 +16.959 +16.857 +16.771 +16.672 +16.550 +16.434 +16.329
Recv: 2 +17.260 +17.125 +17.021 +16.927 +16.825 +16.726 +16.608 +16.491 +16.388
Recv: 3 +17.275 +17.153 +17.049 +16.956 +16.875 +16.767 +16.643 +16.519 +16.434
Recv: 4 +17.273 +17.150 +17.059 +16.962 +16.878 +16.726 +16.642 +16.512 +16.426
Recv: 5 +17.249 +17.126 +17.041 +16.956 +16.866 +16.758 +16.625 +16.489 +16.389
Recv: 6 +17.215 +17.102 +17.017 +16.938 +16.831 +16.727 +16.582 +16.452 +16.349
;Header Start
;FLAVOR:Marlin
;TIME:6666
;Filament used: 0m
;Layer height: 0.16
;MINX:2.14748e+06
;MINY:2.14748e+06
;MINZ:2.14748e+06
;MAXX:-2.14748e+06
@mmack
mmack / .gcode
Last active March 12, 2023 10:58
Prusa Slicer Start-GCode for the Artisan
; Heat the Bed -> use the highest temp ONLY INNER ZONE!
{if is_extruder_used[0] and is_extruder_used[1]}
M140 P0 S{(first_layer_bed_temperature[0]>first_layer_bed_temperature[1] ? first_layer_bed_temperature[0] : first_layer_bed_temperature[1])}
{ elsif is_extruder_used[0] }
M140 P0 S{first_layer_bed_temperature[0]}
{ elsif is_extruder_used[1] }
M140 P0 S{first_layer_bed_temperature[1]}
{ endif }
G28 ; Home all axes
bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory
[root@k8s-worker-104 /]# ceph -w
cluster:
id: 7dd854f1-2892-4201-ab69-d4797f12ac50
health: HEALTH_WARN
1/5 mons down, quorum a,b,f,g
@mmack
mmack / gist:7b3e8423964e4573b69f47fff4d9ed0a
Created August 7, 2019 16:09
loop over fetch mon-endpoints configmap
This file has been truncated, but you can view the full file.
apiVersion: v1
data:
data: b=100.67.17.84:6789,a=100.70.46.205:6789,f=100.69.115.5:6789,g=100.66.122.247:6789,h=100.64.242.138:6789
mapping: '{"node":{"a":{"Name":"k8s-worker-00.lxstage.domain.com","Hostname":"k8s-worker-00.lxstage.domain.com","Address":"172.22.254.105"},"b":{"Name":"k8s-worker-101.lxstage.domain.com","Hostname":"k8s-worker-101.lxstage.domain.com","Address":"172.22.254.183"},"c":{"Name":"k8s-worker-00.lxstage.domain.com","Hostname":"k8s-worker-00.lxstage.domain.com","Address":"172.22.254.105"},"d":{"Name":"k8s-worker-101.lxstage.domain.com","Hostname":"k8s-worker-101.lxstage.domain.com","Address":"172.22.254.183"},"e":{"Name":"k8s-worker-00.lxstage.domain.com","Hostname":"k8s-worker-00.lxstage.domain.com","Address":"172.22.254.105"},"f":{"Name":"k8s-worker-102.lxstage.domain.com","Hostname":"k8s-worker-102.lxstage.domain.com","Address":"172.22.254.186"},"g":{"Name":"k8s-worker-103.lxstage.domain.com","Hostname":"k8s-worker-103.lxstage.domain.com","Address":"172.22.254.185"},"h":{"Name":"k
@mmack
mmack / gist:3d762b6a61acf66ba181522e3814da11
Created August 7, 2019 16:09
operator logs - multiple restarts combined
This file has been truncated, but you can view the full file.
2019-08-07 08:15:34.970472 I | rookcmd: starting Rook v1.0.4 with arguments '/usr/local/bin/rook ceph operator'
2019-08-07 08:15:34.970677 I | rookcmd: flag values: --alsologtostderr=false, --csi-attacher-image=quay.io/k8scsi/csi-attacher:v1.0.1, --csi-cephfs-image=quay.io/cephcsi/cephfsplugin:v1.0.0, --csi-cephfs-plugin-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin.yaml, --csi-cephfs-provisioner-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner.yaml, --csi-enable-cephfs=false, --csi-enable-rbd=false, --csi-provisioner-image=quay.io/k8scsi/csi-provisioner:v1.0.1, --csi-rbd-image=quay.io/cephcsi/rbdplugin:v1.0.0, --csi-rbd-plugin-template-path=/etc/ceph-csi/rbd/csi-rbdplugin.yaml, --csi-rbd-provisioner-template-path=/etc/ceph-csi/rbd/csi-rbdplugin-provisioner.yaml, --csi-registrar-image=quay.io/k8scsi/csi-node-driver-registrar:v1.0.2, --csi-snapshotter-image=quay.io/k8scsi/csi-snapshotter:v1.0.1, --help=false, --log-flush-frequency=5s, --log-level=DEBUG, --log_backtrace_at=:0, --log_dir=, -
2019-08-06 13:48:46.580321 I | rookcmd: starting Rook v1.0.4 with arguments '/usr/local/bin/rook ceph operator'
2019-08-06 13:48:46.580426 I | rookcmd: flag values: --alsologtostderr=false, --csi-attacher-image=quay.io/k8scsi/csi-attacher:v1.0.1, --csi-cephfs-image=quay.io/cephcsi/cephfsplugin:v1.0.0, --csi-cephfs-plugin-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin.yaml, --csi-cephfs-provisioner-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner.yaml, --csi-enable-cephfs=false, --csi-enable-rbd=false, --csi-provisioner-image=quay.io/k8scsi/csi-provisioner:v1.0.1, --csi-rbd-image=quay.io/cephcsi/rbdplugin:v1.0.0, --csi-rbd-plugin-template-path=/etc/ceph-csi/rbd/csi-rbdplugin.yaml, --csi-rbd-provisioner-template-path=/etc/ceph-csi/rbd/csi-rbdplugin-provisioner.yaml, --csi-registrar-image=quay.io/k8scsi/csi-node-driver-registrar:v1.0.2, --csi-snapshotter-image=quay.io/k8scsi/csi-snapshotter:v1.0.1, --help=false, --log-flush-frequency=5s, --log-level=DEBUG, --log_backtrace_at=:0, --log_dir=, -
This file has been truncated, but you can view the full file.
2019-08-06 04:45:59.203905 I | rookcmd: starting Rook v1.0.4 with arguments '/usr/local/bin/rook ceph operator'
2019-08-06 04:45:59.204124 I | rookcmd: flag values: --alsologtostderr=false, --csi-attacher-image=quay.io/k8scsi/csi-attacher:v1.0.1, --csi-cephfs-image=quay.io/cephcsi/cephfsplugin:v1.0.0, --csi-cephfs-plugin-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin.yaml, --csi-cephfs-provisioner-template-path=/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner.yaml, --csi-enable-cephfs=false, --csi-enable-rbd=false, --csi-provisioner-image=quay.io/k8scsi/csi-provisioner:v1.0.1, --csi-rbd-image=quay.io/cephcsi/rbdplugin:v1.0.0, --csi-rbd-plugin-template-path=/etc/ceph-csi/rbd/csi-rbdplugin.yaml, --csi-rbd-provisioner-template-path=/etc/ceph-csi/rbd/csi-rbdplugin-provisioner.yaml, --csi-registrar-image=quay.io/k8scsi/csi-node-driver-registrar:v1.0.2, --csi-snapshotter-image=quay.io/k8scsi/csi-snapshotter:v1.0.1, --help=false, --log-flush-frequency=5s, --log-level=DEBUG, --log_backtrace_at=:0, --log_dir=, -

Keybase proof

I hereby claim:

  • I am mmack on github.
  • I am m_mack86 (https://keybase.io/m_mack86) on keybase.
  • I have a public key ASD5Q3YHQ39hNOWPRXw2B_dmcyAs3IyAHcVBOkl8S-fPRQo

To claim this, I am signing this object:

@mmack
mmack / gist:dca54ef7fdee83bc3dd4
Last active September 16, 2015 13:57
blitz-app routing problems
Probleme:
1. Websockets gehen nicht über Cloudflare
2. Das SSL Certificate gilt nur für www.blitz-app.com und blitz-app.com
3. Auf SSL Seiten kann man keine iFrames einbinden wenn die eingebundene Seite über http ausgeliefert wird
4. config.force_ssl gilt für alle Seiten
5. Die http Seite kann keine ssl cookies lesen... Der User währe dann praktisch ausgeloggt.