Skip to content

Instantly share code, notes, and snippets.

@barathrm
barathrm / update_obs.sh
Created June 6, 2021 19:01
publish a new version on OBS
#!/usr/bin/env bash
USER="$1"
PASS="$2"
REVISION="$3"
export API="https://api.opensuse.org"
export PROJ="home:fawz:mooltipass"
export PKG="moolticute"
# for moolticute-testing
@barathrm
barathrm / main.c
Last active April 12, 2023 10:11
example usage of libbacktrace with hacked-in support for dlpi_name and dlpi_addr
#include <backtrace.h>
struct backtrace_state* bt_state = NULL;
void bt_error_callback(void* data, const char* msg, int errno)
{
fprintf(stderr, "bt_error %d: %s\n", errno, msg);
}
struct syminfo