Skip to content

Instantly share code, notes, and snippets.

View koraysels's full-sized avatar

Koray S. koraysels

View GitHub Profile
@koraysels
koraysels / contentBlock-config.ts
Created September 6, 2025 08:39
content block lexical psyloadcms
import type { Block, Field } from 'payload'
import {
FixedToolbarFeature,
HeadingFeature,
InlineToolbarFeature,
lexicalEditor,
UploadFeature,
UnorderedListFeature,
OrderedListFeature,
@koraysels
koraysels / CLAUDE.md
Last active August 31, 2025 06:59 — forked from gregsantos/CLAUDE.md
CLAUDE.md – Next.js + TypeScript + Tailwind + shadcn + React Query Guide

🛠️ Development Environment

  • Language: TypeScript (^5.0.0)
  • Framework: Next.js (App Router)
  • Styling: Tailwind CSS
  • Component Library: shadcn/ui
  • Data Fetching: React Query (TanStack)
  • Testing: Jest + React Testing Library
  • Linting: ESLint with @typescript-eslint
  • Formatting: Prettier
@koraysels
koraysels / smart_unzip.sh
Last active June 16, 2025 09:55
smart unzip of canvas quiz submissions
#!/bin/bash
# Function to check if required tools are available
check_dependencies() {
local missing_tools=()
if ! command -v unzip &> /dev/null; then
missing_tools+=("unzip")
fi
@koraysels
koraysels / checkout.sh
Last active June 18, 2025 19:11
IP1-repo-checkout-or-update
#!/bin/bash
# Target date and time in Brussels time
TARGET_DATE="2025-05-30T23:59:00+02:00"
# Get the absolute path of the starting directory
SCRIPT_DIR=$(pwd)
echo "Script starting in directory: $SCRIPT_DIR"
# Read the file line by line
#!/bin/bash
# Define the SDK directory path as a variable
SDK_DIR="/Users/selsk/Library/Android/sdk"
# Define the subdirectory containing the android project
PROJECT_DIR="/hero"
JAVA_HOME="/Users/selsk/Applications/Android Studio.app/Contents/jbr/Contents/Home"
# Function to search for 'hero' folders 2 directories deep and execute the required commands
search_and_execute() {
@koraysels
koraysels / unzip.sh
Created December 14, 2023 10:07
unzip all zip files in folder and use the zip archive name as the folder root
#!/bin/bash
for zipFile in *.zip; do
fileName=$(basename "$zipFile" .zip)
echo "Extracting $zipFile..."
unzip -q "$zipFile" -d "$fileName"
newName=$(echo "$fileName" | cut -d '_' -f 1)
# Move the contents of the inner folder to the parent folder
#!/usr/bin/env bash
cd INF101AB
while read repo; do
git clone "$repo"
done < ../INF101AB.txt
cd ../INF102AB
while read repo; do
git clone "$repo"
@koraysels
koraysels / create_trellis_project.sh
Last active November 15, 2021 14:09
Create a trellis project from existing bedrock repos
#!/bin/sh
#change de URL of the repo
deployRepo=https://github.com/undefinedio/deveerman-trellis.git
bedrockRepo=https://github.com/undefinedio/deveerman-backend.git
tools=(trellis) #tool from roots.io
subtrees=(trellis) #folder structure for the tools
#init repo
@koraysels
koraysels / TRELLIS setup local + digialocean.md
Last active February 12, 2025 17:57
Use Trellis to deploy to digitalocean droplet
# install vagrant
brew install --cask vagrant

# install ansible
brew install ansible 
brew install esolitos/ipa/sshpass

# install virtualbox but make sure it is virtualbox v6.1.26 
@koraysels
koraysels / roland-dxy-1350.md
Last active June 27, 2025 10:21
Roland Plotter HPGL install guide for Mac