Skip to content

Instantly share code, notes, and snippets.

@axzxc1236
axzxc1236 / Line_helper.sh
Last active September 22, 2025 10:03
My mitigation to Wine bug 43030
#! /bin/sh
if [[ $(which xdotool) = "" ]]; then
echo "xdotool is required to run this script."
exit
fi
if [[ $(which xwininfo) = "" ]]; then
echo "xwininfo is required to run this script."
exit
@axzxc1236
axzxc1236 / command line output
Created January 9, 2021 15:13
Firefox debugging 0109
➤ firefox
WINDOW DECORATIONS RELOADED
WINDOW DECORATIONS RELOADED
/usr/lib/firefox/defaults/pref/config-prefs.js:1: prefs parse error: unknown keyword
/usr/lib/firefox/defaults/pref/config-prefs.js:3: prefs parse error: unknown keyword
/usr/lib/firefox/defaults/pref/config-prefs.js:4: prefs parse error: unknown keyword
/usr/lib/firefox/defaults/pref/config-prefs.js:4: prefs parse error: unexpected character
/usr/lib/firefox/defaults/pref/config-prefs.js:6: prefs parse error: unexpected character
/usr/lib/firefox/defaults/pref/config-prefs.js:8: prefs parse error: unknown keyword
/usr/lib/firefox/defaults/pref/config-prefs.js:8: prefs parse error: unknown keyword
@axzxc1236
axzxc1236 / disable_ctrl_q.patch
Created January 9, 2021 11:18
A patch file for disabling Ctrl+Q for Firefox 84.0.2
--- a/browser/base/content/browser-sets.inc 2021-01-09 14:51:19.896295395 +0800
+++ a/browser/base/content/browser-sets.inc 2021-01-09 14:51:45.613800339 +0800
@@ -309,19 +309,6 @@
#ifdef XP_MACOSX
<key id="key_sanitize_mac" command="Tools:Sanitize" keycode="VK_BACK" modifiers="accel,shift"/>
#endif
- <key id="key_quitApplication" data-l10n-id="quit-app-shortcut"
-#ifdef XP_WIN
- modifiers="accel,shift"
-#else
@axzxc1236
axzxc1236 / PKGBUILD
Created December 13, 2020 02:34
update for AUR package rpg2000-rtp
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
pkgname=rpg2000-rtp
pkgver=201906
pkgrel=1
pkgdesc="RPG Maker 2000 Runtime Package (Japanese)"
arch=('any')
url="https://tkool.jp/support/download/rpg2000/rtp"
license=('custom: commercial')
makedepends=('unshield-git' 'convmv' 'glibc')
@axzxc1236
axzxc1236 / virt-manager configuration.xml
Created September 23, 2020 13:14
virt-manager configuration file
<domain type="kvm">
<name>win10</name>
<uuid>fe91360f-b471-41db-a4d5-e662135f8d88</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">4726784</memory>
<currentMemory unit="KiB">4726784</currentMemory>
From 2fc727a38b78ed792094c65920905b60bf0ea2e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?axzxc1236/=E4=BD=B4=E5=BC=8C?=
<axzxc1236@users.noreply.github.com>
Date: Fri, 4 Sep 2020 23:02:17 +0800
Subject: [PATCH] Alternative method for comparing blocks
Shorter and (in my opinion) more readable.
---
zeromerge.c | 62 +++++++++--------------------------------------------
1 file changed, 10 insertions(+), 52 deletions(-)
@axzxc1236
axzxc1236 / log
Created June 24, 2020 09:46
unrar t
UNRAR 5.91 beta 1 freeware Copyright (c) 1993-2020 Alexander Roshal
Testing archive sdcard/folder/folder.part01.rar
Testing folder/video.mkv  0% 1%
Testing archive sdcard/folder/folder.part02.rar
@axzxc1236
axzxc1236 / gist:55c0042064fd5d7783729d83516bd79b
Created June 11, 2020 03:09
How in install python-pip package in Ubuntu 20.04 (Focal)
SMH Ubuntu keeps python package for Python2 but removed python-pip.
Now you have to download two packages from debian website.
1. python-pip-whl https://packages.debian.org/buster/all/python-pip-whl/download
2. python-pip https://packages.debian.org/buster/all/python-pip/download
Then use dpkg command to install packages
1. sudo dpkg -i python-pip-whl_18.1-5_all.deb
2. sudo dpkg -i python-pip_18.1-5_all.deb
Now you should be able to use pip command.
you can use `pip --version` to verify.
@axzxc1236
axzxc1236 / Human options
Last active April 3, 2020 07:11
List of /r/imposter options
the fact that i'm no imposter.
pretending i am what i am not the thing i am supposed to be.
i harness the power of the sun.
pretending that i know more about the world than i actually do.
everything does because i doesn't.
i voted for hillary clinton and i regret it.
believing the lie in order to make it the truth.
knowing freedom has never really been free.
answering plausible things.
i need to be believed to enjoy anything.
@axzxc1236
axzxc1236 / # openssl@1.1 - 2020-01-23_10-57-07.txt
Created January 23, 2020 03:03
openssl@1.1 on Ubuntu 18.04.3 LTS - Homebrew build logs
Homebrew build logs for openssl@1.1 on Ubuntu 18.04.3 LTS
Build date: 2020-01-23 10:57:07