Skip to content

Instantly share code, notes, and snippets.

View Francesco149's full-sized avatar
:shipit:
memes

lolisamurai Francesco149

:shipit:
memes
  • /dev/memes
  • Italy
View GitHub Profile

Detecting and dealing with weird file name encodings in zip files on Linux

A friend of mine recently asked me for help on a specific zip file that was supposed to contain a bunch of files with japanese names.

No matter what was used to extract or what the system locale was set to, the file names would end up garbled. We tried unzip and 7z to no avail.

After some googling I found guides that explained that you have to prevent 7z from automatically converting to utf8 by unzipping with LC_ALL=C and

@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active March 21, 2025 16:22
Ultimate guide to low-latency osu on linux

How to disable font antialiasing on Firefox

On many distros (in my case mint) firefox does not pick up fontconfig settings when you disable font antialiasing or mess with the hinting. Especially if it's statically linked to its own cairo instead of using the system's version.

This is easily fixed by creating a .fonts.conf file in your home directory that forces the desired hinting and antialiasing values:

cat > ~/.fonts.conf << "EOF"
@Francesco149
Francesco149 / gentoo-xsp-build-fix.sh
Created September 12, 2016 12:13
Fix for building dev-dotnet/xsp on gentoo
su
ln -s mcs /usr/bin/gmcs
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild fetch
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild unpack
cd /var/tmp/portage/dev-dotnet/xsp-2.10.2-r2/work/xsp-2.10.2
sed -i 's|\(/mono/2.0\)|\1-api|' configure
sed -i 's|\(/mono/4.0\)|\1-api|' configure
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild compile
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild install
ebuild /usr/portage/dev-dotnet/xsp/xsp-2.10.2-r2.ebuild qmerge

shigebot 2.0

by Franc[e]sco/lolisamurai

Available commands for channel #lolisamurai (+ = mod only):

  • !hi: hi

shigebot 2.1

by Franc[e]sco/lolisamurai

Available commands for channel #shigetora (+ = mod only):

  • +!cmdadd command_name command_text
  • +!cmdremove command_name
  • +!cmdedit command_name new_command_text
  • +!modonly command_name yes/no
  • !appeal: Success 2015-11-26
@Francesco149
Francesco149 / commands-for-lolisamurai.md
Created June 19, 2016 16:19
Shigebot Commands for #lolisamurai

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #lolisamurai (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)
@Francesco149
Francesco149 / commands-for-shigetora.md
Last active June 26, 2016 17:18
Shigebot Commands for #shigetora

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #shigetora (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)

#How to free up Windows 7 disk space

Here are some ways to reduce the disk space usage of Windows 7 for those with a really small SSD who need space on C: to install updates or software such as visual studio which requires space on your primary drive to even install, no matter what.

This guide is mainly a reminder memo for myself, so forgive me if it's not too detailed.

All code blocks imply that you run the commands in an elevated command prompt (Start -> type "cmd" -> right click "cmd" -> Run As Administrator).

Backstory: I've recently tried installing visual studio express in a virtual machine that had very little disk space on the main drive (28gb partition of my SSD). I had about 2 gigs of space free and even with Program Files and Program Files (x86) symlinked to a slower, larger drive that I use for anything except the OS, the installer would just crash either instantly or during installation. This happened for VS2008 Express, VS2013 Community, VS2015 Community. Also, installing large updates was

@Francesco149
Francesco149 / commands-for-thelewa.md
Last active December 21, 2015 15:23
Shigebot Commands for #thelewa

Shigebot 1.2.2

by Franc[e]sco / lolisamurai

Available commands for channel #thelewa (+ = mod only):

  • +!cmdadd: adds a command (Usage: !cmdadd commandname text)
  • +!cmdremove: removes a command (Usage: !cmdremove commandname)
  • +!cmdedit: changes the text for a command (Usage: !cmdedit commandname text)
  • +!modonly: limits a command to mods only (Usage: !modonly commandname yes/no)
  • +!cooldown: milliseconds before a command can be reused (Usage: !cooldown ms)