- 上传字体到
/storage/assets/xmb/retroactive/font.ttf
systemctl stop retroarch
vim ~/.config/retroarch/retroarch.cfg
- change
video_font_path = /storage/assets/xmb/retroactive/font.ttf
systemctl start retroarch
This file contains 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
import { EChartOption } from 'echarts'; | |
declare interface _Format extends EChartOption.Tooltip.Format { | |
marker: string; | |
axisValueLabel: string; | |
} | |
const formatter: EChartOption.Tooltip.Formatter = function(params: _Format|Array<_Format>, _ticket, _callback) { | |
if(params instanceof Array) { | |
if(params.length) { |
This file contains 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
// ==UserScript== | |
// @name Steam Helper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description steam额外帮助工具 | |
// @author 鸿则<[email protected]> | |
// @match https://store.steampowered.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
// ==UserScript== | |
// @name Search Engine Switcher | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 提供更方便的方式切换搜索引擎,快捷键 Alt+S | |
// @author 鸿则<[email protected]> | |
// @match https://www.google.com/* | |
// @match https://www.baidu.com/* | |
// @match https://*.bing.com/* | |
// @match https://www.google.com/search* |
This file contains 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
import java.util.Base64; | |
import javax.crypto.Cipher; | |
import javax.crypto.SecretKey; | |
import java.security.SecureRandom; | |
import javax.crypto.spec.DESKeySpec; | |
import javax.crypto.SecretKeyFactory; | |
/** | |
* DES 加密解密工具 | |
* @author 鸿则<[email protected]> |
This file contains 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 | |
buildin_display_name=eDP-1-1 | |
displays=($(xrandr | grep " connected " | awk '{ print$1 }')) | |
display_count=${#displays[@]} | |
function enable-buildin-display() { | |
if [ $display_count -gt 1 ]; then | |
echo "disable buildin display: ${buildin_display_name}"; | |
xrandr --output "$buildin_display_name" --auto |
This file contains 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 | |
CONFIG_FOLDER=~/.config/scopy-paste | |
CONFIG_FILE="$CONFIG_FOLDER/value" | |
if [ ! -d "$CONFIG_FOLDER" ]; then | |
mkdir -p "$CONFIG_FOLDER"; | |
fi | |
function scopy() { |
This file contains 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
// ==UserScript== | |
// @name Change Github Font Family | |
// @name:zh-CN Github网站字体切换 | |
// @icon https://github.githubassets.com/favicons/favicon.png | |
// @version 0.0.3 | |
// @description custom github font family | |
// @description:zh-CN 切换Github等网站的字体 | |
// @namespace https://gist.github.com/hungtcs | |
// @author 鸿则<[email protected]> | |
// @homepage https://gist.github.com/hungtcs/819a64fa9e6bfa37ce391f29765acfa3 |
This file contains 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
# Linux:录制当前显示器 | |
# - show_region: 显示录制区域 | |
# - framerate: 录制的帧率 | |
# - video_size: 录制区域的大小 | |
# - $DISPLAY+0,0: `$DISPLAY`:环境变量,当前显示器 | |
# `+0,0` 录制区域偏移量 | |
# x11grab: http://underpop.online.fr/f/ffmpeg/help/x11grab.htm.gz | |
ffmpeg -f x11grab -show_region 1 -framerate 8 -video_size 1024x768 -i $DISPLAY+0,0 -y output.mp4 | |
# MacOS 录制屏幕 |
This file contains 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
const parser = Sandbox.compile('a + b'); | |
const result = parser({ a: 1, b: 2 }); | |
// --- | |
const parser = Sandbox.compile('a + b + alert', { throwOnUndefined: true }); | |
const result = parser({ a: 1, b: 2 }); |
OlderNewer