Skip to content

Instantly share code, notes, and snippets.

View theodric's full-sized avatar
🎯
Shoobydoowop

þēodrīċ theodric

🎯
Shoobydoowop
View GitHub Profile
@linuxsocist
linuxsocist / autodecode
Last active March 23, 2018 07:07
A collection of scripts I use for capturing and decoding LRPT signals automatically. (See comment for basic setup instructions).
#!/bin/bash
sFile=$(ls -tr S-files/*.s | tail -n 1)
outFile=$(echo ${sFile/.s/})
echo "====================" >> decode-log
./medet $sFile $outFile -r 65 -g 65 -b 64 -q >> decode-log
date +%Y-%m-%d_%H%M >> decode-log
exit 1
@davidfraser
davidfraser / Google Drive Sync Wine Scripting.md
Last active February 11, 2025 10:31
Google Drive Sync Wine Scripting

Google Drive Sync Wine Scripting

This is a set of scripts that help running Google Drive Backup and Sync under Wine, with multiple Google accounts.

Each account is given its own Wine prefix (a separate wine configuration).

To install, run install-gdrive-sync google_account

List the accounts set up in ~/.config/gdrive-accounts

@stungeye
stungeye / crypto_news.json
Created December 18, 2017 04:42
News Site RSS Feeds
[
{
"url": "http://money.cnn.com",
"rss": "http://rss.cnn.com/rss/money_topstories.rss"
},
{
"url": "http://thehill.com",
"rss": "http://thehill.com/rss/syndicator/19110"
},
{
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
@TomFaulkner
TomFaulkner / ubuntu18.04-vfio.md
Last active January 24, 2025 13:52
VFIO Setup on Ubuntu 18.04
@MIvanchev
MIvanchev / article.md
Last active January 18, 2025 11:09
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!
@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
############################################
@t27
t27 / linux-oom-killer-fixes.md
Last active April 24, 2025 00:08
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.

*** 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/
@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: