Skip to content

Instantly share code, notes, and snippets.

@ralampay
ralampay / build.js
Last active March 28, 2025 02:30
Build script for esbuild for SPA applications (uses dotenv and sass)
import esbuild from 'esbuild';
import {sassPlugin} from 'esbuild-sass-plugin';
import postcss from 'postcss';
import autoprefixer from 'autoprefixer';
import "dotenv/config";
const port = 8000;
const args = process.argv.slice(2);
const watch = args.includes("--watch");
const dev = args.includes("--dev");
@ralampay
ralampay / resize.sh
Created February 14, 2018 09:02
Simple tool to resize all images in a given directory
DIR=$1
for file in $DIR/*
do
echo "Resizing $file"
mogrify -resize $2x$3 $file
done
@ralampay
ralampay / .tmux.conf
Last active January 6, 2025 14:44
Tmux Config
# Set <Prefix> to C-a (C-b is the default)
set-option -g prefix C-a
# Make sure we can still send C-a
bind-key C-a send-prefix
# Free the original C-b prefix keybinding
unbind-key C-b
# Smart pane switching with awareness of vim splits (from christoomey/vim-tmux-navigator)
@ralampay
ralampay / .vimrc
Last active December 15, 2020 14:13
VIM setup for Development
syntax on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-rails'