Skip to content

Instantly share code, notes, and snippets.

View cxjava's full-sized avatar
🎯
Focusing

Char cxjava

🎯
Focusing
View GitHub Profile
@cxjava
cxjava / index.js
Created August 21, 2014 05:26 — forked from edokeh/index.js
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@cxjava
cxjava / SmartMover.vbs
Created December 9, 2020 01:26 — forked from etnperlong/SmartMover.vbs
百度网盘 <-> Rclone 转存 OneDrive 自动化VBS脚本
'---------------------------------------------------
' 百度网盘 <-> Rclone 转存 OneDrive 自动化VBS脚本
' Version: 0.422
'
' 功能:
' - 按目录结构转存
' - 配合 Folder Monitor 等文件夹监控工具
' - 转存完毕后可删除源文件,节省硬盘空间
' - 可通过 Telegram 和 ServerChan 推送通知
' - 可保存转存日志
@cxjava
cxjava / jwtRS256.sh
Created June 22, 2021 06:06 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@cxjava
cxjava / jwtRS256.sh
Created June 22, 2021 06:06 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@cxjava
cxjava / ffmpeg-rpi-4.sh
Created April 19, 2020 12:55
Compile ffmpeg on 32-bit Raspberry Pi 4
#!/bin/bash
#
# Compile ffmpeg on 32-bit Raspberry Pi 4
#
# Usage
# =====
# ./ffmpeg-rpi-4.sh
# or
# curl -L "https://git.io/JvgLF" | bash
@cxjava
cxjava / compile-ffmpeg.sh
Created June 23, 2020 03:56 — forked from wildrun0/compile-ffmpeg.sh
Compiling ffmpeg for Raspberry Pi 4
#!/bin/bash
# Note that there's no libdrm because this lib cause errors
sudo apt update -y && sudo apt upgrade -y
sudo apt-get -y install \
autoconf \
automake \
build-essential \