Skip to content

Instantly share code, notes, and snippets.

@HiFiPhile
HiFiPhile / main.c
Last active May 12, 2024 14:38
TinyUSB uac2_speaker_fb minimal example on STM32F723E-DISCO
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Jerzy Kasenberg
* Copyright (c) 2023 HiFiPhile
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@HiFiPhile
HiFiPhile / Add_compatible_spidev.patch
Created June 14, 2023 19:33 — forked from avinash-palleti/linux_4.4.patch
Adding Compatible spidev
From 3bca98328c1abe674de889ca64f37b0ad60e1e82 Mon Sep 17 00:00:00 2001
From: Avinash Reddy Palleti <avinash.reddy.palleti@intel.com>
Date: Fri, 26 May 2017 18:47:15 +0530
Subject: [PATCH] Add compatible spidev
---
drivers/spi/spidev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
@HiFiPhile
HiFiPhile / lxc-dev.sh
Last active January 15, 2022 17:11
Simple script to add devices to lxc
#!/usr/bin/env bash
CT_LIST=(
108
)
DEV_108=(
/dev/ttyUSB0
enx2c01ed583fc8
)
.row-data,body{font-size:16px}.row-data,.row-value{height:24px}@media screen and (min-width:640px){body{min-width:760px}}body{font-family:Arial,Helvetica,sans-serif;margin:0}h3{margin:5px}.results-area,.user-input-area{float:left;display:block;padding:10px;border-style:solid;border-radius:5px;border-width:1px;margin:3px}.input-summary div,.output-summary div,.row-data,.row-value,.wide-data{margin:5px}.user-input-area{background-color:#EEE;min-width:300px}.results-area{min-width:300px}.circuit-image-area{display:inline-block}.invalid .row-range,.invalid input{color:red}.input-summary{float:left;padding:10px;width:250px}.output-summary{float:left;padding:10px;width:200px}.circuit-image-space{min-height:160px}.circuit-image{display:block;width:320px}.row-heading,.row-range,.wide-data{display:inline-block}.summary-row{min-height:24px}.row-heading{width:200px}.row-data{width:200px}.row-range{color:#3b3b3b}
# /etc/pacman.d/hooks/999-kernel-efi-copy.hook
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = boot/vmlinuz*
Target = usr/lib/initcpio/*
Target = boot/*-ucode.img
[Action]
// ==UserScript==
// @name PTS Show Alpha
// @namespace http://tampermonkey.net/
// @version 0.12
// @description try to take over the world!
// @author You
// @match https://pt.btschool.club/torrents.php*
// @grant none
// ==/UserScript==
@HiFiPhile
HiFiPhile / Table based NTC Code Generator.html
Created August 6, 2020 08:26
Table based NTC Code Generator (by Gerd Bartelt, sebulli)
<!DOCTYPE html>
<!-- saved from url=(0036)http://www.sebulli.com/ntc/index.php -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="Gerd Bartelt, sebulli">
<meta name="description" content="Gerd Bartelt - Projects">
<meta name="page-topic" content="Table based NTC Code Generator">
<meta name="language" content="en">
<meta name="content-language" content="en">
<meta http-equiv="language" content="en">
@HiFiPhile
HiFiPhile / bash.bashrc
Created October 22, 2019 10:29 — forked from 5chdn/bash.bashrc
termux bash.bashrc
PS1="\$(if [[ ${EUID} == 0 ]]; then echo '\[\033[0;31m\]\u@\h'; else echo '\[\033[0;32m\]\u@\h'; fi)\[\033[0;34m\] \w \\$\[\033[00m\] "
eval "`dircolors`"
alias ls='ls --color=auto'
alias ll='ls --color=auto -lshaF'
alias grep='grep --color=auto'
alias fbig="find . -size +128M -type f -printf '%s %p\n'| sort -nr | head -16"
alias rdir='mkdir -p ./$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 8)/$(cat /dev/urandom | tr -cd 'a-z0-9' | head -c 4)/'