Skip to content

Instantly share code, notes, and snippets.

@josephbolus
josephbolus / scan.sh
Created July 4, 2024 19:49
Use the following tiny script to make PDFs look like they have been scanned.
#!/bin/sh
# Help message
show_help() {
echo
echo "Convert PDFs to make them look like they have been scanned"
echo "Example: $0 file.pdf"
}
# Check if the provided argument is not empty
@MichaTarlton
MichaTarlton / Beginner's set up for AidenLXs Zotero Integration Plugin.md
Last active April 4, 2025 02:16
Beginner's set up for AidenLX’s Zotero Integration Plugin

Beginner's set up for AidenLX’s Zotero Integration Plugin

The current official documentation is incomplete, and inaccessible for most users, however I believe it is the best zotero integration so far, if only it can eventually match the features of Bibnotes Formatter. I want to make a simple guide for users who want to quickly set up the plugin with simple use cases.

In this guide I will distill what I gathered from a day of going through the Obsidian forum thread, the github discussions and issues pages, the API guide from the documentation, and brute-force trial and error. Much of the api stuff will require knowledge of eta and javascript, which unfortunately I have limited experience with. Perhaps others can chime in and

@fieri
fieri / bash-help.sh
Created June 5, 2022 23:39 — forked from yangfch3/bash-help.sh
[bash 速查手册] #bash #cheatsheets
##############################################################################
# BASH CHEATSHEET (中文速查表) - by skywind (created on 2018/02/14)
# Version: 43, Last Modified: 2018/04/02 17:00
# https://github.com/skywind3000/awesome-cheatsheets
##############################################################################
##############################################################################
# 常用快捷键(默认使用 Emacs 键位)
##############################################################################
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 18, 2025 17:55
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@didinew
didinew / FFMPEG 推流到 RTMP 服务器命令 ffmpeg
Created March 14, 2019 03:07
FFMPEG 推流到 RTMP 服务器命令 ffmpeg
https://blog.csdn.net/u013010310/article/details/52371440
1、将文件当作源推送到RTMP服务器
ffmpeg -re -i localFile.mp4 -c copy -f flv rtmp://server/live/streamName
参数解释
-r 以本地帧频读数据,主要用于模拟捕获设备。表示ffmpeg将按照帧率发送数据,不会按照最高的效率发送
@andyrbell
andyrbell / scanner.sh
Last active March 28, 2025 17:57
Make a pdf look scanned using ImageMagick
# use ImageMagick convert
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf