Skip to content

Instantly share code, notes, and snippets.

View mrenvoize's full-sized avatar
🏠
Working from home

Martin Renvoize mrenvoize

🏠
Working from home
View GitHub Profile
@pjf
pjf / regexps-are-fabulous.pl
Created April 26, 2017 12:05
Here are great things you can do with regexp matching groups
#!/usr/bin/env perl
# These lines enable newer Perl features (like 'say'), and encourage
# good coding practices.
use v5.10;
use strict;
use warnings;
use autodie;
# Our script will search for strings in the following form:
package Mojo::JSON::Patch;
use Mojo::Base 'Mojo::JSON::Pointer';
use Carp 'croak';
use Mojo::Path;
sub set {
my $self = shift;
my $path = Mojo::Path->new(shift);
my $val = shift;
@ribasushi
ribasushi / 2015-01-30.md
Last active December 29, 2023 22:52
The origins of the river of CPAN (QAH 2015)
Subject: What I want for Christm^W the QA hackathon
Date: Fri, 30 Jan 2015 12:20:46 +0100
From: Peter Rabbitson <[email protected]>
To: { about 35 people, various stakeholders around Perl and CPAN }

(This mail is addressed to a lot of people, mainly to the list of current participants, and then to some extra folks who I think ought to be in Berlin anyway, and even some more people on BCC. Sorry for taking your collective time)

Greetings!

@jirutka
jirutka / pg_change_db_owner.sh
Last active February 6, 2024 20:01
Some convenient scripts to manage ownerships and privileges in PostgreSQL.
#!/bin/sh
#
# The MIT License
#
# Copyright 2014-2017 Jakub Jirutka <[email protected]>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@nkwhr
nkwhr / run.sh
Created April 3, 2014 08:26
helper script for executing plenv + carton app in cron.
#!/bin/sh
export HOME="/home/me"
export PATH="$HOME/.plenv/bin:$PATH"
eval "$(plenv init -)"
cd $HOME/app
exec carton exec -- "$1"