Skip to content

Instantly share code, notes, and snippets.

View nikAizuddin's full-sized avatar
⚠️
s t a t i c

Nik Mohamad Aizuddin nikAizuddin

⚠️
s t a t i c
View GitHub Profile
@nikAizuddin
nikAizuddin / README.md
Created September 23, 2023 17:06
ROCM Tensorflow

Spawn:

podman run --rm -it --network=host \
  --device=/dev/kfd \
  --device=/dev/dri \
  --ipc=host \
  --security-opt label=disable \
  docker.io/rocm/tensorflow:rocm5.5-tf2.11-dev \
  bash
@nikAizuddin
nikAizuddin / Podman Installation on OpenSUSE Tumbleweed WSL2.md
Created February 25, 2023 05:56
Podman Installation on OpenSUSE Tumbleweed WSL2

Podman Installation on OpenSUSE Tumbleweed WSL2

Make sure all packages up-to-date:

sudo zypper dup

Restart OpenSUSE by executing the following command using Powershell:

wsl --shutdown openSUSE-Tumbleweed
@nikAizuddin
nikAizuddin / cmdoptions.cpp
Created December 27, 2022 20:01 — forked from randomphrase/cmdoptions.cpp
Demonstration of how to do subcommand option processing with boost program_options
#define BOOST_TEST_MODULE subcommand options
#include <boost/test/unit_test.hpp>
#include <boost/program_options.hpp>
#include <boost/variant/variant.hpp>
#include <boost/variant/get.hpp>
struct GenericOptions {
bool debug_;
};
@nikAizuddin
nikAizuddin / README.md
Created November 24, 2022 06:46
Create PGP key and get it's public key

Instructions how to create GPG keys for john@example.com (change with your own business email).

Prerequisites

Install GPG on your machine. See blog from Yubico on how to install GPG.

Creating PGP key

Execute the following command:

@nikAizuddin
nikAizuddin / Podman Installation on Ubuntu 22.04 WSL2.md
Last active October 21, 2023 21:42
Podman Installation on Ubuntu 22.04 WSL2

Podman Installation on Ubuntu 22.04 WSL2

Execute the following command to install Podman:

sudo apt update
sudo apt -y install podman

Execute podman info to initialize rootless Podman:

@nikAizuddin
nikAizuddin / Kontakt Samplitude Pro X6 Fix
Last active May 18, 2022 13:30
Fix MIDI key doesn't release in Samplitude Pro X6
{***********************************************
Fix MIDI key doesn't release in Samplitude Pro X6
When MIDI key is released, Samplitude will send
a NOTE_ON event with velocity = 1. This script
will override velocity = 1 into 0. Thus,
Kontakt will assume the key is released if
velocity = 0.
*************************************************}
@nikAizuddin
nikAizuddin / ca.md
Created June 17, 2021 03:03 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@nikAizuddin
nikAizuddin / limit-wsl2-cpu-and-memory.md
Last active June 18, 2022 10:03
Limit WSL2 CPU and Memory

Limit WSL2 CPU and Memory

Run the following command using powershell without as Administrator:

notepad "$env:USERPROFILE/.wslconfig"

Put the following lines if you want to limit your WSL2 to 4GB of RAM and 2 CPUs:

[wsl2]
@nikAizuddin
nikAizuddin / podman-installation-on-ubuntu-2004-wsl2.md
Last active April 22, 2024 13:46
Podman Installation on Ubuntu 20.04 WSL2

Podman Installation on Ubuntu 20.04 WSL2

Execute the following command to install Podman:

sudo apt update
sudo apt install ca-certificates
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
sudo apt update
"""Download Free Springer books.
Requirements:
* Make sure you have Python 3.7. It is recommended that you use Python from Anaconda.
* Download chromedriver https://chromedriver.chromium.org/downloads and extract it
into the same directory as this script.
How to Execute:
$ conda create --name springer-download
$ conda activate springer-download