Skip to content

Instantly share code, notes, and snippets.

View Skatox's full-sized avatar
๐Ÿ 
Working from home

Miguel Useche Skatox

๐Ÿ 
Working from home
View GitHub Profile
@Skatox
Skatox / tmux-ghostty.sh
Created September 12, 2025 13:29
Always open Ghostty with a tmux session
#!/bin/bash
SESSION_NAME="ghostty"
# Check if the session already exists
tmux has-session -t $SESSION_NAME 2>/dev/null
if [ $? -eq 0 ]; then
# If the session exists, reattach to it
tmux attach-session -t $SESSION_NAME
@Skatox
Skatox / .ideavimrc
Created October 15, 2023 13:29
My ideavim file
set clipboard+=unnamed
set relativenumber
set number
let mapleader=" "
set ideajoini
set quickscope
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
@Skatox
Skatox / class-my-class.php
Created August 23, 2017 14:07
A WordPress plugin class
<?php
/**
* Class description
*
* @package Plugin name
*/
/**
* Class My_Class
*
@Skatox
Skatox / wc-api-custom.php
Created November 16, 2015 21:19
Woocommerce API REST custom path
<?php
/**
* Custom API REST path class
*
* @package MyPlugin
* @author Skatox
*/
class WC_API_Custom extends WC_API_Resource
{