Skip to content

Instantly share code, notes, and snippets.

@bsamadi
bsamadi / LogitechF710.txt
Created April 21, 2023 21:42
Logitech F710 driver for Windows 11
This game pad has been around quite a while, so I thought I would try to use it on the latest version of Windows 11, here is what I found (08/01/2023).
Windows 11 doesn't recognise this device when you plug it in (no Plug'n'Play).
It will work quite well eventually, but I found I needed to do the following.
Before you start, make sure the F710 is in 'X' mode NOT 'D' mode (little switch on the front)
1. Download the Logitech F710 Connect Utility:
https://download01.logi.com/web/ftp/pub/techsupport/joystick/F710ConnectUtility_2.15.264.exe
2. Use this utility to get the F710 installed
#!/bin/bash
# DESCRIPTION
# This script migrates from "apt-key" managed keys to "[signed-by=/usr/share/keyrings/...]":
# - loop through all lists in /etc/apt/sources.list.d
# - read all lines with "deb..." that do not contain "[signed-by=]"
# - download the GPG signature from the URL
# - read the key ID from the signature
# - download and saves the key using gpg
# - add "[signed-by=/usr/share/keyrings/...]" to the "deb..." line
@Akselmo
Akselmo / pointer_barrier.sh
Last active August 11, 2023 04:33
Restrict mouse to screen
#!/bin/bash
#Not my script! Found it when searching the web for this kind of option.
#Saved for future reference
#Run with "bash restrictmouse.sh 0 0 1919 1080" to restrict the mouse to your first monitor
#Run inside terminal so it's easier to close the script when done
#Needs xdotool to work
borderxl=$1
borderyu=$2
@lats
lats / claim_all_the_things.js
Last active November 24, 2025 05:41
Tampermonkey script to claim all of the items within a Bundle on Itch.io
// ==UserScript==
// @name Activate all Itch.io Bundle downloads
// @version 1
// @include https://itch.io/bundle/download/*
// @include https://*.itch.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant none
// ==/UserScript==
$(document).ready(function() {
@nottux
nottux / opencl-amd_aur_ubuntu.bash
Last active October 19, 2023 20:23
bash implementation of opencl-amd AUR package, Install opencl amdgpu amdgpu-pro opencl only. Supports ubuntu and others with standard prefix
#!/bin/bash
# DO NOT run the line 167 standalone. It will remove the necessary files besides the junk!
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h\|\-\-no\-deb\|\-\-no\-install\|\-\-no\-cleaning\|\-\-assume\-debian"
then :
else echo wrong entry\(ies\) !
help=yes
fi
if echo $@|grep -q "\-\-help\|\-help\|\-h\|help\|\-\-h" || [ "$help" = yes ]
@baryluk
baryluk / mesa-build.py
Last active September 13, 2025 14:19
Build Mesa from git and libdrm git for Debian. amdgpu build 64-bit and 32-bit for Debian stable, testing and unstable, and possibly Ubuntu, Mint, PopOS, etc. No root required. (well sudo to install some build dependencies required tho). Currently a bit borked on Debian stable (requires newer meson).
#!/usr/bin/env python3
# A simple script to build 64-bit and 32-bit Mesa and libdrm on amd64 Debian
# stable, Debian testing, Debian unstable, and possibly some Ubuntu versions
# with some tweaks.
#
# libdrm is build too, because often version right now in Debian sid and experimental
# is too old for current mesa git repo. Also it is nice to build debug
# versions of libdrm when troubleshooting some crashes and bugs.
#
@kytulendu
kytulendu / install-opencl-amd.sh
Last active November 20, 2025 23:20
A shell script to install AMDGPU-PRO OpenCL driver.
#!/bin/bash
# This script will install AMDGPU-PRO OpenCL and Vulkan support.
#
# For Ubuntu and it's flavor, just install the package using this command
# in extracted driver directory instread.
#
# ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms
#
# For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread.
@shmerl
shmerl / mesa_debian_build.sh
Last active November 29, 2025 23:37
For building Mesa on Debian
#!/bin/bash
# Notes:
#
# 1. Works for tags and specific hash commits too (override mesa_branch variable with needed value).
#
# 2. By default builds for /opt/mesa-<branch> and places the result in ${HOME}/mnt/vmshare/mesa-<branch>
# You can override the build deployment location by setting dest_dir. For example this should put it right away
# in /opt/mesa-<branch>
#
@IsaacChapman
IsaacChapman / deb-package-checker.sh
Created March 22, 2017 20:13
Check if installed packages satisfy .deb file dependencies
#!/bin/bash
# Determine if .deb package dependencies are met
if [[ -z "$1" || "$1" == '--help' || "$1" == "-h" ]]; then
echo "Usage $0 file.deb"
exit 0
fi
if [[ ! -f "$1" ]]; then