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 python3 | |
# required `light` utility and correct configuration of its parameters | |
# in `update_keyboard_mic_mute_led` function | |
# the current settings work on HP ProBook 450 G10 | |
import time | |
import subprocess | |
from subprocess import Popen |
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
context.modules = [ | |
{ name = libpipewire-module-filter-chain | |
args = { | |
node.description = "rnn-voice" | |
media.name = "rnn-voice" | |
filter.graph = { | |
nodes = [ | |
{ | |
type = ladspa | |
name = rnnoise |
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
context.modules = [ | |
{ | |
name = libpipewire-module-filter-chain | |
flags = [ nofail ] | |
args = { | |
node.description = "Deesser source" | |
media.name = "Deesser source" | |
filter.graph = { | |
nodes = [ | |
{ |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
typedef int (*f)(int); | |
//typedef int (*f)(); |
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/bash | |
# echo "using System; class App { public static void Main() { Console.WriteLine(1 + 1); } }" | cscsi.sh | |
# cat hello.cs | cscsi.sh | |
tmpfile=$(mktemp -p /dev/shm XXXXXXXXXXXXX.cs) | |
trap "rm -f '$tmpfile'" exit int term | |
cat > $tmpfile | |
cscs -ac $tmpfile |
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
/* add to manifest: | |
<uses-permission android:name="android.permission.RECORD_AUDIO"/> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
*/ | |
package com.example.myapplication | |
import android.app.AlertDialog | |
import android.app.PendingIntent.getActivity | |
import androidx.appcompat.app.AppCompatActivity |
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/bash | |
f=~/.local/share/recently-used.xbel | |
s=`cat $f` | |
t=`echo "$s" | sed 's/<\/xbel>//g'` | |
target="$@" | |
dt=`date '+%Y-%m-%dT%H:%M:%SZ'` | |
mime=`file -b --mime-type "$target"` |
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
##.pagedlist_item:has(a[target="_blank"] > p:has-text(/\sby\s/)) | |
##.pagedlist_item:has(a[target="_blank"] > p:has-text(/\sad\s\sby/)) | |
##.pagedlist_item:has(a[target="_blank"] > p:has-text(/\spromoted\s\sby/)) |
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
; redirect nav keys to home row | |
; alt+arrows to jikl and some more | |
; !r::Reload | |
; redirect alt+keys saving other mods | |
Redirect(key) { | |
if GetKeyState("Shift", "D") | |
if GetKeyState("Ctrl", "D") | |
Send +^{%key%} |
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
-- Copyright 2006-2015 Mitchell mitchell.att.foicica.com. See LICENSE. | |
-- HAML LPeg lexer. | |
local l = require('lexer') | |
local token, word_match = l.token, l.word_match | |
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V | |
local M = {_NAME = 'haml'} | |
-- Whitespace. |
NewerOlder