Skip to content

Instantly share code, notes, and snippets.

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

xatier xatier

💭
吃點心
  • ド田舎
View GitHub Profile
@xatier
xatier / vpngate.pl
Created March 24, 2015 08:18
get OpenVPN config files from vpngate server list
#!/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
// ==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 / sec_hw1.md
Last active February 27, 2023 22:04

1. Select a web site.

use wget to mirror www.mit.edu

Imgur

the directory hierarchy of the site.

@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 / 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 / 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 / na2014.md
Last active May 6, 2019 15:51
My midterm problems NCTU NA 2014

2014 NA midterm Perl part

By TA darkx

  • 是非 1 for each, total 10 points
  • 選擇 2 for each, total 6 points
  • 簡答 3 for each, total 33 points
  • bonus 好多分

@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 賽車場',
@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
######################################################
#