Skip to content

Instantly share code, notes, and snippets.

@akavel
akavel / deco-o-matic.md
Created January 13, 2024 18:01
Hiss Deco-O-Matic
@akavel
akavel / pikchr.xml
Created May 30, 2022 22:09
Experiments with 0compile for Pikchr
<?xml version="1.0" ?>
<?xml-stylesheet type='text/xsl' href='interface.xsl'?>
<interface uri="https://akavel.github.io/0catalog/feeds/pikchr.xml" xmlns="http://zero-install.sourceforge.net/2004/injector/interface" xmlns:compile="http://zero-install.sourceforge.net/2006/namespaces/0compile">
<name>Pikchr</name>
<summary>PIC-like markup language for diagrams in technical documentation</summary>
<homepage>https://pikchr.org</homepage>
<!-- based on: https://docs.0install.net/tools/0compile/developers/ -->
<!-- usage:
@akavel
akavel / config.h
Last active May 29, 2022 19:15
redoxw-akavel-05expNN
#pragma once
// Mouse: Combined mode (KC_ACL0-2 momentarily set speed to constant)
#define MK_COMBINED
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "redox_w",
"keymap": "redoxw-akavel-02",
"layout": "LAYOUT",
"layers": [
[
"LT(2,KC_GRV)",
This file has been truncated, but you can view the full file.
"touchstart", false, [object TouchEvent] {
altKey: false,
AT_TARGET: 2,
bubbles: true,
BUBBLING_PHASE: 3,
cancelable: false,
cancelBubble: false,
CAPTURING_PHASE: 1,
changedTouches: [object TouchList] {
@akavel
akavel / 00-fetch.bat
Last active January 24, 2021 20:04
Fetch Windows 10 lock screen images
@echo off
setlocal
:: https://www.groovypost.com/howto/save-windows-10-spotlight-lock-screen-pictures/
:: https://stackoverflow.com/questions/7881035/checking-file-size-in-a-batch-script
set here=%CD%
cd /d %userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_*\LocalState\Assets
set minsize=200000
{ nixpkgs ? import <nixpkgs> {} }:
with nixpkgs;
pkgs.symlinkJoin {
name = "myapps";
paths = with pkgs; [
sqlite ripgrep
];
}
@akavel
akavel / Arcan.nix
Created August 29, 2020 20:55 — forked from egasimus/Arcan.nix
Building Arcan on NixOS, 2020 version
({ lib, newScope, stdenv, pkgs }: let
# nicer aliases
derive = stdenv.mkDerivation;
concat = builtins.concatStringsSep " ";
# vendored libuvc: don't build, just make sources available
libuvc-src = derive {
name = "libuvc-src";
# using fetchgit instead fetchFromGitHub because
const Builder = @import("std").build.Builder;
const bb = @import("std").build;
const std = @import("std");
pub fn build(b: *Builder) void {
// b.linkSystemLibrary("c");
const lib = b.addSharedLibrary("popen", "popen.zig", b.version(0, 0, 1));
lib.addIncludeDir(".");
lib.linkLibC();
// lib.setTarget( .os = .windows, .arch = .x86_64, .abi = .gnu } });
@akavel
akavel / cert.x509.pem
Last active May 13, 2019 23:15
Tentative apksigner crypto
-----BEGIN CERTIFICATE-----
MIGgMIGVAgEBMAMGAQEwCTEHMAUGAQETADAaFwsxNzEwMTAyMjUwWhcLMTcxMDEw
MjI1MFowCTEHMAUGAQETADBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLAoWrpy
dzdU6PN096BcSaDRFuC+/8MjLhgeFUiogqlrZFocHudWRHJALK08ge+x0n3nwCVB
wJ4Ybfhm0sf9nowwAwYBAQMBAA==
-----END CERTIFICATE-----