Skip to content

Instantly share code, notes, and snippets.

View allanlaal's full-sized avatar

Allan Laal allanlaal

View GitHub Profile
@radiantly
radiantly / noMangleGoogle.user.js
Last active December 28, 2023 04:31
Prevent Google from mangling links on the search results when clicking or copying on Firefox
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==
@wilmardo
wilmardo / jackett.md
Created October 29, 2019 13:08
Jackett add public indexers all in one go

Source: Jackett/Jackett#1576 (comment)

From the Jackett page, click the "add indexer" button so that the pop up window with the full list of indexers appears.

You'll then need to open your browser's development toolbar (in Chrome just hit F12) and go to the JavaScript Console and enter the following:

////hack to add all free indexers in Jackett
$(document).ready(function () {
	EnableAllUnconfiguredIndexersList();
@voodooattack
voodooattack / when-ts.ts
Last active September 18, 2018 05:44
when-ts: first draft
import 'reflect-metadata';
export interface MachineState {
}
/**
* An activation condition, takes two arguments and must return true for the associated action to fire.
*/
export type ActivationCond<State extends MachineState> =
(state: Readonly<State>, machine: EventMachine<State>) => boolean;
@debuggerx01
debuggerx01 / visible_items_of_listview.dart
Last active April 8, 2024 07:07
Visible Items of ListView Demo
import 'package:flutter/material.dart';
import 'package:rect_getter/rect_getter.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Visible Demo',
@lucasbrynte
lucasbrynte / 20-multi-gpu-setup.conf
Last active January 23, 2022 14:39
Manjaro multi-GPU setup intel integrated GPU + external nVidia GPUs
# /etc/X11/xorg.conf.d/20-multi-gpu-setup.conf
# Inspired by: https://gist.github.com/alexlee-gk/76a409f62a53883971a18a11af93241b
Section "ServerLayout"
Identifier "layout"
Screen 0 "intel"
Screen 1 "nvidia1"
Screen 2 "nvidia2"
EndSection
@mritzco
mritzco / Instructions.md
Last active January 4, 2020 16:03
Installing TortoiseHG on linux (2018 PPA not working)

Installing TortoiseHG

(June 2018)

PPA for tortoise is gone and Tortoise is removed when mercurial is updated.

If you're ok having an old version of Mercurial, you can reinstall following this guide:

First let's see the requirements:

sudo apt-get install tortoisehg
@vogler
vogler / youtube-fullscreen-seek.js
Created June 13, 2018 20:07
Tampermonkey: YouTube: scroll=seek in fullscreen
// ==UserScript==
// @name YouTube: scroll=seek in fullscreen
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Scrolling a youtube video in fullscreen seeks back/forward
// @author Ralf Vogler
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
@luke3butler
luke3butler / MakeMediumReadadableUserscript.user.js
Last active March 17, 2021 22:10
Userscript version of the MMRA (Make Medium Readable Again) Chrome extension
// ==UserScript==
// @name Make Medium Readable Userscript
// @namespace http://make.medium.readable.again
// @version 0.1
// @description https://github.com/thebaer/MMRA
// @author luke3butler (Credits to Matt Baer)
// @match *://*/*
// @grant none
// ==/UserScript==
-- autosave.lua
--
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
--
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60