Skip to content

Instantly share code, notes, and snippets.

View ivan-kalachikov's full-sized avatar
:octocat:
falling in love with open source

Ivan Kalachikov ivan-kalachikov

:octocat:
falling in love with open source
View GitHub Profile
@emepetres
emepetres / cursor-remove-titlebar.sh
Last active March 18, 2025 08:45
Remove Cursor AI titlebar in Gnome
#!/bin/bash
set -ex
## Script to remove titlebar in Cursor on Gnome (based on https://github.com/getcursor/cursor/issues/837#issuecomment-2614109807)
APP_IMAGE=/opt/cursor-bin/cursor-bin.AppImage
BUILD_PATH=./patch-cursor
mkdir $BUILD_PATH
pushd $BUILD_PATH
@OrionReed
OrionReed / dom3d.js
Last active May 15, 2025 11:15
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@amitchhajer
amitchhajer / Count Code lines
Created January 5, 2013 11:08
Count number of code lines in git repository per user
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n