Skip to content

Instantly share code, notes, and snippets.

View robrwo's full-sized avatar
💭
Fnorjd

Robert Rothenberg robrwo

💭
Fnorjd
View GitHub Profile
@baskaufs
baskaufs / dctype.ttl
Created February 26, 2016 17:57
Dublin Core type vocabulary in Turtle
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix xml: <http://www.w3.org/XML/1998/namespace>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix dcam: <http://purl.org/dc/dcam/>.
@prefix dcterms: <http://purl.org/dc/terms/>.
<http://purl.org/dc/dcmitype/> dcterms:modified "2010-10-11";
dcterms:publisher <http://purl.org/dc/aboutdcmi#DCMI>;
@robrwo
robrwo / .gitconfig
Last active March 1, 2024 09:20
Git configuration with useful aliases
[alias]
co = checkout
di = diff
st = status
sh = show
ci = commit
br = branch
cp = cherry-pick
last = show -1 HEAD
unstage = reset HEAD --
#!/bin/bash
PSQL="/usr/bin/psql"
PGUSER="dpaikkos"
DBNAME="for_import"
DUMP="www-latest.pg"
REMOTE="proxima"
echo "Fetch $DUMP from $REMOTE"
rm -f $DUMP
#!/bin/bash
PSQL="/usr/bin/psql"
PGUSER="dpaikkos"
DBNAME="import"
DUMP="sirius-latest.pg"
REMOTE="proxima"
rm -f $DUMP
/usr/bin/rsync -La --progress sirius:/data/pg_dumps/latest.pg ${DUMP}
@tomredsky
tomredsky / Artist.pm
Created September 29, 2021 13:22
DBIx example
package MyApp::Schema::Result::Artist;
use warnings;
use strict;
use base qw( DBIx::Class::Core );
__PACKAGE__->table('artist');
__PACKAGE__->add_columns(