Skip to content

Instantly share code, notes, and snippets.

View siniradam's full-sized avatar
🌎
Digital Nomad

Atlas Koray siniradam

🌎
Digital Nomad
View GitHub Profile
@siniradam
siniradam / disk-passthrough.sh
Created June 9, 2025 18:10
Proxmox disk passthrough script.
#!/usr/bin/env bash
# Copyright (c) 2025
# Author: Atlas (siniradam)
# License: MIT
# https://gist.github.com/siniradam
# This package, is for passthrough of a disk to a VM on Proxmox.
# You can use this script to passthrough a disk to a VM just by answering a few questions.
# This script is intended to be run on the Proxmox host.
@siniradam
siniradam / youtube-downloader.md
Created June 4, 2025 15:54
Downloading youtube videos with single command

Youtube Video Downloader

Instead of everytime dealing with youtube downloader websites, actually you can download it yourself. With this bash script you just need to enter the id of a youtube video or playlist, and you can download it.

  1. You need to download yt-dlp
  2. I am using mac, so just copied yt-dlp binary to /usr/local/bin folder.
  3. Append the code below to your ~/.zprofile file. (Or what ever bash file that suits you)

Usage

@siniradam
siniradam / youtube-boost.md
Last active June 4, 2025 15:57
Changing Youtube's thumbnail count per row

Fixing Youtube's 3 Item in a Row quirk

I was dealing with this weird youtube problem, on my huge display youtube displays 3 huge thumnails per row. In order to fix this you can use this css code below.

You can use this with something like tamper monkey, Stylebot, or like me ARC's Boost feature.

ytd-rich-grid-renderer {
@siniradam
siniradam / amazon-cpu-boost.md
Last active June 4, 2025 16:01
CPU Benchmark widget for Amazon.com listings.

Creating CPU Benchmark Link in Amazon Listings

I originally wrote this code to some other website. Tweaked a bit to use on amazon.com as well. This (most of the time) finds the CPU name in the page and creates a direct link to cpubenchmark.net so you can see in-depth information about the CPU.

Right now I'm using this with arc's boost feature.

If amazon makes changes on their web page, it might not work or there might be layout related issues.

@siniradam
siniradam / bootable-sierra.md
Created January 7, 2025 01:04
MacOs Sierra Installation Drive

MacOs Sierra Installation Drive

If you are having problems to create an installation media for MacOs Sierra here is the solution

  • First you need to download installation, if you have DMG File, run the PKG in DMG Image.
  • This will copy your installation to your /Applications/ folder.
  1. This command will fix the installation to make your USB Drive
@siniradam
siniradam / VSCodeFileNesting.md
Last active May 5, 2023 18:27
You can group config files like a folder to declutter your vscode file explorer, here is my take for sveltekit.

VSCode File Nesting / File Grouping

If you go to your VSCode defaultSettings.json you'll see explorer.fileNesting.patterns key, turns out VSCode can group files based on some patterns.

Here is that section;

	// Controls nesting of files in the Explorer. `explorer.fileNesting.enabled` must be set for this to take effect. Each __Item__ represents a parent pattern and may contain a single `*` character that matches any string. Each __Value__ represents a comma separated list of the child patterns that should be shown nested under a given parent. Child patterns may contain several special tokens:
	// - `${capture}`: Matches the resolved value of the `*` from the parent pattern
	// - `${basename}`: Matches the parent file's basename, the `file` in `file.ts`
@siniradam
siniradam / GoogleMap.svelte
Created February 13, 2023 01:13
Google maps component for SvelteKit.
<script>
const dispatch = createEventDispatcher();
import { onMount } from 'svelte';
import { createEventDispatcher } from 'svelte';
//import mapStyles from './map-styles'; // optional
const key = '';
@siniradam
siniradam / turkeycities.json
Created February 9, 2023 21:06
Turkey's cities and districts
{
"provinces": [
{
"id": 1,
"name": "Adana",
"area": 13844,
"population": 2263373,
"areaCode": [
322
],
@siniradam
siniradam / liveserverOnDemand.md
Last active January 18, 2023 01:06
Tutorial for creating live server for any folder on macos.

How to create a live server for any folder on osx?

With this node package you can create a live server by just right clicking

Install Live-Server Package.

Assuming you alread have node installed; You need to install live-server package globally

npm install -g live-server

@siniradam
siniradam / Awesome-Nostr-Table.md
Last active July 21, 2023 23:33
Roughly every Nostr implmentation is here, pretty much same content on https://github.com/aljazceru/awesome-nostr/blob/main/README.md with languages in table format
Name Type Language Description Link
nostr Resource overview and FAQ