Skip to content

Instantly share code, notes, and snippets.

View daniel-san's full-sized avatar

Daniel Lucas daniel-san

View GitHub Profile
@daniel-san
daniel-san / .zshrc
Created June 10, 2025 21:10 — forked from bashbunni/.zshrc
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@daniel-san
daniel-san / .zshrc
Created June 10, 2025 21:10 — forked from bashbunni/.zshrc
CLI Pomodoro for Linux
# study stream aliases
# Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro
declare -A pomo_options
pomo_options["work"]="45"
pomo_options["break"]="10"
pomodoro () {
if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then
val=$1
@daniel-san
daniel-san / vim-shortcuts
Last active December 6, 2019 19:24
Useful vim shortcuts
H -> Move cursor to top of view
M -> Move cursor to middle of view
L -> Move curosr to end of view
za -> Fold/unfold a indented code block
J -> Join multiple lines into one
@daniel-san
daniel-san / settings.json
Last active June 24, 2019 18:08
My vscode settings -- still updating
{
"window.titleBarStyle": "custom",
"editor.fontFamily": "mononoki,'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontSize": 16,
"editor.lineHeight": 30,
"workbench.colorTheme": "One Dark Pro Vivid",
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"editor.formatOnSave": true,
"editor.rulers": [80, 120],
@daniel-san
daniel-san / musicOrganizer(c).sh
Created May 8, 2012 13:37
Script for organizing a music directory
#!/bin/bash
#Script for organize a directory of songs
#This script create directory for song authors, sub-directories for albums
#and copy the respective album songs to the respective directory
a=`ls *.mp3 | cut -d "-" -f 1 | uniq`
#mkdir $a
for i in $a
do