Skip to content

Instantly share code, notes, and snippets.

View syuchan1005's full-sized avatar
๐ŸŒŠ
Hunting job

Shuichi Sato syuchan1005

๐ŸŒŠ
Hunting job
View GitHub Profile
@syuchan1005
syuchan1005 / Slider.vue
Last active May 2, 2018 16:08
Its like iOS power slider (or win10 setting toggle)
<template>
<div class="slider" :style="sliderStyle" ref="slider">
<div class="base" :style="baseStyle">
<div class="text" :style="textStyle">{{ this.text }}</div>
<div class="thumb" :style="thumbStyle"
@mousedown="mouseDown" @touchstart="touchStart" @touchend="touchEnd" @touchcancel="touchCancel"></div>
</div>
</div>
</template>
@syuchan1005
syuchan1005 / 2.10-nginx-proxy_to_traefik.patch
Last active April 29, 2025 10:58
Create labels for traefik proxy routing from nginx-proxy environments
diff --git a/pkg/provider/docker/docker.go b/pkg/provider/docker/docker.go
index 0516620ce..488624047 100644
--- a/pkg/provider/docker/docker.go
+++ b/pkg/provider/docker/docker.go
@@ -401,7 +401,7 @@ func parseContainer(container dockertypes.ContainerJSON) dockerData {
}
if container.Config != nil && container.Config.Labels != nil {
- dData.Labels = container.Config.Labels
+ dData.Labels = parseLabels(container)
@syuchan1005
syuchan1005 / README.md
Last active August 30, 2023 13:47
Script to convert Unifi device topology map to drawio
@syuchan1005
syuchan1005 / README.md
Last active December 30, 2024 07:02
How to move the Ceph block and db LVM disks to another machine

How to move the Ceph block and db LVM disks to another machine

Environment

ServerA (old): Proxmox 8.3.0

  • 6 OSDs and 1 db(have all OSDs db lvs)

ServerB (new): Proxmox 8.3.0

  • No OSD, mon and mgr are installed

steps

@syuchan1005
syuchan1005 / How to connect Bambu Lab printer's MQTT server.md
Last active January 13, 2025 08:13
How to connect Bambu Lab printer's MQTT server

My env

  • Bambu Lab P1S
    • Bound to the cloud

If not bound to the cloud, a Local MQTT server is a good choice.

Steps

  1. Login MakerWorld
  2. Open the dev-tools and move to Application > Cookies > https://makerworld.com
  3. Memo your token string as ACCESS_TOKEN