Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kiwec
kiwec / alsa-monitor.conf
Last active May 27, 2023 07:39
Pipewire settings for FiiO K3
properties = {}
rules = [
{
matches = [{
node.name = "alsa_output.usb-GuangZhou_FiiO_Electronics_Co._Ltd_FiiO_K3-00.iec958-stereo"
}]
actions = {
update-props = {
// ==UserScript==
// @name RemoveFlash
// @namespace Ranze/RemoveFlash
// @author Ranze/RemoveFlash
// @match *://www.jeuxvideo.com/*
// @description Supprimer le flash lorsqu'un post est ajouté
// @version 1
// @grant none
// ==/UserScript==
@kiwec
kiwec / keymap_kiwec.c
Last active March 20, 2021 12:36
Current planck keymap
#include QMK_KEYBOARD_H
// Readability
#define _______ KC_TRNS
#define XXXXXXX KC_NO
// Layers
#define DVORAK_LAYER 0
#define GAMING_LAYER 1
#define GMGTAB_LAYER 2
// Code de QUALITÉ (issou)
// picunroll avant de lancer le script bien entendu
var arr = [];
$('.conteneur-message').each(function(){
var name = $(this).find('.text-user').text().trim();
// HACK nettoyage du message
$(this).find('a').remove();
$(this).find('blockquote').remove();
// Aliases
alias +bouton4 "+use;gameinstructor_enable 1"
alias -bouton4 "-use;r_cleardecals; gameinstructor_enable 0"
alias micon "+voicerecord; alias togglemic micoff"
alias micoff "-voicerecord; alias togglemic micon"
alias togglemic "micon"
alias "+scorenet" "+showscores; net_graphheight 0"
alias "-scorenet" "-showscores; net_graphheight 9999"
alias +kforward "+forward;cl_crosshaircolor_r 0;cl_crosshaircolor_g 250; cl_crosshaircolor_b 0"
alias -kforward "-forward;cl_crosshaircolor_r 0;cl_crosshaircolor_g 250; cl_crosshaircolor_b 0"
{
"name": "depression",
"globals":
{
"background": "#000000",
"foreground": "#eeeeee",
"caret": "#ffffff",
"line_highlight": "#101010",
"selection": "#444444"
},
let canvas = document.createElement('canvas');
let ctx = canvas.getContext('2d');
let image = new Image();
image.src = 'base64/...';
canvas.width = image.width;
canvas.height = image.height;
ctx.drawImage(image, 0, 0);
var hexDigits = new Array
("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");
@kiwec
kiwec / readme.txt
Created February 1, 2019 10:15
kiwec's superiorer stolen game (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
const SteamUser = require('steam-user');
const GlobalOffensive = require('globaloffensive');
const config = require('./config.js');
const client = new SteamUser();
const csgo = new GlobalOffensive(client);
csgo.on('debug', console.log);
client.on('error', console.error);
#!/bin/sh
LAST=""
LINE=0
while read TIME
do
if [ -n "$LAST" ]
then
NAME=$(cat names.txt | head -n $LINE | tail -1)
START="ffmpeg -i input.mkv -ss $LAST -to $TIME"