Skip to content

Instantly share code, notes, and snippets.

@russiantux
russiantux / gamescope_4_Ubuntu24-04.md
Last active April 25, 2025 00:28
Build & install gamescope for fresh-install Ubuntu 24.04 (Noble Numbat)

Build & install gamescope for fresh-install Ubuntu 24.04 (Noble Numbat)

Due to what appears to be dependency issues, the gamescope package isn't avalible for Ubuntu 24.04. So here's a guide on how to build and install gamescope for Ubuntu 24.04

  1. Pull latest git of gamescope

$ git clone https://github.com/ValveSoftware/gamescope.git

  1. Install needed dependencies to build gamescope

`$ sudo apt install libbenchmark1.8.3 libdisplay-info1 libevdev-dev libgav1-1 libgudev-1.0-dev libmtdev-dev libseat1 libstb0 libwacom-dev libxcb-ewmh2 libxcb-shape0-dev libxcb-xfixes0-dev libxmu-headers libyuv0 libx11-xcb-dev libxres-dev libxmu-dev libseat-dev libinput-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-res0-dev libcap-dev

@neilio
neilio / kagi-google.css
Last active April 25, 2025 13:09
Kagi Google Style
.theme_moon_dark :root {
--m_sri_gap_color: #202124 !important;
}
.theme_moon_dark {
--background-color: #202124 !important;
}
.theme_moon_dark body {
background-color: #202124 !important;
#!/usr/bin/env bash
notify-send --expire-time=10000 --icon=translator "$(xsel -o)" "$(wget -O - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=tr&dt=t&q=$(xsel -o)" | awk -F'"' '{print $2}')"
gtts-cli "$(xsel -o)" | mpg123 -
# /etc/nextdns.conf
#
discovery-dns
auto-activate false
control /run/nextdns/nextdns.sock
config CONFIG_ID
max-ttl 0s
report-client-info true
cache-size 10MB
bogus-priv true
@fpillet
fpillet / scale.js
Created May 26, 2011 12:07
Javascript value scaling between two ranges
/* Scale a value from one range to another
* Example of use:
*
* // Convert 33 from a 0-100 range to a 0-65535 range
* var n = scaleValue(33, [0,100], [0,65535]);
*
* // Ranges don't have to be positive
* var n = scaleValue(0, [-50,+50], [0,65535]);
*
* Ranges are defined as arrays of two values, inclusive