Skip to content

Instantly share code, notes, and snippets.

View aschmelyun's full-sized avatar
Tinkering

Andrew Schmelyun aschmelyun

Tinkering
View GitHub Profile
@aschmelyun
aschmelyun / init.vim
Created May 5, 2026 07:04
nvim config
if &compatible
set nocompatible " Be iMproved
endif
syntax on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set number
set noerrorbells
@aschmelyun
aschmelyun / app.html
Created April 5, 2026 15:21
Crescent cookie cutter STL generator with Three.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crescent Moon Cookie Cutter</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
@aschmelyun
aschmelyun / index.html
Created August 14, 2025 23:37
lizard.click source code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#ffffff">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<meta name="apple-mobile-web-app-title" content="Lizard">
@aschmelyun
aschmelyun / run.sh
Last active June 15, 2025 21:42
Dashcam ffmpeg timelapse script
#!/bin/bash
# Extracts frames every 3 seconds from dash cam videos and creates a timelapse
# Save this file, chmod +x ./run.sh, and then run with ./run.sh
# Configuration
INPUT_DIR="./raw_video" # Change this to your video files directory
OUTPUT_DIR="./timelapse_frames"
FINAL_VIDEO="dashcam_timelapse.mp4"
FRAME_RATE=60
@aschmelyun
aschmelyun / settings.json
Created November 16, 2021 05:54
VS Code Settings
{
"editor.codeLens": false,
"workbench.colorTheme": "Atom One Dark",
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
"editor.selectionHighlight": false,
"editor.highlightActiveIndentGuide": false,
@aschmelyun
aschmelyun / seed.js
Created July 23, 2021 03:25
Test remote seeding of json-server
const data = {
users: []
};
for (let i=0; i<100; i++) {
data.users.push({
id: i,
name: `User #${i}`
});
}
@aschmelyun
aschmelyun / settings.json
Created April 17, 2021 07:05
My current VS Code settings file
{
"editor.codeLens": false,
"workbench.activityBar.visible": false,
"window.zoomLevel": 1,
"workbench.colorTheme": "One Dark Pro",
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
},
@aschmelyun
aschmelyun / cr2_to_jpg.sh
Created December 5, 2020 00:55
Bash script to convert CR2 images to JPG using dcraw
#!/usr/bin/bash
# usage ./cr2_to_jpg.sh /path/to/cr2/images/ /path/to/converted/jpgs/
i=1
total=$(find $1 -type f | wc -l)
for file in $1*.CR2
do
dcraw -c -w -b 1.5 $file | pnmtojpeg > $2$(basename $file .CR2).jpg
@aschmelyun
aschmelyun / windows-macos-keybindings.ahk
Last active May 3, 2026 11:19
AutoHotKey script for enabling alt-tab on a Windows system after switching the Alt and Ctrl keys
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
LCtrl & Tab:: AltTab
!Tab:: Send ^{Tab}
!+Tab:: Send ^+{Tab}
^Space:: Send ^{Esc}
@aschmelyun
aschmelyun / bash
Last active February 19, 2020 07:51
docker-compose run --rm npm run gulpwatch