Skip to content

Instantly share code, notes, and snippets.

View bobby1030's full-sized avatar

Bobby Ho bobby1030

  • Taipei, Taiwan
View GitHub Profile
@bobby1030
bobby1030 / miniflux.custom.css
Created October 22, 2022 05:53
Miniflux CSS
/*
==UserCSS==
@name Miniflux CSS
@match
@version 1.0
==/UserCSS==
*/
@font-face {
@bobby1030
bobby1030 / cwTeX-on-Linux.md
Created June 11, 2022 13:35
在 Arch Linux 上安裝 cwTeX 5.1

在 Arch Linux 上安裝 cwTeX 5.1

Last Updated: 2022-06-11

現在 TeX 生態系在中文排版需求上,已經發展出可以直接原生支援 Unicode 和 OpenType 字型的 XeTeX 引擎,可以直接編譯包含中文的 TeX 文件,而不再需要依賴 cwTeX 作為預處理器(preprocessor)將包含中文字的 TeX 文件轉換成原版 LaTeX 引擎可以編譯的格式。

但如果你因為某些原因仍然非在 Linux 下使用 cwTeX 不可,然後在安裝上遇到一些問題,以下是經嘗試後可以成功的安裝方法。

準備環境

@bobby1030
bobby1030 / telegramdesktop.desktop
Created August 20, 2017 08:28
Telegram Desktop Entry
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
@bobby1030
bobby1030 / adapta-build-script.sh
Created July 24, 2017 11:08
Adapta GTK Theme building script
#!/bin/bash
WORKING_USER=$(who am i | awk '{print $1}')
if [ `id -u` = 0 ] ; then
sudo -u $WORKING_USER ./autogen.sh --enable-parallel --disable-cinnamon --disable-flashback --disable-unity --disable-xfce --disable-mate --disable-openbox
sudo -u $WORKING_USER make
rm -rf /usr/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.local/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
make install
@bobby1030
bobby1030 / disableEsunAutoLogout.user.js
Last active June 14, 2017 14:00
停用玉山網銀 300 秒自動登出 - 瀏覽器腳本
// ==UserScript==
// @name Esun Ebank disable auto logout countdown
// @namespace esun.disable.autologout
// @include https://ebank.esunbank.com.tw/*
// @version 1
// @grant none
// ==/UserScript==
setInterval(function(){
document.getElementById('iframe1').contentWindow.$.iloginchecker().keepSession();
}, 100000)
@bobby1030
bobby1030 / README.md
Last active January 18, 2019 02:10
Steam賣卡利潤最大化計算器 forked from https://steamcn.com/t199008-1-1

Steam賣卡利潤最大化計算器

本專案由 SteamCN 上,@lzstzr 的作品衍生而來

  • 更改實時匯率 API,改為使用 https://tw.rter.info/howto_currencyapi.php
  • 轉換的匯率由 USD->CNY,改為 USD->TWD 以符合臺灣使用者需求
  • 無法獲取實時匯率時,預設匯率改為 1USD = 30.1TWD

修改的版本基於v0.2.19

@bobby1030
bobby1030 / README.md
Last active June 5, 2017 06:15
A fork of "Wikipedia Material" userstyle

Wikipedia Material

This is my own fork of Wikipedia Material userstyle.

Diffs to the original release

  1. Remove regional language indicator (ex. Trad.Chinese & Simp.Chinese switcher in Chinese Wikipedia).
  2. Remove line numbers in the beginning of the table items.

Usage

  1. Use the CSS file below directly.
  2. Patch the upstream CSS file with the diff file. (Unix's patch recommended)
@bobby1030
bobby1030 / stream_list.txt
Last active February 5, 2017 04:16
Peaceful Internet Streaming Services Blocklist (Mainly CN & TW)
dailymotion.com
vigortv.net
vigor.enjoy101.org
sou-etv.com
vmore.tv
news520.net
fengyunzhibo.com
huya.com
douyutv.com
sk-knower.com
@bobby1030
bobby1030 / facebook-tpe-hosts
Last active December 3, 2016 12:36
Facebook TPE 節點 / Facebook TPE Node (hosts formatted) Thanks to https://3cyber.com/3571
#Facebook TPE IPv4
31.13.87.1 www.facebook.com
31.13.87.1 www.messenger.com
31.13.87.1 m.facebook.com
31.13.87.1 0-edge-chat.facebook.com
31.13.87.1 1-edge-chat.facebook.com
31.13.87.1 2-edge-chat.facebook.com
31.13.87.1 3-edge-chat.facebook.com
31.13.87.1 4-edge-chat.facebook.com
31.13.87.1 5-edge-chat.facebook.com
[
{ "keys": ["alt+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["alt+shift+down"], "command": "select_lines", "args": {"forward": true} },
]