Skip to content

Instantly share code, notes, and snippets.

View turkerali's full-sized avatar

Ali Erturk TURKER turkerali

View GitHub Profile
turkerali /
Created June 6, 2021 18:38 — forked from niw/
How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

How to run Windows 10 on ARM or Ubuntu for ARM64 in QEMU on Apple Silicon Mac

Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!

NOTE: that this is current, 5/23/2021 state. I think it will be improved in upcoming a few months.

Running Windows 10 on ARM

  1. Install Xcode from App Store or install Command Line Tools on your Mac running on Apple Silicon.
turkerali /
Created July 12, 2021 10:49 — forked from shamil/
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
turkerali /
Created January 12, 2022 05:36 — forked from bodokaiser/
Guide How-To use Device Tree Overlays on Archlinux.

Device Tree Overlays on Archlinux



You require a working archlinuxarm operarting system and the development tools:

$ pacman -S base-devel
turkerali /
Created January 14, 2022 03:42 — forked from palopezv/
How to create a LUKS partition encrypted with Adiantum, ideal for low end and older devices/computers

How to create a LUKS partition encrypted with the Adiantum scheme

Important note

  • Sector size and key size are fixed, you cannot change them!
  • You can play with the hash but using less than sha256 is irresponsible!
  • You can convert an already existing luks2 partition with cryptsetup(8).

Very low end devices or computers (say, an old Pentium, Celeron, Raspberry Pi or older SoC)

turkerali /
Created January 21, 2022 04:34 — forked from IsaacChapman/
Check if installed packages satisfy .deb file dependencies
# Determine if .deb package dependencies are met
if [[ -z "$1" || "$1" == '--help' || "$1" == "-h" ]]; then
echo "Usage $0 file.deb"
exit 0
if [[ ! -f "$1" ]]; then
turkerali /
Created January 28, 2022 12:45 — forked from parshap/
Install VirtualBox Guest Additions on a headless server
sudo mkdir /media/iso
sudo mount -o loop ./VBoxGuestAdditions_4.3.12.iso /media/iso
sudo bash /media/iso/ --nox11
sudo umount /media/iso
turkerali / Raspberry Pi 4 Arm64 Kernel
Created January 31, 2022 03:41 — forked from G-UK/Raspberry Pi 4 Arm64 Kernel
Building the Raspberry Pi 4 Arm64 Linux Kernel

The Raspberry Pi foundation have now released a beta version of an official 64-bit Kernel which can be installed using the rpi-update script. The rpi-update script can be found at or through the Raspbian repositories


The objective of these instructions is to build a stock 64bit Linux Kernel for use on the Raspberry Pi 4B on a Debian x64 machine (Windows Subsystem for Linux in my case), and deploy on the Raspberry Pi.


  • Transfer to Pi is using my NAS in this example, replace with shared drive/memory stick etc. as required.
    • (N: drive on Windows and /mnt/NAS on Linux in this example).
  • For a specific Kernel version replace the 4.19 with the wanted version in the git clone command.
  • Greater than 3GB RAM only currently available on Kernel 4.19
turkerali / linuxsocket.c
Created April 9, 2022 07:10 — forked from richiejp/linuxsocket.c
POSIX/Linux socket example I wrote years ago for my blog
/*POSIX/Linux multithreaded socket test
Copyright (c) 2006-2007 Richard Palethorpe
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to the following
turkerali / libfcgi-example.c
Created April 10, 2022 11:23 — forked from dermesser/libfcgi-example.c
In case anyone wants to see a multi-threaded FastCGI application written with the fcgiapp library.
# include <stdlib.h>
# include <stdio.h>
# include <sys/stat.h>
# include <pthread.h>
# include <fcgiapp.h>
const char* const sockpath = "/tmp/fcgicpp.sock";
turkerali / Firewall.js
Created April 18, 2022 07:02 — forked from havvg/Firewall.js
ExtJS 6: JSON Web Token API Login with Promises
Ext.define('', {
singleton: true,
requires: [
isLoggedIn: function() {
return null !==;