-
putnamhill
- Vermont, USA
- https://putnamhill.net
- @putnamhill
Pinned Loading
-
git-init-remote
git-init-remote 1#!/bin/sh
2# create remote origin and push
34# use 'trunk' unless init.defaultBranch is set
5default_branch=$(git config init.defaultBranch || echo 'trunk')
-
split-join using local IFS
split-join using local IFS 1#!/usr/bin/env bash
23split() {
4local IFS="$1"
5shift
-
These are mostly notes for myself; s...
These are mostly notes for myself; some I've found and others I've made. 1## git
23clone from tnas
4```bash
5git clone -u /usr/local/bin/git-upload-pack nas-c:git/smokeping.git
-
Run a command each time a file is mo...
Run a command each time a file is modified. For example: validate an html file automatically each time it's saved. 1#!/bin/sh
23# sample usage:
4# ontouchdo malformed.html 'clear; xmllint --noout --valid malformed.html 2>&1 | head -n20'
5#
-
Print groups of files that are dupli...
Print groups of files that are duplicates. 1#!/usr/bin/perl
23use strict;
4use warnings;
5use Getopt::Long;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.