This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is supposed to be a part of swaywm config file (.config/sway/config) | |
# The format for both lines is: | |
# bindsym [key combo] exec swaymsg 'input "[mouse identifier from 'swaymsg -t get_inputs']" map_to_output "[monitor from swaymsg -t get_outputs OR * to uncapture"' | |
bindsym $mod+x exec swaymsg 'input "1133:49970:Logitech_Gaming_Mouse_G502" map_to_output "*"' | |
bindsym $mod+c exec swaymsg 'input "1133:49970:Logitech_Gaming_Mouse_G502" map_to_output "DP-1"' | |
# of course you can just run the capture/free from a script and not bother with the key bindings, in that case start from "swaymsg", like: | |
# swaymsg 'input "1133:49970:Logitech_Gaming_Mouse_G502" map_to_output "DP-1"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# demux is from https://github.com/windytan/stereodemux | |
# which is also source for the rtl_fm command | |
while true; do | |
rtl_fm -M fm -s 192k -g 50 -F 9 -f 101.6M | \ | |
~/bin/demux -r 192k -R 44.1k | \ | |
ffmpeg -ac 2 -ar 44100 -f s16le -i pipe: \ | |
-acodec flac \ | |
-f segment \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Licensed under GNU GPL 2.0 by Ingo "ninelore" Reitz <ninelore@protonmail.com> | |
# | |
# Contributing: famfo (famfo#0227) | |
# Testing: G4rrus#3755 | |
# | |
# Version 1v17-3 | |
_SCRIPTVER="1v17-3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# This version uses feh. Much cleaner. | |
# Fetch data, I prefer primary, but you can edit these to your liking. | |
if [ $XDG_SESSION_TYPE = "wayland" ]; then | |
data="${1:-$(wl-paste -p)}" | |
elif [ $XDG_SESSION_TYPE = "x11" ]; then | |
data="${1:-$(xclip -o)}" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New script - twitter.com | |
// @namespace Violentmonkey Scripts | |
// @match https://*.twitter.com/*/status/* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 11/6/2020, 11:19:39 AM | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/lib/ffmpeg-4.0/avcodec.pas b/src/lib/ffmpeg-4.0/avcodec.pas | |
index cef8b16e..f14cc3b6 100644 | |
--- a/src/lib/ffmpeg-4.0/avcodec.pas | |
+++ b/src/lib/ffmpeg-4.0/avcodec.pas | |
@@ -84,7 +84,7 @@ const | |
(* Supported version by this header *) | |
LIBAVCODEC_MAX_VERSION_MAJOR = 58; | |
- LIBAVCODEC_MAX_VERSION_MINOR = 54; | |
+ LIBAVCODEC_MAX_VERSION_MINOR = 99; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can compile the source, but you need a compatible buildchain. | |
One can be found at https://github.com/jlaunonen/mips-linux-uclibc | |
to unpack the shell: | |
base64 -d shell.gzip.b64 | gunzip -c > shell | |
to upload the shell to the device it needs to be served over http(s). | |
You are free to use whatever, python3 can be used with: | |
python3 -m http.server (in the same directory as the shell binary) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chan up: 04 | |
chan dw: 05 | |
vol up: 06 | |
vol dw: 07 | |
mute: 08 | |
num 1: 09 | |
num 2: 0a | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python3 | |
from getpass import getpass | |
from base64 import b64decode | |
import time | |
from Crypto.Hash import SHA, HMAC | |
import gnupg | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
None of the steps that were here are required any more. The kernel has had support for this | |
(now otherwise end of support) device since 2020thanks to the following commit: | |
https://github.com/torvalds/linux/commit/470757f5b3a46bd85741bb0d8c1fd3f21048a2af | |
If you want, you can still see the old notes if you view the gist history, | |
but please do not act on them, they are outdated and will break the functioning system. |
NewerOlder