Skip to content

Instantly share code, notes, and snippets.

@gthrm
gthrm / hand-brake-preset-apple-240p30.json
Created July 13, 2025 16:34
HandBrake Preset for iPod Classic 5th Video
{
"PresetList" : [
{
"AlignAVStart" : false,
"AudioCopyMask" : [
"copy:aac"
],
"AudioEncoderFallback" : "ca_aac",
"AudioLanguageList" : [

How to Install Cursor AI on Fedora

Installation Steps

1. Download Cursor AI

Download from cursor.com

2. Open Terminal and Navigate to Downloads

cd ~/Downloads
{
"react-functional-component-ts-file-name": {
"prefix": "rfc",
"body": [
"import React from 'react';",
"",
"interface ${TM_FILENAME_BASE}Props {",
" ${2:propName}?: string;", // Assuming the prop type is string for demonstration; adjust as necessary.
"}",
"",
@gthrm
gthrm / react-functional-component-ts-folder-name.json
Created April 29, 2024 15:49
react-functional-component-ts-folder-name
{
"react-functional-component-ts-folder-name": {
"prefix": "rfc",
"body": [
"import React from 'react';",
"",
"interface ${TM_DIRECTORY/.*\\/(.*)$/$1/g}Props {",
" ${2:propName}?: string;", // Assuming the prop type is string for demonstration; adjust as necessary.
"}",
"",
@gthrm
gthrm / launch.json
Created December 8, 2022 17:21 — forked from fhefh2015/launch.json
Nest.js VSCode Chrome Debug
//.vscode/launch.json
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
@gthrm
gthrm / getByPath.js
Created February 18, 2022 12:53
getByPath
export function getByPath(
path: string[] | string,
obj: Record<string, any>,
separator = "."
) {
const properties = Array.isArray(path) ? path : path.split(separator);
return properties.reduce((acc: Record<string, any>, item: string) => {
return acc[item];
}, obj);
}
@gthrm
gthrm / git-branches-by-commit-date.sh
Created December 20, 2021 17:09 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@gthrm
gthrm / test.sh
Last active December 14, 2021 08:58
test.sh
#!/bin/bash
# Name: test.sh
# Purpose: Demos compgen and complete
# Author: Vivek Gite, under GPL v2.x+
# ------------------------------------------
# My default interface
if_default="br0"
# Help
@gthrm
gthrm / answerfile
Created December 9, 2021 20:19 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@gthrm
gthrm / css-selectors.md
Last active April 28, 2023 18:16
CSS Selectors

CSS Selectors

Simple

  • * all elements
  • div - all div tags
  • div,p - all div's and paragraphs
  • div p - paragraphs inside div's
  • div > p - all p tags, one level deep in div
  • div + p - p tags immediately after div