Inane Observations $ sudo fix_it
  • Breaking URLs anywhere in (Lua)LaTeX (even in itemize, enumerate, adjustwidth, etc. environments)

    08 January 2016 | hyperref url latex lualatex UrlBigBreaks UrlBreaks | Comment

    \( \LaTeX \) is fantastic, but sometimes it does strange things, like breaking \urls only at certain points. Using tricks like this glorious \UrlBreaks hack, one can force URLs to break at any point, but for some reason, this does not work in… »

  • Random Question Generator on Anki using JavaScript

    15 March 2015 (updated 17 October 2016) | guide anki javascript | Comment

    Updated 2016-10-17 to work with AnkiDroid!

    Introduction

    Anki is brilliant. It has really lived up to its motto ‘Remember Anything, Remember Anywhere, Remember Efficiently’ for being my go-to way to remember notes and other information. This is made all the more powerful through its HTML-based… »

  • GUIDE: Automatically resize phpBB avatars in post displays

    18 August 2014 | | Comment
    1. Open the includes/functions_display.php file in a text editor.
    2. Above the return '<img src="' . (str_replace( … line, insert the code:
      $inputwidth = 100;
      $inputheight = 100;

      // So then if the image is wider rather than taller, set the width and figure out the height
    … »
  • FIX: Steam crashes when using radeon driver

    12 June 2014 | ati arch linux defense of the ancients error amd guide linux steam gaming dota | Comment

    Symptoms

    Steam crashes upon opening, after verifying the installation and before opening the main interface, with something about the OpenGL context not supporting direct rendering. Soon afterwards, the X server crashes. (I'm not crashing my computer again just to find the exact error message, thank… »
  • Evil Bash Scripts: Sudo Impersonator

    01 May 2014 | misc linux | Comment
    [runassudo@NEXUS tmp]$ cat awesomeprogram
    #!/bin/bash
    if [[ $EUID -ne 0 ]]; then
    echo "This script must be run as root"
    else
    echo "Sorry, try again."
    echo -n "[sudo] password for $SUDO_USER: "
    read -s tmp
    echo ""
    echo "PASSWORD IS $tmp"
    # Do evil things
    … »
  • FIX: LoL errors on (PlayOn) Linux

    31 March 2014 | error guide linux league of legends lol wine gaming | Comment

    Problem

    ‘The game has crashed. Please try to reconnect.’ immediately after champion select.

    Solution

    Open /etc/hosts on the host computer in the text editor of your choice.
    On the line that resembles:
    127.0.0.1   localhost.localdomain   localhost
    add the name of your computer (found in /etc/hostname). For example:… »
« First ‹ Previous Page 33 34 35 36 37 38 39 Next › Last »
  • Home
  • Git (Archives: GitLab, GitHub)
  • Research
  • Music
  • Posts
    • August 2025 (1)
    • June 2025 (3)
    • May 2025 (3)
    • December 2024 (2)
    • November 2024 (2)
    • More…
  • Tags
    • medicine (25)
    • copyright (20)
    • opentally (20)
    • drm (19)
    • encryption (13)
    • monash (12)
    • mathematics (11)
    • rust (10)
    • statistics (10)
    • proportional representation (8)
    • python (8)
    • victoria (8)
    • law (7)
    • ledger (7)
    • meeting procedure (7)
    • ptv (7)
    • public transport (7)
    • defective by design (6)
    • digital rights management (6)
    • creative commons (4)
    • webassembly (4)
    • accounting (3)
    • drcr (3)
    • metro trains (3)
    • paediatrics (3)
    • politics (3)
    • 2fa (2)
    • c (2)
    • graphics (2)
    • mfa (2)
    • pdf (2)
    • victorian electoral commission (2)
    • android (5)
    • security (18)
    • programming (15)
    • cryptography (12)
    • bookkeeping (7)
    • voting systems (8)
    • med in review (11)
    • music (10)
    • parliamentary procedure (7)
    • totp (2)
    • reverse engineering (20)
    • obfuscation (12)
    • single transferable vote (19)
    • ebook (16)
    • elections (12)
    • java (6)
    • linux (33)
  • Lee Yingtong Li
  • blog@yingtongli.me
  • My CV · CV of Failures
@RunasSudo

Most material on this website is available under an open licence. See https://yingtongli.me/blog/copyright.html for details.