Skip to content

Instantly share code, notes, and snippets.

View jackpot51's full-sized avatar

Jeremy Soller jackpot51

View GitHub Profile

rank by height:

  1. mid (mid-mount)
  2. flat (flat mount, non-angled insertion)
  3. low
  4. med
  5. tall

low, med and tall are likely angled insertion - I don't check that, but it's reasonable to assume. The lines between low, med and tall are blurred, don't expect consistency - look for specific height values if you need them (and make a PR if you can, I'd appreciate it!) For mid-mount, smd+tht means inner row pins are THT - otherwise, inner row pins are SMD, which might be noticeably harder to rework.

@jackpot51
jackpot51 / flatpak_flathub_evaluation.md
Created March 19, 2020 21:16
Flatpak/Flathub Evaluation

Flatpak/Flathub Evaluation

Note that I will use flatpak to refer to the format, and flathub to refer to the flathub repository and packaging done by the flathub organization.

General

Command Line Use

There is basically no supported command line use for flatpak applications.

@IanColdwater
IanColdwater / twittermute.txt
Last active May 23, 2024 18:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@kajott
kajott / vaapi_egl_interop_example.c
Last active February 27, 2024 06:43
example code for minimal-overhead hardware-accelerated video decoding and display on Linux using VA-API/EGL interoperability
#if 0 // self-compiling code: chmod +x this file and run it like a script
BINARY=vaapi_egl_interop_example
gcc -std=c99 -Wall -Wextra -pedantic -Werror -g -fsanitize=address -o $BINARY $0 \
`pkg-config libavcodec libavformat libavutil libva gl egl libdrm --cflags --libs` \
-lX11 -lva-x11 -lva-drm || exit 1
test "$1" = "--compile-only" && exit 0
exec env ASAN_OPTIONS=fast_unwind_on_malloc=0 ./$BINARY $*
#endif /*
Minimal example application for hardware video decoding on Linux and display
@Konamiman
Konamiman / SDCC_Interfacing_with_assembler_code.md
Last active February 1, 2024 03:22
[SDCC] Interfacing with Z80 assembler code

SDCC - Interfacing with Z80 assembler code

The basics

When writing code to be compiled with SDCC targetting Z80, assembler code fragments can be inserted in the C functions by enclosing them between the __asm and __endasm; tags:

void DoNotDisturb()
{
  __asm

di

@batonius
batonius / Dockerfile
Created June 20, 2017 23:15
Redox-os build environment for docker
FROM ubuntu:17.04
ENV REDOX_TOOLCHAIN_APT http://static.redox-os.org/toolchain/apt/
ENV SRC_PATH /src
ENV CARGO_HOME /cargo
ENV RUSTUP_HOME /rustup
ENV PATH $CARGO_HOME/bin:$PATH
RUN apt-get update \
&& apt-get install -y git gosu gcc fuse nasm qemu-utils pkg-config \
@jackpot51
jackpot51 / redox_cross.sh
Last active June 13, 2018 04:43
How to use the new Redox cross compile support
# Clone Rust with Redox cross compilation support
git clone https://github.com/redox-os/rust -b redox_cross --recursive
# Make a build directory
cd rust
mkdir build
cd build
# Create a config.toml
cat > config.toml <<EOF
@fakhrullah
fakhrullah / list-of-hacking-games.md
Last active April 30, 2024 05:11
List of hacking game, wargame or capture the flag (CTF) for some one who want to learn hacking.
@MightyPork
MightyPork / usb_hid_keys.h
Last active May 31, 2024 01:13
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/