Skip to content

Instantly share code, notes, and snippets.

View y4nnick's full-sized avatar

Yannick Schwarenthorer y4nnick

View GitHub Profile
@cwdesautels
cwdesautels / H2BackupTool.java
Last active January 17, 2022 20:56
Sample using H2's Backup and Restore tools
package h2;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.h2.jdbcx.JdbcDataSource;
import org.h2.tools.Backup;
@subtleGradient
subtleGradient / git-transmit
Created April 26, 2010 19:11
git-transmit opens your recently modified files using Panic's Transmit.app DockSend
#!/usr/bin/env bash
# author: Thomas Aylott SubtleGradient.com
echo "Transmitting"
for i in `git log -${1:-1} $2 --name-only|grep -E '^[^ ]+$'|sort|uniq`; do
if [[ -e $i ]]; then
echo " $i"
open -a Transmit $i
fi
done