Skip to content

Instantly share code, notes, and snippets.

View OmerFarukOruc's full-sized avatar
🏠
Working from home

Omer Faruk Oruc OmerFarukOruc

🏠
Working from home
View GitHub Profile
@cGandom
cGandom / RaspberryPi4-qemu.md
Last active June 16, 2024 17:01
Emulating Raspberry Pi 4 with Qemu

Emulating Raspberry Pi 4 with Qemu

Just a quick update before we dive in: what we're actually doing here is running Raspberry Pi OS (64-bit) on a QEMU virtual ARM setup. This isn't full-blown hardware emulation of the Raspberry Pi 4, but more about creating a virtual environment for the OS. It doesn't mimic all the specific hardware features of the Pi 4, but it's pretty useful and great for general testing. I turned to this solution mainly to extract a modified sysroot from the Raspberry Pi OS, something not readily available in other resources. For those looking into detailed emulation of the actual Raspberry Pi 4's hardware in QEMU, check out this link for the latest updates: https://gitlab.com/qemu-project/qemu/-/issues/1208.

Hope it helps! :D

Shortcomings: No GUI yet, only console.

Steps

@AlkindiX
AlkindiX / MEMO
Last active March 10, 2024 20:10
Run machine learning on 7900XT and 7900XTX on PyTorch
Requirements:-
1. Ubuntu 22.04
2. 7900XT or 7900XTX
Pre-requests before making any installation.
Follow step 1-3 if you installed amdgpu.
1. If you already installed redeon graphic card driver from AMD using amdgpu-install. Completely remove the driver
and connect your HDMI to motherboard. Then restart your PC
@Johannisbaer
Johannisbaer / Ubuntu 22.04_ROCm_install_guide.md
Last active February 16, 2024 08:50
My ROCm install on Ubuntu 22.04 LTS

Title: Step-by-Step Guide to Install ROCm on Ubuntu 22.04 LTS

June 8th 2023

Introduction

In this post, I will provide the solution that worked on my system on how to install Radeon Open Compute (ROCm) on Ubuntu 22.04 for 6000 series AMD GPU's. ROCm is an open-source software platform that allows GPU-accelerated computation. It's a valuable tool for those needing to perform complex computations and data-intensive tasks (e.g., machine learning / AI models).

@damico
damico / test-rocm.py
Created April 10, 2023 18:54
Script for testing PyTorch support with AMD GPUs using ROCM
import torch, grp, pwd, os, subprocess
devices = []
try:
print("\n\nChecking ROCM support...")
result = subprocess.run(['rocminfo'], stdout=subprocess.PIPE)
cmd_str = result.stdout.decode('utf-8')
cmd_split = cmd_str.split('Agent ')
for part in cmd_split:
item_single = part[0:1]
item_double = part[0:2]
@averad
averad / Stable_Diffusion.md
Last active June 6, 2024 08:42 — forked from harishanand95/Stable_Diffusion.md
Stable Diffusion on AMD GPUs on Windows using DirectML
@harishanand95
harishanand95 / Stable_Diffusion.md
Last active June 6, 2024 08:42
Stable Diffusion on AMD GPUs on Windows using DirectML
@peterwzhang
peterwzhang / DI-Corvus-Trivia.md
Last active February 5, 2024 02:27
Diablo Immortal Corvus Trivia Answers

Diablo Immortal Corvus Trivia Answers

This is a collection of the Corvus Expedition Trivia questions seen on the Pandemonium server

  1. Which demon has never been among the three Prime Evils - Azmodan
  2. This angel helped create humanity - Inarius
  3. Alive without breath. Cold as death. Never thirst but always drink. - Fish
  4. The Worldstone is known by each of these names except one - The Crystal Spear
  5. The Lord of Lies, never to be trusted, always in the shadows - Belial
  6. How many Great Evils are there - 7 great evils
  7. The more that are taken, The more left behind - Footsteps
  8. The Lord of Pain and the king of maggots - Duriel
@econeale
econeale / pcnt_example.ino
Last active January 12, 2023 01:36
Use PCNT component in Arduino Sketch
#include "driver/pcnt.h"
uint8_t pcnt_pin = 16;
unsigned long check_time = 0;
int16_t count = 0;
pcnt_config_t tac_config;
void setup() {
Serial.begin ( 115200 );
@Guidoz1k
Guidoz1k / esp32_2core_main.c
Last active May 5, 2023 15:45
How to run hard real time functions on both cores of the ESP32
#include <stdio.h>
#include "driver/gpio.h"
#include "driver/timer.h"
#include <esp_intr_alloc.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "sdkconfig.h"
#define SYNCPIN0 32 // interruption 0 work pin
#define SYNCPIN1 33 // interruption 1 work pin
@Aqua-4
Aqua-4 / vnc-watcher.sh
Created July 11, 2021 10:42
Script to reboot Raspberry pi when vnc server stops working
TIMED_OUT="HostedRendezvous: Rendezvous lookup failed: Hosted Bootstrap error: Network failure: Timed out fetching resource"
# sample response variable
# RESP="Jun 23 17:49:07 pi-desktop vncserver-x11[915]: HostedRendezvous: Rendezvous lookup failed: Hosted Bootstrap error: Network failure: Timed out fetching resource"
RESP=$(service vncserver-x11-serviced status)
if [[ "$RESP" =~ "$TIMED_OUT" ]]; then
echo "Network Failure, commencing reboot"
$(reboot)