Skip to content

Instantly share code, notes, and snippets.

View mzz2017's full-sized avatar
🍓
Working hard, playing harder

mzz mzz2017

🍓
Working hard, playing harder
  • Shanghai, China
View GitHub Profile
@mzz2017
mzz2017 / app.conf
Last active June 26, 2024 14:18
~/.config/keyd/app.conf
[microsoft-edge-dev]
# Since go-line-home and go-line-end in the input box conflict with go-back and go-forward, we have to change our habits.
layer_leftcmd.up = A-left
layer_leftcmd.down = A-right
layer_leftcmd.backspace = macro(leftshift+home backspace)
[hyper]
layer_leftcmd.w = C-S-w
@mzz2017
mzz2017 / inputrc
Created March 30, 2024 09:36
linux to mac keymaps - /etc/inputrc
# cooperate with keyd for ctrl+w compatibility
"\ew": backward-kill-word
@mzz2017
mzz2017 / .hyper.js
Last active March 30, 2024 10:44
hyper config - linux to mac keymaps
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
summon: {
hideDock: false,
hideOnBlur: false,
hotkey: 'Ctrl+meta+T',
@mzz2017
mzz2017 / keyd.conf
Last active March 30, 2024 11:04
linux to mac keymaps - /etc/keyd/default.conf
# Keep windows keymaps by default and add some macOS keymaps compatibility.
[ids]
*
[main]
capslock = leftshift
leftalt = layer(layer_leftcmd)
@mzz2017
mzz2017 / ping_check.sh
Last active April 1, 2021 15:50
glider_ping_check
#!/bin/bash
loss_tolerance=15.0
avg_tolerance=20.0
max_tolerance=30.0
mdev_tolerance=5
test_count=10
timeout_second=2