Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
吃點心

xatier xatier

💭
吃點心
View GitHub Profile
@xatier
xatier / build-vim.sh
Created Sep 11, 2020
Script to automatically build vim git trunk (on RHEL)
View build-vim.sh
#!/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 — forked from M157q/korean_fish.py
Yet another chatbot
View korean_fish.py
#!/usr/bin/env python3
import itertools
whats = [
'自經區', '自貿區',
'摩天輪', '愛情摩天輪', '愛情產業鏈',
'發大財',
'迪士尼',
'F1', 'F1賽車場', 'F1 賽車場',
View Mastodon on GCE.md

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
View 201606 東京旅遊 餐廳紀錄
* 價位單位為 JPY
** 儘量附上 食べログ 的鏈結,請參考
うに虎喰 (築地市場/寿司)★★★☆☆3.23
http://tabelog.com/tokyo/A1313/A131301/13037980/
國產海膽蓋飯,超好吃
價位 6k 上下
View Tainan_bill.md

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

  • 2230 + 2940 = 5170

飯店交通

  • 2230
飯店交通 詳細 價錢 合支
@xatier
xatier / oxford.pl
Last active Aug 29, 2015
How does Oxford pronounce the word
View oxford.pl
#!/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 Dec 19, 2019
My desktop
View desktop.md

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 Jul 19, 2018
extract stickers to WebP format from LINE.app cache
View s.pl
#!/usr/bin/env perl
#####################################################
## LINE stickers extractor
##
## extract stickers to WebP format from LINE.app cache
##
## Author: @xatierlikelee
## License: GPL
######################################################
#
@xatier
xatier / vpngate.pl
Created Mar 24, 2015
get OpenVPN config files from vpngate server list
View vpngate.pl
#!/usr/bin/perl
#####################################################
# OpenVPN config tool for vpngate
# http://www.vpngate.net/en/
#
# get OpenVPN config files from vpngate server list
#
# Author: @xatierlikelee
# License: GPL
@xatier
xatier / dmhy-magdl.py
Last active Aug 29, 2015 — forked from dannvix/dmhy-magdl.py
Command-line downloader (via magnet link) for share.dmhy.org
View dmhy-magdl.py
#!/usr/bin/env python3
# encoding: utf-8
# dmhy-magdl.py -- command-downloader for share.dmhy.org
# originally from my friend @dannvix
# modified by @xatier
# https://gist.github.com/dannvix/bcdbc83a880728f658cb
import datetime
import sys
import urllib.parse