Skip to content

Instantly share code, notes, and snippets.

View imZack's full-sized avatar
🤠
Make bugs

YuLun Shih imZack

🤠
Make bugs
  • Moxa
  • Taipei, Taiwan
View GitHub Profile
@imZack
imZack / moxa_app_framework-20260526.html
Created May 28, 2026 05:53
Agent session: moxa_app_framework - looks like the swif app is still listening the 59000 port I think we are no longer using dm-api end...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>moxa_app_framework - Agent Session</title>
<style>
:root {
--bg-primary: #f7f7fa;
--bg-surface: #ffffff;
@imZack
imZack / zack-20260527.html
Created May 28, 2026 05:52
Agent session: zack - Read https://wiki.moxa.com/spaces/RDDLM2/pages/595929508/13.+Device+Settings PM George 期待有一個 Device ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>zack - Agent Session</title>
<style>
:root {
--bg-primary: #f7f7fa;
--bg-surface: #ffffff;
@imZack
imZack / remote_agent_sdk-20260519.html
Created May 19, 2026 05:15
Agent session: remote_agent_sdk - /investigate why the client keeps publishing nbirth? ``` 6-05-19T03:48:52.228576Z"} origin=dlmg2 [...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>remote_agent_sdk - Agent Session</title>
<style>
:root {
--bg-primary: #f7f7fa;
--bg-surface: #ffffff;
@imZack
imZack / code-editor-rules.md
Created December 20, 2024 09:28 — forked from yifanzz/code-editor-rules.md
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
#/bin/bash
# apt-get update && apt-get install cdparanoia lame
cdparanoia -B && \
for file in *.wav; do lame -V0 "$file" "${file/%wav/mp3}"; done && \
rm *.wav && \
eject
@imZack
imZack / main.go
Created August 25, 2022 09:14 — forked from walm/main.go
Simple Golang DNS Server
package main
import (
"fmt"
"log"
"strconv"
"github.com/miekg/dns"
)
@imZack
imZack / notify.yml
Created March 15, 2022 14:09 — forked from trung/notify.yml
Notify slack about Github Actions workflow and its jobs status. `notify` job must be the last job in the workflow and it must depend on all other jobs
notify:
if: always()
name: Notify
needs:
- job1
- job2
- job11
- job3
- job4
runs-on: ubuntu-latest
@imZack
imZack / mount-bitlocker
Created September 13, 2021 07:47 — forked from dumbledore/mount-bitlocker
Mount/umount wrapper for dislocker on MacOS
#!/bin/bash
BITLOCKER_PARTITION="${1}"
BITLOCKER_PASSWORD="${2}"
function usage() {
echo "$(basename ${0}) <partition> <password>"
echo "Unlocks and mounts a bitlocker partition as read-only"
}
if [ -z "${BITLOCKER_PARTITION}" ]
@imZack
imZack / README.md
Created March 30, 2021 02:20 — forked from reegnz/README.md
CamelCase <--> snake_case conversion in jq

CamelCase <--> snake_case conversion with jq

tl;dr

I provide you with 3 jq lib functions that will help you in converting between snake_case and CamelCase.

The interface

I want to change keys in my json from camelcase to snake_case.

@imZack
imZack / convertBareRepoToNormalRepo.sh
Created March 29, 2021 09:07 — forked from Pelt10/convertBareRepoToNormalRepo.sh
Convert directory with git bare repo (Gitlab repo) to normal repo
echo "****************************************************"
echo "* *"
echo "* CONVERT BARE REPO TO NORMAL REPO *"
echo "* *"
echo "****************************************************"
echo " -> untar repo.tar.gz"
tar -zxf repo.tar.gz
for user in $(ls repositories/); do
for repo in $(ls repositories/$user/); do
pathRepo="repositories/$user/$repo/";