Skip to content

Instantly share code, notes, and snippets.

View Ternoc's full-sized avatar

Ternoc Ternoc

  • Bordeaux
  • 12:24 (UTC +02:00)
View GitHub Profile
@monyxie
monyxie / Setting up Infobox in MediaWiki v1.41 .md
Last active August 23, 2025 01:57
Setting up Infobox in MediaWiki v1.41

The following instructions are only tested in MediaWiki 1.41.

  1. Add the following code to LocalSettings.php to enable the Scribunto extension
wfLoadExtension( 'Scribunto' );
$wgScribuntoDefaultEngine = 'luastandalone';
  1. Make sure path-to-extensions/Scribunto/includes/engines/LuaStandalone/binaries/yourOS/lua has execute permission bit set

  2. Download and install the TemplateStyles extension

@pdcmoreira
pdcmoreira / bringBackGoogleMapsButton.user.js
Last active September 3, 2025 13:16 — forked from Daan-Grashoff/README.md
Bring back the google maps button when searching on google [Updated on 2025-09-03]
// ==UserScript==
// @name Bring back Google Maps button
// @namespace http://tampermonkey.net/
// @version 2024-02-13
// @description Bring back Google Maps button in search results
// @author You
// @match https://www.google.com/*
// @match https://google.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant none
@Daan-Grashoff
Daan-Grashoff / README.md
Last active September 16, 2025 18:06
Bring back the google maps button when searching on google

Google Maps Button Restorer

This userscript brings back the Maps button in Google Search results, making it easy to search locations directly in Google Maps.

Features

  • Adds a Maps button next to the "All", "Images", "News" tabs in Google Search
  • Works across multiple Google domains (.com, .co.uk, .nl, .de, .fr)
  • Automatically updates when using Google's dynamic search
  • Maintains button presence during navigation
@masterflitzer
masterflitzer / ics-filter.py
Last active September 1, 2025 11:00
Simple script to filter or filter out events of an ics file based on their name (summary) using regex
#!/usr/bin/env python3
from ics import Calendar
import argparse
import re
import sys
def main():

First Working FH5 Save Swapping Guide

Let me preface this by saying this is a new method. It might not work 100% and there might be issues. As of now, its the best you are going to get. The first round of steps is to convert a given save to your own account.

MS Initial Conversion Steps:

Click to expand
@serg987
serg987 / docker-compose.yml
Last active September 23, 2025 09:35
adguardhome docker-compose with macvlan
# short link: www.shorturl.at/wzM69
version: "3"
networks:
adguard-macvlan:
name: adguard-macvlan
driver: macvlan
driver_opts:
parent: eno1
ipam:
@bruce-willis
bruce-willis / yunohost-oracle-free-tier.md
Last active July 16, 2025 10:23
How to setup YunoHost at Oracle free tier VM (works on AMD and ARM servers)
  1. Register for Oracle Cloud Free Tier
  2. Create compute instance
    • change image to Canonical Ubuntu
    • confirm that a public IPv4 address is assigned
    • upload your public ssh key
    • leave everything blank in Boot volume
  3. Enable Internet Access
    • Instances → Instance details → Subnet → Default Security List → Add Ingress Rules
    • HTTP: Stateless: Checked
@lijikun
lijikun / dkms-kmod-auto-mok-signing.md
Last active August 22, 2025 04:48
Automatic Signing of DKMS-Generated Kernel Modules for Secure Boot

Automatic Signing of DKMS-Generated Kernel Modules for Secure Boot (Nvidia Driver on CentOS 8 as Example)

First I thank Nvidia for sponsoring the video card.

Secure Boot isn't exactly easy to configure to work with Linux and disabling it isn't really a good idea. Many modern Linux distributions provide the Microsoft-signed shim EFI binary to interpose between Secure Boot and the grub2 bootloader, making booting Linux easy enough if you only ever use kernels and drivers from the official repos. Still, enabling Secure Boot prevents the loading of kernel or modules without a proper digital signature. For example, the propriatary Nvidia GPU driver won't work, unless your distro really went to great lengths to distribute a signed version of the kernel module.

To make Secure Boot play nicely with the driver (i.e. to work at all), we can generate and import a Machine Owner Key (MOK)

@vleugelcomplement
vleugelcomplement / piticks.py
Last active September 21, 2023 12:53
matplotlib ticks at multiples of pi
"""
An example of an attempt to get non-standard ticks in matplotlib plot.
Here, we use π/3 as unit length.
"""
import numpy as np
from fractions import Fraction as frac
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter, MultipleLocator
@xvitaly
xvitaly / remove_crw.cmd
Last active July 12, 2025 09:00
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)