Skip to content

Instantly share code, notes, and snippets.

@iamwrm
iamwrm / cell-runner.sh
Created October 25, 2025 15:36
cell-runner.sh
#!/bin/bash
# =============================================================================
# Cell-based Job Runner Framework
# =============================================================================
#
# This framework provides a Docker-like layer execution system for bash scripts.
# It allows you to define "cells" (discrete build steps) that can be executed
# selectively, similar to Docker build layers.
#
# =============================================================================
@iamwrm
iamwrm / index.html
Created October 19, 2025 16:02
image compression v3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smart Image Compressor</title>
<style>
* {
margin: 0;
padding: 0;
@iamwrm
iamwrm / index.html
Created October 19, 2025 15:56
image compression v2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smart Image Compressor</title>
<style>
* {
margin: 0;
padding: 0;
@iamwrm
iamwrm / index.html
Created October 19, 2025 15:53
image compression v1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smart Image Compressor</title>
<style>
* {
margin: 0;
padding: 0;
@iamwrm
iamwrm / keybase.md
Created January 5, 2019 02:42
keybase claim

Keybase proof

I hereby claim:

  • I am iamwrm on github.
  • I am iamwr (https://keybase.io/iamwr) on keybase.
  • I have a public key ASBSsui1dM5C32p69S7Pc4u-A7JNweX2YvO7U3TeDNWk0go

To claim this, I am signing this object:

@iamwrm
iamwrm / docker.sh
Created December 31, 2018 04:09
docker related
sudo groupadd docker
sudo gpasswd -a $USER docker
@iamwrm
iamwrm / m1.md
Created December 19, 2018 15:22
macOS kernel extension disable

sudo kextunload -b com.apple.filesystems.smbfs

@iamwrm
iamwrm / update.sh
Last active December 19, 2018 08:49
rsync
rsync -azvh --delete-after . [email protected]:~/Documents/l8
rsync -azvh -e 'ssh -p 3023' Downloads/docker-ce_18.09.0_3-0_ubuntu-bionic_amd64.deb wr@localhost:/home/wr
@iamwrm
iamwrm / main.tex
Last active December 7, 2018 03:36
Latex userful sripts
Insert pictures
\begin{figure}[H]
\centering
\includegraphics[width=1\textwidth]{m32ce}
\end{figure}
@iamwrm
iamwrm / network.md
Last active August 20, 2018 07:47
doc about using linux ( as a desktop maybe?)

for scientific surfing:

instsall shadowsocks-libev config it to run on 127.0.0.1:1080

however, with firefox, i could still only go on the sites that are not blocked, though I make sure that my ip is outside the greatwall. I contribute this problem to DNS pollution. For the log of sslocal shows that google.com is redirected to 0.0.0.0. With chrome, this problem never happens. Maybe chrome has some dns resolver overiding?