Skip to content

Instantly share code, notes, and snippets.

View pferreir's full-sized avatar
💭
Hacking

Pedro Ferreira pferreir

💭
Hacking
View GitHub Profile
@pferreir
pferreir / elf_symbol_content.py
Last active August 20, 2024 20:36
Quick and dirty Python script which parses an ELF file's symbol table and returns a section split according to the symbols' offsets
# pip install --user yxdump pyelftools
from itertools import batched
from elftools.elf.elffile import ELFFile
from yxd import dump
FILE = 'target/thumbv6m-none-eabi/release/debug'
SECTION = '.rodata'
with open(FILE, 'rb') as f:
diff --git a/indico/translations/it_IT/LC_MESSAGES/messages.po b/indico/translations/it_IT/LC_MESSAGES/messages.po
index d2eba7fed3..ae797b4d78 100644
--- a/indico/translations/it_IT/LC_MESSAGES/messages.po
+++ b/indico/translations/it_IT/LC_MESSAGES/messages.po
@@ -1,7 +1,7 @@
# Translations template for indico.
# Copyright (C) 2023 ORGANIZATION
# This file is distributed under the same license as the indico project.
-#
+#

$argon2id$v=19$m=64,t=512,p=2$4KWfdM/1xH5r9KviEnadlw$NI8zHlIW+MFCy8+vcWNw7g

diff --git a/rp2040-hal/src/dma.rs b/rp2040-hal/src/dma.rs
index 84ef780..2799612 100644
--- a/rp2040-hal/src/dma.rs
+++ b/rp2040-hal/src/dma.rs
@@ -558,6 +558,10 @@ where
cortex_m::asm::dsb();
compiler_fence(Ordering::SeqCst);
+ self.release()
+ }
#![no_std]
#![no_main]
use core::{borrow::Borrow, cell::RefCell, time::Duration};
use cortex_m::interrupt::{Mutex, free};
use panic_rtt_target as _;
use rtt_target::rprintln;
use stm32wl_hal::{
gpio::{Level, Output, PortA, PortB},
pac, pac::{interrupt},
{
"version": "0.2.0",
"configurations": [
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug (OpenOCD)",
"servertype": "openocd",
"cwd": "${workspaceRoot}",
"preLaunchTask": "rust: cargo build",
use core::cell::RefCell;
use cortex_m::interrupt::{free, Mutex};
use heapless::{consts::*, String};
use stm32f4xx_hal::otg_fs::{UsbBus, USB};
use usb_device::{class_prelude::UsbBusAllocator, prelude::*};
use usbd_serial::SerialPort;
type UsbSerial<'u> = SerialPort<'u, UsbBus<USB>>;
type UsbBusDevice<'u> = UsbDevice<'u, UsbBus<USB>>;
@pferreir
pferreir / countdown_itlt.lua
Last active December 3, 2020 14:21
OBS Studio countdown with red BG
obs = obslua
text_source_name = ""
img_source_name = ""
total_seconds = 0
cur_seconds = 0
last_text = ""
stop_text = ""
activated = false
gistup
use amethyst::renderer::{
mtl::{TexAlbedo, TexEmission},
pass::Base3DPassDef,
plugins::RenderBase3D,
rendy::{
hal::pso::ShaderStageFlags,
mesh::{AsVertex, Normal, Position, TexCoord, VertexFormat},
shader::SpirvShader
},
skinning::JointCombined