Skip to content

Instantly share code, notes, and snippets.

View kytulendu's full-sized avatar

Khralkatorrix kytulendu

View GitHub Profile
@kytulendu
kytulendu / install-opencl-amd.sh
Last active April 24, 2024 17:34
A shell script to install AMDGPU-PRO OpenCL driver.
#!/bin/bash
# This script will install AMDGPU-PRO OpenCL and Vulkan support.
#
# For Ubuntu and it's flavor, just install the package using this command
# in extracted driver directory instread.
#
# ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms
#
# For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread.
@kytulendu
kytulendu / printrom.c
Last active December 10, 2022 12:58
Print a given binary file to text. Use for visualize display font ROM.
/*
* ============================================================================
* Print a given binary file to text.
* Use for visualize display font ROM.
* By Khralkatorrix <https://github.com/kytulendu>.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
@kytulendu
kytulendu / update-repo
Created September 23, 2018 01:15
A shell script for update all git, hg and svn below current directory or specified directory.
#!/bin/bash
# Update all git, hg and svn directories below current directory or specified directory
# Skips directories that contain a file called .ignore
HIGHLIGHT="\e[01;34m"
NORMAL='\e[00m'
process_dir() {
local d="$1"
echo "Scanning:$1"