Skip to content

Instantly share code, notes, and snippets.

View temberature's full-sized avatar

Tong temberature

  • USA
View GitHub Profile
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active July 1, 2026 11:03
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@dmgig
dmgig / FineReader.txt
Last active September 14, 2022 15:58
Abbyy FineReader Applescript Dictionary
You can choose File > Open Dictionary in Script Editor to examine the scripting dictionary of a scriptable application or scripting addition on your computer. Or you can drag an application icon to the Script Editor icon to display its dictionary (if it has one). You can also open scripting dictionaries in Xcode.
https://developer.apple.com/library/content/documentation/AppleScript/Conceptual/AppleScriptX/Concepts/work_with_as.html#//apple_ref/doc/uid/TP40001568-1153006
# finereader
finereader n :
get languages count v : Returns the number of recognition languages.
get languages count
@JohannesDeml
JohannesDeml / README.md
Last active November 28, 2025 09:43
Batch convert images with inkscape on windows

Batch convert svg|pdf|eps|emf|wmf|ai|ps|cdr to eps|pdf|png|jpg|tiff|svg|ps|emf|wmf

Screenshot Batch converter for Windows using Inkscape with the command line
InkscapeBatchConvert is an easy to use solution to quickly convert all files of a folder to another type without the need to open Inkscape. The program uses Windows Batch scripting and will only work on Windows.
Tested with Inkscape 1.0.x - 1.3.x ✅ (The last version that supports Inkscape 0.9.x can be found here)

Usage

  1. Download _InkscapeBatchConvert.bat
  2. Put it in the folder where you have files you wish to convert (will also scan on all subfolders for files of input type).
  3. Then double click the file to start it.
@jingmian
jingmian / ShadowSocks.sh
Last active January 9, 2023 05:27
Ubuntu下安装ShadowSocks客户端
sudo apt-get update
sudo apt-get install python-pip
sudo apt-get install python-setuptools m2crypto
pip install shadowsocks
如果是ubuntu16.04 直接 (16.04 里可以直接用apt 而不用 apt-get 这是一项改进)
sudo apt install shadowsocks
nohup sslocal -c /opt/trainee/shadowsocks.json &
@notoriousb1t
notoriousb1t / index.html
Last active July 18, 2019 12:11
Request Idle Callback Example
<div id="app">
<div>
<button @click="task.start()">Start</button>
<button @click="task.stop()">Stop</button>
</div>
<textarea class="log">{{log}}</textarea>
</div>
@mi-lee
mi-lee / all-books-search.js
Created March 20, 2018 23:15
Bookmarklet. Searches for highlighted book title on: Libgen, UBC Library, Goodreads, and Toronto Public Library
javascript:window.open('http://www.torontopubliclibrary.ca/search.jsp?Ntt='+encodeURIComponent(window.getSelection().toString()), '', 'left=0,top=0,width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0');
javascript:window.open('http://gen.lib.rus.ec/search.php?req='+encodeURIComponent(window.getSelection().toString()), '', 'left=0,top=0,width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0');
javascript:window.open('http://ubc.summon.serialssolutions.com/search?spellcheck=true&s.q='+encodeURIComponent(window.getSelection().toString()), '', 'left=0,top=0,width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0');
javascript:window.open('https://www.goodreads.com/search?utf8=✓&search%5Bquery%5D='+encodeURIComponent(window.getSelection().toString()), '', 'left=0,top=0,width=550,height=450,personalbar=0,toolbar=0,scrollbars=0,resizable=0');
@kpmiller
kpmiller / quartzexample.py
Created September 11, 2018 18:58
Example of using core graphics from quartz to make a pdf file, using Apple built in python bindings
#!/usr/bin/python
#tested on 10.12 and 10.13
import Quartz
from Quartz.CoreGraphics import *
import Cocoa
import random
random.seed()
@zzjtnb
zzjtnb / Telegram解决+86不能私聊其他用户的方案:
Created November 18, 2018 08:09
@SpamBot 提出申请半小时内即可解开
Telegram 给某人发送私聊消息时遇到如下提示:
Sorry,you can only send messages to mutual contacts at the momet.
中文:抱歉,您现在只能给双向联系人发送消息。
原因:
前段时间币圈利用Telegram 的便利,大量发广告和拉人进群。Telegram 限制了+86 大陆手机号绑定的账号的私聊。
+86 的账号不能给非+86 的账号主动发起私聊,+86 的账号能给+86 主动发起私聊的;刚刚注册的+86 账号也不能发起私聊的,过段时间就OK了。
解决办法:
1. 两个人建立一个群来作为私聊交流