Skip to content

Instantly share code, notes, and snippets.

View ozturkkl's full-sized avatar
🐔
Have a nice day!

Kemal Ozturk ozturkkl

🐔
Have a nice day!
  • Descript
  • NJ
View GitHub Profile
(async () => {
// Create a handle to the OPFS root directory
const rootHandle = await navigator.storage.getDirectory();
// Function to recursively read all files in the OPFS
async function readFiles(directoryHandle, path = '') {
let fileContent = '';
for await (const [name, handle] of directoryHandle.entries()) {
if (handle.kind === 'directory') {
@ozturkkl
ozturkkl / install-nodejs-lts-raspberry-pi-zero-w-armv6
Created November 7, 2024 17:45 — forked from mandrean/install-nodejs-lts-raspberry-pi-zero-w-armv6
Install NodeJS LTS on Raspberry Pi Zero W (ARMv6)
# update system
$ sudo apt update && sudo apt upgrade
# uninstall old node (v10?)
$ sudo apt remove nodejs npm -y
# install nvm
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
# use 'unofficial builds' in nvm
@ozturkkl
ozturkkl / launch_ableton_without_crash_prompt.bat
Created August 2, 2024 05:02
Launches Ableton Live without prompting the user for recovery
@echo off
setlocal enabledelayedexpansion
set BASE_PATH=%AppData%\Ableton
set ABLETON_LIVE_PATH=%ProgramData%\Ableton\Live 12 Lite\Program\Ableton Live 12 Lite.exe
set LATEST_VERSION=0
set LATEST_VERSION_PATH=
goto :main
@ozturkkl
ozturkkl / .tmux.conf
Created February 3, 2024 02:46
tmux-conf
set -g mouse on
bind-key h swap-pane -t 0
# #!/bin/bash
# # util func to send keys to all panes
# _tmux_send_keys_all_panes_ () {
# for _pane in $(tmux list-panes -F '#P'); do
# tmux send-keys -t ${_pane} "$@"
@ozturkkl
ozturkkl / youtube_fix
Last active June 3, 2024 16:38
Youtube Shortcuts Focus Fix
// ==UserScript==
// @name Kemal's Youtube Keyboard Shortcut Fix
// @namespace http://tampermonkey.net/
// @version 2024-05-17
// @description Fix annoying inconsistent arrow key shortcuts
// @author Kemal
// @match https://gist.github.com/ozturkkl/0d72d3747fbc5510df981b7c1495f959
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant window.onurlchange
// @run-at document-idle