Skip to content

Instantly share code, notes, and snippets.

@milnak
milnak / garlic-os-tips.md
Last active November 15, 2024 11:25
My set of GarlicOS tips #rg35xx

Garlic OS Tips (Windows-based)

GarlicOS Cookbook

Follow these instructions for an easy way to get up and going quickly! These are complete instructions, and will be the easiest way to get started on a new RG35XX.

Set up SD Card

Get a high quality SD (e.g. SanDisk Extreme) card, 128GB or larger, 256GB is recommended. Don't skimp here, they're cheap, and don't use the card that comes with the RG35XX as it's crap.

@lezuber
lezuber / LogseqImagesToAssetFolder.py
Last active May 31, 2023 06:50
Download Logseq repository images to local asset folder
#!/usr/bin/env python
# coding: utf-8
# What is this?
# This script is for logseq webapp users that want to switch to the local version.
# It will download all images that are linked inside your graph and store them in the local "/assets/" folder.
# Remarks
# 1. Only supports Markdown files (for now)
@zozovo
zozovo / Sarasa-Gothic.user.js
Last active November 7, 2024 02:03
Replace the font with Sarasa Gothic (CJK) and the corresponding monospaced one.
// ==UserScript==
// @name Sarasa-Gothic-Font-Substitution-Tool
// @name:en-US Sarasa Gothic Font Substitution Tool
// @name:zh-CN 更纱黑体字体替换工具
// @name:zh-TW 更紗黑體字型替換工具
// @name:zh-HK 更紗黑體字型替換工具
// @name:ja-JP 更紗ゴシックフォント置換ツール
// @name:ko-KR 사라사고딕 폰트 대체 도구
// @namespace https://gist.github.com/zozovo/8a76915acf197a873304dd23f2cfd49c
// @version 8.9
@gxfxyz
gxfxyz / synology_disk_benchmark.sh
Created October 1, 2018 18:16
A simple script to test Synology NAS disk speed with hdparm, dd and fio
#!/usr/bin/env bash
# =======================================================================================
#
# A simple script to test Synology NAS disk speed with hdparm, dd and fio.
#
# How to use:
#
# 1. Save synology_disk_benchmark.sh and xfio.conf to your Synology NAS
# 2. Make it executable: chmod +x synology_disk_benchmark.sh
@ihipop
ihipop / frp systemd.md
Last active November 5, 2024 02:15
FRP systemd 启动脚本 FRP systemd init config
@imShara
imShara / Install-Archlinux-in-Linux-Deploy-with-ssh-fix-and-working-aur.md
Created January 17, 2018 01:04
Установка Archlinux в LinuxDeploy с фиксом ssh и рабочим aur

Установка Archlinux в LinuxDeploy с фиксом ssh и рабочим aur

Устанавливаем в LinuxDeploy

Как обычно ¯_(ツ)_/¯

Фиксим SSH — extra/ssh fail (sshd segmentation fault)

В настройках LinuxDeploy активируем Telnet Подключаемся к telnet серверу LinuxDeploy

$ telnet localhost 5023
@wwqgtxx
wwqgtxx / client_config.sh
Last active November 13, 2019 08:24
tunnel
#!/bin/bash
that_ip=192.168.31.1
server_ip=10.10.16.27
my_ip=$(ip -f inet address show ens33| grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/24'| grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
echo that_ip=$that_ip
echo server_ip=$server_ip
echo my_ip=$my_ip
@onlurking
onlurking / arch.md
Last active July 18, 2024 10:56
Arch Linux chroot on Termux

Arch Linux

chroot on Termux

Let's download the Arch ARM image with the text-browser w3m and install proot:

apt install w3m proot
w3m http://archlinuxarm.org/os/ArchLinuxARM-utilite-latest.tar.gz
// 程序启动器[win32]
// 一个小玩意,作用就是读取与 exe 同名的 .config 文件,并逐条并行执行,不显示窗口
// 以 # 打头的行忽略
// 用于开机挂载一些自带 cmd 窗口的程序
// 自用 vs2017 编译测试通过
// ver 1.1
// 一个新语法:@命令 可以等待此命令结束后再继续运行
// 例如 @ping 127.1 -n 3 等待3秒
@tzmartin
tzmartin / embedded-file-viewer.md
Last active October 25, 2024 02:37
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links