Skip to content

Instantly share code, notes, and snippets.

View xatier's full-sized avatar
💭
吃點心

xatier xatier

💭
吃點心
  • ド田舎
View GitHub Profile
// ==UserScript==
// @name Wikiwand 自動 zh-TW 切換
// @namespace https://www.wikiwand.com/
// @version 0.0.3
// @description switch to zh-tw automatically
// @author xatier
// @match https://www.wikiwand.com/zh/*
// @match https://www.wikiwand.com/zh-hant/*
// @match https://www.wikiwand.com/zh-hk/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikiwand.com
@xatier
xatier / PTTimgur.user.js
Last active August 15, 2022 01:49
PTT imgur 展開
// ==UserScript==
// @name PTT imgur 展開
// @namespace https://www.ptt.cc/bbs
// @version 0.0.1
// @description 展開 imgur 圖片連結
// @author xatier
// @match https://www.ptt.cc/bbs/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=ptt.cc
// @grant none
// ==/UserScript==
@xatier
xatier / build-vim.sh
Created September 11, 2020 04:57
Script to automatically build vim git trunk (on RHEL)
#!/usr/bin/env bash
# xatier's script to build vim trunk
#
# put the following into your ~/.bashrc to use this build
# export PATH="/home/$USER/work/vim/build/bin:$PATH"
set -euo pipefail
main() {
@xatier
xatier / korean_fish.py
Created May 5, 2019 00:18 — forked from fkztw/korean_fish.py
Yet another chatbot
#!/usr/bin/env python3
import itertools
whats = [
'自經區', '自貿區',
'摩天輪', '愛情摩天輪', '愛情產業鏈',
'發大財',
'迪士尼',
'F1', 'F1賽車場', 'F1 賽車場',

Requirements

  • hareware: GCE g1-small instance (1 vCPU, 1.7 GB memory), about $15/mo

  • software (Archlinux):

sudo pacman -Sy nginx certbot docker docker-compose

# optional tools
* 價位單位為 JPY
** 儘量附上 食べログ 的鏈結,請參考
うに虎喰 (築地市場/寿司)★★★☆☆3.23
http://tabelog.com/tokyo/A1313/A131301/13037980/
國產海膽蓋飯,超好吃
價位 6k 上下

總開銷 = 飯店交通 + 吃吃吃吃

  • 2230 + 2940 = 5170

飯店交通

  • 2230
飯店交通 詳細 價錢 合支
@xatier
xatier / oxford.pl
Last active August 29, 2015 14:18
How does Oxford pronounce the word
#!/usr/bin/env perl
use 5.018;
#####################################################
##
## How does Oxford pronounce the word
##
## a little script to grab pronunciations from Oxford online dictionary
##
@xatier
xatier / desktop.md
Last active May 22, 2022 21:17
My desktop

Total: 2150 USD

  • Intel i9-9900K 8C16T @5.0 GHz LGA1151 300 Series
  • Arctic Silver 5 High-Density Polysynthetic Silver Thermal Compound
  • MSI MEG Z390 ACE LGA 1151 (300 Series) Intel Z390 SATA 6Gb/s USB 3.1 ATX Intel Motherboard
  • Corsair Air Series AF120 LED 120mm Quiet Edition High Airflow Fan Single Pack - Blue (CO-9050015-BLED)
  • MasterAir Maker 8 High-end CPU air cooler. Featuring 3D Vapor Chamber technology
  • CORSAIR Vengeance LPX 128GB (4 x 32GB) 288-Pin DDR4 SDRAM DDR4 2666 (PC4 21300) CMK64GX4M2A2666C16
  • GIGABYTE GeForce GTX 1650 MINI ITX OC 4G Graphics Card, Mini ITX Form Factor, 4GB 128-Bit GDDR5, GV-N1650IXOC-4GD Video Card
  • EVGA 700 GD 100-GD-0700-V1 700W ATX12V / EPS12V 80 PLUS GOLD
  • Corsair Carbide Series SPEC-06 CC-9011144-WW Black Steel / Plastic / Tempered Glass ATX Mid Tower Computer Case
@xatier
xatier / s.pl
Last active July 19, 2018 08:19
extract stickers to WebP format from LINE.app cache
#!/usr/bin/env perl
#####################################################
## LINE stickers extractor
##
## extract stickers to WebP format from LINE.app cache
##
## Author: @xatierlikelee
## License: GPL
######################################################
#