Skip to content

Instantly share code, notes, and snippets.

View leodido's full-sized avatar
🚒

Leo Di Donato leodido

🚒
View GitHub Profile
@leodido
leodido / argp-subcommand.c
Created October 4, 2021 21:28 — forked from sam-github/argp-subcommand.c
argp subcommand example
/*
* Sample command line parser.
*
* Implements sub-commands with their own option handlers.
*
*/
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
@leodido
leodido / MySQL dump - zip - mail
Last active October 11, 2015 01:18 — forked from miziomon/mysql2mail
MySQL dump, zip and mail command
mysqldump -u[user] -p[password] [dbname]| gzip --best -c > [dbname].sql.gz && (date && echo "[mail subjext]" && uuencode [dbname].sql.gz ) | mail [mail] -s "[mail subjext]"
@leodido
leodido / R.sublime-completions
Created July 17, 2012 05:47 — forked from jlegewie/R.sublime-completions
Sublime Text 2 - R Auto-completions
{
"scope": "source.r",
"completions":
[
"abline",
"abs",
"anova",
"anova.glm",
"anova.lm",
@leodido
leodido / ST2 - Useful Shortcuts
Last active October 7, 2015 05:58
Sublime Text 2 - Useful Shortcuts
h1. Sublime Text 2 - Useful Shortcuts
Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/.
h2. Editing
| *Ctrl+C* | copy current line (if no selection) |
| *Ctrl+X* | cut current line (if no selection) |
| *Ctrl+⇧+K*| delete line |
| *Ctrl+↩* | insert line after |