Skip to content

Instantly share code, notes, and snippets.

Avatar

Khralkatorrix kytulendu

View GitHub Profile
@kytulendu
kytulendu / printrom.c
Last active Nov 21, 2022
Print a given binary file to text. Useful for display font ROM.
View printrom.c
/* Print a given binary file to text.
* Useful for display font ROM.
*/
#include <stdio.h>
#include <stdlib.h>
/* https://stackoverflow.com/questions/7863499/conversion-of-char-to-binary-in-c */
void printbincharpad(char c)
{
@kytulendu
kytulendu / install-opencl-amd.sh
Last active Nov 15, 2022
A shell script to install AMDGPU-PRO OpenCL driver.
View install-opencl-amd.sh
#!/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 / update-repo
Created Sep 23, 2018
A shell script for update all git, hg and svn below current directory or specified directory.
View update-repo
#!/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"