Skip to content

Instantly share code, notes, and snippets.

View fabd's full-sized avatar
🏄‍♂️
surfin' the web

Fabrice D. fabd

🏄‍♂️
surfin' the web
  • Belgium
  • 13:17 (UTC +01:00)
View GitHub Profile
@fabd
fabd / GWMouseLook.ahk
Last active May 1, 2024 00:18
Guild Wars Mouselook Toggle (Autohotkey Script) - relieve the wrists by no longer having to hold the right mouse button all the time - best for solo play/questing
;
; Guild Wars Mouselook Toggle v1.2b
;
; - Toggle Mouselook with Tab key
;
; >> While Mouselook is on use the mouse wheel for Camera Zoom In/Out
;
; >> While Mouselook is on, press Interract key to select the entity in front of the character
; and automatically turn off Mouselook - very handy to loot chest, start a NPC dialogue etc.
;
@fabd
fabd / macgaming.md
Last active March 10, 2024 22:25
Running Windows games on a Mac Mini M1 from 2020

Holy cows. Mac Mini M1 16GB, 2020 model with only 8/8 cores.

Rogue Legacy 2

Has a native Mac port. Just run through Mac Steam. Smooth as butter on a 8/8 core M1.

Diablo II Resurrected

  • Use Whisky.
  • Use Windows 10, set version to 14494
@fabd
fabd / EverQuest_II_FullScreen_Borderless.ahk
Last active February 23, 2024 12:31
Better Mouse Look Toggle functionality for EverQuest II (EQ2) than the one built in the game. The main difference is you can press the Interact key when facing an NPC or door or chest etc. without having to toggle off MouseLook first. Simply face an NPC or object and press the Interact key to start a dialogue or grab your loot - it works well. T…
;====================================================================
;
; EverQuest II ( EQ2 ) Better Mouse Look Toggle
;
;
; INSTALL (do this once)
; 1. launch game, go to Options > Performance
; - UNCHECK "fullscreen" (we want "windowed" mode)
; - SELECT the desktop resolution
; 2. Exit game
@fabd
fabd / install ruby and jekyll on mac mini m1 apple silicon.md
Last active August 22, 2023 00:27
Install JEKYLL for GITHUB PAGES on Mac Mini M1 ( AUGUST 2021 )

NOTES

  • I only care about running jekyll for Github Pages.
  • ruby 3.x doesn't seem to work correctly with Jekyll
  • since I don't care about any other users on my machine, I will NOT install gems to user folder to simplify the process

Double check the pre-installed version of RUBY we DONT want (version 2.6)

$ ruby -v
@fabd
fabd / Diablo II.ahk
Last active June 13, 2023 22:03
A script I use to center the game window and play at exactly 2x the original resolution to avoid stretching and blurry image.
; Diablo II LoD
;
; Instructions:
;
; 1) Start the game in windowed mode (eg. "-sndbkg -skiptobnet -w" options in shortcut).
;
; 2) Press Ctrl Alt f , Ctrl Alt h to set game to 1600x1200 centered on the desktop.
;
;
; Ctrl Alt f Toggle active window title bar.
@fabd
fabd / kanjis_table_diff.diff
Last active March 3, 2023 14:59
Kanji Koohii - kanjis table updated from current KANJIDIC & UNIHAN data. Diff before live update.
1296c1296
< 35588 facsimilie 謄 トウ 1211 1296 17
---
> 35588 facsimile 謄 トウ 1211 1296 17
3682c3682
< 20842 Unicode #20842 兪 ツ 20842 20842 9
---
> 20842 Unicode #20842 兪 ユ 20842 20842 9
5469c5469
< 23032 Unicode #23032 姸 ケンゲン 23032 23032 8
@fabd
fabd / RTH-Custom-Keywords.txt
Created January 8, 2015 16:02
Remembering Traditional Hanzi CUSTOM KEYWORDS to import in Reviewing the Kanji
一 one
丁 fourth
七 seven
丈 100 Chinese inches
三 three
上 above
下 below
不 no
丑 clown
且 moreover
@fabd
fabd / log.ts
Last active January 15, 2020 09:54
console.log() helper function in TypeScript
// first attempt : but why?
const log = (...args: [any?, ...any[]]) => { console.log.apply(console, args) }
// better : use console.log() signature
const log = (msg?: any, ...params: any[]) => { console.log.apply(console, [msg, params]) }
// test
log('document is %o', document)
@fabd
fabd / domjs.ts
Last active January 14, 2020 09:23
(TypeScript exercise) A small jquery-like utility library
/**
* A tiny jQuery inspired library for common DOM manipulation.
*
* BROWSER SUPPORT
*
* Recent versions of Edge, Chrome, Safari, iOS Safari, Chrome for Android (as per caniuse.com)
* NOT supported: IE <= 9, Opera Mini.
*
*
* NOTES
@fabd
fabd / escaping.scss
Last active November 19, 2019 15:44
SASS creating utilities and ESCAPING special chars in class name
// Add some sizes to tailwind text-* utilities
//
// Outputs eg:
//
// .text-3\.5 {
// font-size: 3.5rem;
// }
$textExtraSizes: (('2' 2), ('3\\.5' 3.5), ('4\\.3', 4.3));
@each $size in $textExtraSizes {
.text-#{nth($size, 1)} {