Skip to content

Instantly share code, notes, and snippets.

View mavcunha's full-sized avatar

Marco Valtas mavcunha

View GitHub Profile
@mavcunha
mavcunha / tot.sh
Last active June 25, 2020 00:52 — forked from chockenberry/tot.sh
A shell script for Tot
#!/bin/sh
basename=`basename $0`
if [ -z "$*" ]; then
cat <<-EOH
usage: ${basename} <dot> [ -o | -r | <file> | - ]
options:
-o open dot in window with keyboard focus

Keybase proof

I hereby claim:

  • I am mavcunha on github.
  • I am mvaltas (https://keybase.io/mvaltas) on keybase.
  • I have a public key ASCzQ3aQH6GxhZRr2LCIBAAJCL-g1z1TVDW6BfkYEIn1lwo

To claim this, I am signing this object:

@mavcunha
mavcunha / vim.sh
Last active November 3, 2016 22:09
Grind vim installation configuration
# vim: ft=sh
do_run "brew install vim"
unless_file "/usr/local/bin/vim"
do_run "git clone https://github.com/mavcunha/vim.git ${HOME}/Projects/vim"
unless_dir "${HOME}/Projects/vim"
do_run "mkdir -p ${HOME}/.vim/bundle"
unless_dir "${HOME}/.vim/bundle"
@mavcunha
mavcunha / fswatch-publish-blog.sh
Created June 14, 2015 02:32
Script to trigger Snap when Dropbox folder is updated.
#!/usr/bin/env bash
set -e
SNAP_KEY=$(keychain snap-api-key)
SNAP_API_ROOT_URL="https://api.snap-ci.com/project/mavcunha/blog/branch/master"
SNAP_LATEST="/pipelines/latest"
HTTP_OPTS="-u mavcunha:${SNAP_KEY} --silent -X"
\begin{lilypond}
#(set-global-staff-size 20)
\score {
{
\hideNotes
c8 c c c c c c c \break s4
}
\layout {
\context {
\Score