Skip to content

Instantly share code, notes, and snippets.

View theodric's full-sized avatar
🥔
mmm potatoes

þēodrīċ theodric

🥔
mmm potatoes
View GitHub Profile
@theodric
theodric / fixtweets.sh
Created October 13, 2024 22:07
Extract your tweets in plaintext from the tweets.js / tweets-part1.js files inside your Twitter archive, and remove old-fashioned retweets, plain URLs, and other crap
cat tweets.js | grep -i full_text | sed -E 's/.*"full_text" *: *"(.*)",/\1/' | egrep -v ^@ | egrep -v ^https:// | egrep -v ^RT > fulltext2.txt
@dillera
dillera / diablo_install.txt
Last active October 24, 2024 04:36
Installing Diablo on IRIX using remote RPMs
Here are some directions to install Diablo (devilutionX) on your SGI running IRIX.
- THANKS to Onre, HAL, Unxmaal, jenna16bit, mach-kernal of SGI UG! They did this.
- tested on 6.5.30, with RSE 0.0.7 on a Fuel and base Octane 1. Sound just works
- this is using SDL2, so many more games are in the pipeline!
- all packages were built on my Fuel with RSE 0.0.7 and patches and help from the gang above
- the dandyum repo host is mine and running on Digital Ocean droplet
- many hours of hacking, building packages and staging so you can install with one command... enjoy
- join us and help at http://sgi.sh/
@akihikodaki
akihikodaki / README.en.md
Last active July 1, 2025 19:31
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

  • Two native ports exist.
@chaiyujin
chaiyujin / ubuntu_update_booting_kernel.md
Created December 8, 2020 12:42
Ubuntu: Install Kernel and Set GRUB Default Kernel

Ubuntu: Install Kernel and Set GRUB Default Kernel

Install Kernel

Install the default kernel:

sudo apt install linux-generic

Set GRUB Default Kernel

  1. Find entrance from /boot/grub/grub.cfg
    • Get the $menuentry_id_option:
*** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER ***
The contents of this file are essentially a laundry list of things you should definitely not do
beceause they might get you killed. I am not just not telling you to do this, I am telling you
NOT to do this. OK? Disclaimer accepted? Because please don't sue me, I'm just trying to keep
you alive, but I'm not a medical authority so you should assume I got all this information from
4chan and infowars and not from like the WHO or the CDC. Cool? Great.
*** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER *** DISCLAIMER ***
Basic guide to staying the fuck home:
https://staythefuckhome.com/
@t27
t27 / linux-oom-killer-fixes.md
Last active June 2, 2025 10:26
Dealing with the Linux OOM Killer

Dealing with the Linux OOM Killer at the program level

Do this in cases when you dont want to change the os-level settings, but only want to disable the OOM killer for a single process. This is useful when youre on a shared machine/server.

The OOM killer uses the process level metric called oom_score_adj to decide if/when to kill a process. This file is present in /proc/$pid/oom_score_adj. The oom_score_adj can vary from -1000 to 1000, by default it is 0.

You can add a large negative score to this file to reduce the probability of your process getting picked and terminated by OOM killer. When you set it to -1000, it can use 100% memory and still avoid getting terminated by OOM killer.

@jordanorelli
jordanorelli / hostapd.conf
Last active October 26, 2023 13:13
Raspberry Pi 3 B+ access point config
# this is the built-in wifi chip
interface=wlan0
driver=nl80211
ssid=jorelli's raspberry pi
# this config got me 30mbps
# this is 2.4GHz 802.11n configuration
############################################
@MIvanchev
MIvanchev / article.md
Last active May 24, 2025 14:52
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@TomFaulkner
TomFaulkner / ubuntu18.04-vfio.md
Last active May 20, 2025 07:47
VFIO Setup on Ubuntu 18.04
import sys
import extract_icon
import os
import argparse
class MorIcons:
"""
parses an ``APPS.INF`` file, dumps all icons from a PE binary and
generates an HTML file with all the icons and associated program
names