Skip to content

Instantly share code, notes, and snippets.

@jmjoy
jmjoy / backup-k8s.sh
Created November 18, 2021 03:32
备份所有的K8S资源(Backup all k8s resources yaml)
#!/usr/bin/env bash
ROOT=$PWD
# Backup global resources
while read -r resource
do
echo " scanning resource '${resource}'"
| project | language | status | link |
| ----------------- | -------- | -------------------- | -------------------------------------------- |
| graphicsmagick-rs | rust | actively-developed | <https://github.com/jmjoy/graphicsmagick-rs> |
| olha | rust | actively-developed | <https://github.com/olha-framework/olha> |
| recorder | rust | as-is | <https://github.com/jmjoy/recorder> |
| idgend | rust | passively-maintained | <https://github.com/jmjoy/idgend> |
| apollo-client | rust | passively-maintained | <https://github.com/jmjoy/apollo-client> |
| keyboard-layout | markdown | as-is | <https://github.com/jmjoy/keyboard-layout> |
| async-wg | rust | deprecated | <https://github.com/jmjoy/async-wg> |
| phper | rust | deprecated | <https://github.com/jmjoy/phper>
@jmjoy
jmjoy / 📌 Recent activity
Last active June 26, 2021 00:42
📌 Recent activity
🎉 Merged PR #24 in jmjoy/phper
💪 Opened PR #24 in jmjoy/phper
🗣 Commented on #6 in jmjoy/fastcgi-client-rs
🎉 Merged PR #8 in jmjoy/fastcgi-client-rs
💪 Opened PR #37 in rousan/multer-rs
@jmjoy
jmjoy / gist:ef5a89648bc245eb203864fe7918be60
Last active September 8, 2020 00:48
📊 Weekly development breakdown
We couldn’t find that file to show.
@jmjoy
jmjoy / test-coverage.sh
Created January 24, 2020 08:58
Rust related scripts
#!/usr/bin/env bash
# Rust: Generate the test coverage html files and open it in explorer.
set -xe
OUTPUT_DIR=/tmp/<YOUR_CRATE_NAME>
FIND_PREFIX=<YOUR_CRATE_NAME>
CARGO_INCREMENTAL=0 RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads" cargo +nightly test
gsettings set com.deepin.dde.keybinding.mediakey capslock "['']" && gsettings set com.deepin.dde.keyboard layout-options "['caps:swapescape']"
@jmjoy
jmjoy / blacklist.conf
Created October 25, 2019 14:58
联想拯救者Y7000内核模块modprobe.d黑名单。
blacklist evbug
blacklist ideapad_laptop
@jmjoy
jmjoy / .Xmodmap
Created July 27, 2018 14:41
Linux: Swap CapsLock Escape Keys
! -*- coding: utf-8 -*-
! Linux: Swap CapsLock Escape Keys.
! Run `xmodmap .Xmodmap` to get effect.
clear Lock
keycode 9 = Caps_Lock NoSymbol Caps_Lock
keycode 66 = Escape NoSymbol Escape
@jmjoy
jmjoy / smartparens-evil-keybings.el
Last active July 25, 2018 16:47
My personal keybings for smartparens on evil mode.
;;; A page of intro of `smartparens` -> https://ebzzry.io/en/emacs-pairs/
;; Default keybings for emacs keybings of `smartparens`
;; (bind-keys
;; :map smartparens-mode-map
;; ("C-M-a" . sp-beginning-of-sexp)
;; ("C-M-e" . sp-end-of-sexp)
;;
;; ("C-<down>" . sp-down-sexp)
;; ("C-<up>" . sp-up-sexp)