This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# alacritty-toggle.sh — Toggle Alacritty dropdown terminal on macOS with yabai | |
echo "$(date) key hit" >> /tmp/alacritty-toggle.log | |
set -euo pipefail | |
APP="alacritty" | |
YABAI=/opt/homebrew/bin/yabai | |
JQ=/opt/homebrew/bin/jq | |
BC=/usr/bin/bc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# default.custom.yaml | |
patch: | |
# 1. 方案列表 —— 只保留朙月拼音 | |
schema_list: | |
- schema: lufs_pinyin # 朙月拼音 | |
# 2. 方案切换器 | |
switcher: | |
hotkeys: # 用 Control+` 呼出菜单 | |
- "Control+grave" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__kernel void add_one(__global int* data) { | |
int idx = get_global_id(0); | |
data[idx] += 1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
programs=("feh" "nitrogen" "hsetroot" "xwallpaper" "bgs" "variety" "pywal" "xsetroot" "habak" "fim") | |
for program in "${programs[@]}"; do | |
if command -v "$program" &>/dev/null; then | |
echo "$program 已安装" | |
else | |
echo "$program 未安装" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl -X PROPFIND -u jksv:jksv http://192.168.2.249:10000/JKSV/Ring%20Fit%20Adventure/ |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execve("/usr/lib/beyondcompare/BCompare", ["/usr/lib/beyondcompare/BCompare"], 0x7ffeca45c0f0 /* 89 vars */) = 0 | |
brk(NULL) = 0x2e82000 | |
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffe3e9d07a0) = -1 EINVAL (无效的参数) | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (没有那个文件或目录) | |
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=277307, ...}, AT_EMPTY_PATH) = 0 | |
mmap(NULL, 277307, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fefc2563000 | |
close(3) = 0 | |
openat(AT_FDCWD, "/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote name="feilong-git" fetch="https://android_compile:zcyctv-Y5n-jSsVNd4Kx@git.f.lan/" /> | |
<!-- <remote name="feilong-git" fetch="git@git.f.lan" /> --> | |
<!-- zuk z2 row --> | |
<project path="device/zuk/z2_row" remote="github" name="pe-zukz2/device_zuk_z2_row" revision="eleven" /> | |
<project path="device/zuk/msm8996-common" remote="github" name="feilongfl/device_zuk_msm8996-common" revision="eleven" /> | |
<!-- <project path="device/zuk/msm8996-common" remote="github" name="pe-zukz2/device_zuk_msm8996-common" revision="eleven" /> --> | |
<!-- <project path="device/zuk/msm8996-common" remote="feilong-git" name="embeded/android-phone/device_zuk_msm8996-common" revision="feilong-eleven-patch-68725" /> --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
set swap_file /home/feilong/Program-ext/swap/swapfile | |
fallocate -l 100G $swap_file | |
chmod 600 $swap_file | |
mkswap $swap_file | |
swapon $swap_file | |
# swapoff -v $swap_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function input(date,name1,name2){ | |
this.date = date; | |
this.name1 = name1; | |
this.name2 = name2; | |
this.hash = name1 + name2; | |
} | |
inputdata = Array.of(new input(1, 'a', 'b'),new input(2, 'a', 'b'),new input(3, 'a', 'b'),new input(4, 'a', 'c'),new input(5, 'a', 'c'),new input(6, 'a', 'b'),new input(7, 'a', 'b')) | |
function result(name1,name2,hash,start,end){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance force | |
; global val define | |
global mouseSwitch = -1 | |
; set pixel pos base on screen | |
CoordMode, Mouse, Screen | |
CoordMode, ToolTip, Screen |
NewerOlder