This file contains 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
apiVersion: helm.toolkit.fluxcd.io/v2 | |
kind: HelmRelease | |
metadata: | |
name: partdb | |
spec: | |
interval: 30m | |
chart: | |
spec: | |
chart: app-template | |
version: 3.4.0 |
This file contains 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
use embassy_nrf::gpio::{AnyPin, Flex, OutputDrive, Pull}; | |
use embedded_hal::digital::OutputPin; | |
use embassy_futures::select::{select, Either}; | |
use embedded_hal_async::{delay::DelayUs, digital::Wait}; | |
use lora_phy::mod_params::RadioError; | |
use lora_phy::mod_traits::InterfaceVariant; | |
pub struct LoRaInterfaceVariant<'d, WAIT> { |
This file contains 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 | |
import random | |
import argparse | |
import gi | |
import logging | |
gi.require_version("GLib", "2.0") | |
gi.require_version("Gst", "1.0") | |
elements = "agingtv,videoflip,vertigotv,gaussianblur,shagadelictv,edgetv,identity,exclusion,navigationtest".split( |
This file contains 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
cat basebackup.py | |
import io, os | |
import psycopg2 | |
import tarfile | |
from contextlib import closing | |
from datetime import date | |
from time import time | |
def add_file(archive, filename, data): | |
with closing(io.BytesIO(data.encode())) as f: |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am plaes on github. | |
* I am paf_plaes (https://keybase.io/paf_plaes) on keybase. | |
* I have a public key ASBEWn5w8BVm9aU5eFFXwrRN7VXsUNZxMybNHkDhTvVyPAo | |
To claim this, I am signing this object: |
This file contains 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
/* compile with gcc -lm -march=native test_tms34020_setcdp.c */ | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <math.h> | |
uint32_t setcdp(uint32_t dptch) { | |
uint32_t m_convdp; | |
// Check whether we're dealing with an even number | |
if ((dptch & 1) == 0) { | |
switch(__builtin_popcount(dptch)) |
This file contains 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 | |
function dump { | |
base=$1 | |
size=$2 | |
for((i=0;i<$size;i=i+4)) ; do | |
addr=$(($base + $i)) | |
data=$(busybox devmem $addr) | |
echo $(printf '%#x: %s' $addr $data) | |
done | |
} |
This file contains 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
- https://gist.github.com/yuq/a17350bd5bf91dbeba24e9deeda9a829 // fbo.260.0 | |
0x00000200, 0x1000010b, 0x00000000, 0x1000010c, /* 0x00000000 */ | |
0x10001000, 0x10000109, 0x00000011, 0x30000000, /* 0x00000010 */ | |
0x1003ec00, 0x28000121, 0x00000000, 0x10000107, /* 0x00000020 */ | |
0x43820000, 0x10000108, 0x00000000, 0x10000105, /* 0x00000030 */ | |
0x43820000, 0x10000106, 0x00010002, 0x60000000, /* 0x00000040 */ | |
0x00002200, 0x1000010b, 0x10152440, 0x81015240, /* 0x00000050 */ | |
0x00000000, 0x1000010a, 0x00000000, 0x1000010e, /* 0x00000060 */ | |
0x3f800000, 0x1000010f, 0x03000000, 0x00040000, /* 0x00000070 */ | |
0x00010001, 0x60000000, 0x00000000, 0x50000000, /* 0x00000080 */ |
This file contains 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> | |
typedef __signed__ char __s8; | |
typedef unsigned char __u8; | |
typedef __signed__ int __s32; | |
typedef unsigned int __u32; | |
typedef __u8 u8; | |
typedef __s8 s8; |
This file contains 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 | |
""" | |
calc.py | |
~~~~~~~ | |
Simple mathematical expression parser for infix syntax. | |
Caveats: | |
- only supports +-/* and () | |
- fails with prefix syntax: -1 |
NewerOlder