Skip to content

Instantly share code, notes, and snippets.

View TheSnowfield's full-sized avatar
🍣
I love sushi and raw salmon. (●ˇ∀ˇ●) yummy~

TheSnowfield TheSnowfield

🍣
I love sushi and raw salmon. (●ˇ∀ˇ●) yummy~
View GitHub Profile
@InariAimu
InariAimu / Program.cs
Last active August 17, 2022 05:12
Make cpu usage graph to display an I2C signal graph.
// make cpu usage graph to display an I2C signal graph.
// delay is for AMD Ryzen 9 3900X
// tested on AMD Ryzen 9 3900X
// up is SCL, down is SDA
using System.Diagnostics;
Process Proc = Process.GetCurrentProcess();
long AffinityMask = (long)Proc.ProcessorAffinity;
AffinityMask &= (1|1<<6);
/*
* QrEncoder Javascript library for QrCode generation
*
* Copyright 2015, Vincent Pellé
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@vanbwodonk
vanbwodonk / read-stm32-firnware.md
Last active March 11, 2024 17:41
Read stm32 firmware binary with openOCD

read-stm32-firmware

OpenOCD scripts for read STM32 firmware binary

Requirements

Linux

OpenOCD (Open On-Chip Debugger) is open-source software that interfaces with a hardware debugger's JTAG port. OpenOCD provides debugging and in-system programming for embedded target devices. OpenOCD provides the ability to flash NAND and NOR FLASH memory devices that are attached to the processor on the target system. Flash programming is supported for external CFI compatible flashes (Intel and AMD/Spansion command set) and several internal flashes (LPC2000, AT91SAM7, STR7x, STR9x, LM3 and STM32x).

OpenOCD was originally developed by Dominic Rath at the University of Applied Sciences Augsburg. The OpenOCD source code is now available through the GNU General Public License (GPL).

@dev-zzo
dev-zzo / reballing-emmc.md
Last active October 23, 2023 04:22
eMMC reballing

eMMC reballing

The same technique should work well with other (bigger) ball sizes too, however there are rarely issues when handling bigger packages and less care is usually needed there.

The technique uses premade solder balls, not solder paste.

Equipment:

  • Solder balls of correct size (0.3mm for eMMC)
  • Stencil to hold the balls with correct configuration for the package eg eMMC 153/169 standard stencil
@atyachin
atyachin / Android-Emulator-on-AWS-EC2.txt
Last active March 13, 2024 03:55
Installing and running Android Emulator on Amazon AWS EC2 (Ubuntu 16.04 / m5.xlarge)
Update (2022): https://gist.github.com/atyachin/2f7c6054c4cd6945397165a23623987d
Steps for installing the Android Emulator from EC2 console:
-----------------------------------------------------------
sudo apt install default-jdk
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d android-sdk
sudo mv android-sdk /opt/
export ANDROID_SDK_ROOT=/opt/android-sdk
@thiemok
thiemok / pocketchip.kmp
Created March 11, 2018 19:16
Pocketchip keymap for headless boot - fixed for zsh
keymaps 0-2,4-5,8,12
altgr keycode 2 = F1
altgr keycode 3 = F2
altgr keycode 4 = F3
altgr keycode 5 = F4
altgr keycode 6 = F5
altgr keycode 7 = F6
altgr keycode 8 = F7
altgr keycode 9 = F8
altgr keycode 10 = F9
@tomysmile
tomysmile / rpi-configure-locales.md
Last active June 29, 2023 14:37
Raspberry Pi: Reconfigure Locales

Reconfigure your RPi Locales

First you need to install the locales you want:

sudo dpkg-reconfigure locales

Then refresh your current environment:

@JonDouglas
JonDouglas / xamarinandroidbindings.md
Last active March 12, 2024 10:36
Xamarin Android Bindings Troubleshooting

Approaching a Xamarin.Android Bindings Case

1. Investigation

One of the best ways to investigate a problematic Xamarin.Android Binding is to first ensure you have the proper tooling available: