Skip to content

Instantly share code, notes, and snippets.

View asl97's full-sized avatar

asl97 asl97

  • singapore
  • 00:06 (UTC +08:00)
View GitHub Profile
// ==UserScript==
// @name championscans download button
// @version 0.3
// @description Add a javascript powered download button
// @match https://reader.championscans.com/read/*
// @require https://stuk.github.io/jszip/dist/jszip.js
// @require https://stuk.github.io/jszip-utils/dist/jszip-utils.js
// @require https://stuk.github.io/jszip/vendor/FileSaver.js
// @grant none
// ==/UserScript==
@asl97
asl97 / D-Tector Information
Last active April 4, 2024 06:50
This is mostly just a dump of information on the D-Tector.
This is mostly just a dump of information on the D-Tector.
@asl97
asl97 / CoH2 Treasure Chests Traps.md
Last active June 22, 2017 17:34
Class of Heroes 2 Treasure Chests Traps
Trap Effect
Gravel Damage the party member which open the chest.
Stinger Poison the party member which open the chest.
Magic Leech A small amount MP is drained from all party members.
Poison Gas A random group of party members become poisoned.
Bomb A random group of party members become damaged.
Grenade A random group of party members become critically damaged
Stun Gas A random group of party members become paralyzed.
Medusa Gaze A random group of party members become petrified.
@asl97
asl97 / globaltimecli.py
Created May 10, 2017 07:27
Read orage globaltime config and output times, useful for conky or i3bar kind of stuff.
import os
import pytz
import datetime
import configparser
config = configparser.ConfigParser()
config.read(os.path.expanduser("~")+"/.config/globaltime/globaltimerc")
now = datetime.datetime.now(pytz.UTC)
o = []
@asl97
asl97 / Quora_without_registration.user.js
Last active May 3, 2017 04:37
Quora without registration userscript
// ==UserScript==
// @name Quora without registration
// @version 0.0.2
// @namespace https://gist.githubusercontent.com/asl97/
// @downloadURL https://gist.github.com/asl97/52ddd1e8417237bf06931b3f64b9f42c/raw/Quora_without_registration.user.js
// @description Allows to browse quora without login/registration, removing the offending modal popup
// @author ASL97
// @include http://*.quora.com/*
// @include https://*.quora.com/*
// @require http://code.jquery.com/jquery-latest.min.js
@asl97
asl97 / config
Created April 25, 2017 21:38
i3 config.d base config
# stupid version hint thingy
# i3 config file (v4)
# basic stuff so we can exit in case config fail
set $mod Mod4
font pango:monospace 8
bindsym $mod+Shift+e exec "i3-msg exit"
# multiline since we need to execute the command synchronous
# 1. copy this config over for restoring after loading config.d
@asl97
asl97 / KissAnime Thumbnails List.user.js
Last active March 8, 2017 13:38
Tampermonkey Userscript for embedding image into KissAnime anime listing
// ==UserScript==
// @name KissAnime Thumbnails List
// @version 0.0.2
// @namespace https://gist.githubusercontent.com/asl97/
// @downloadURL https://gist.githubusercontent.com/asl97/f96314e965f861bead1d4bacb206b458/raw/KissAnime%2520Thumbnails%2520List.user.js
// @description Embed thumbnails into anime list
// @author ASL97
// @include http://kissanime.ru/Genre/*
// @include http://kissanime.ru/AnimeList*
// @grant none
@asl97
asl97 / mhp2g-mhfu quest structure
Last active September 24, 2020 06:07
mhp2g-mhfu quest raw data structure format
# information gotten from using mhp2g custom quest editor
# launch using `LANG="zh_CN" wine 'MHP2G_QE v0.80.exe'`
# Note: psp is little-endian
unknown stuff:
failure condition > it seem to affect multiple bytes
note:
supplies data end with `00 00 64 ea`
@asl97
asl97 / test.atom
Last active March 15, 2016 19:59
remote attachment in feed test for thunderbird (X-Mozilla-External-Attachment-URL)
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>test</title>
<description>testing remote attachment in feed</description>
<atom:link href="http://example.com" rel="next"></atom:link>
<link>http://example.com</link>
<item>
<title>test</title>
<description>test</description>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Welcome to Jekyll!</title>
<meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.