Skip to content

Instantly share code, notes, and snippets.

View dolmen's full-sized avatar
😁
Happy!

Olivier Mengué dolmen

😁
Happy!
View GitHub Profile
@endolith
endolith / Has weird right-to-left characters.txt
Last active April 30, 2024 12:48
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@rjbs
rjbs / can-ver.pl
Created November 17, 2009 22:20
abusing prototype() for API version
# if ($obj->can('foo')) { ... }
# if ($obj->can('foo', $api_version)) { ... }
# if ($obj->can('foo', $api_version, $minor_version)) { ... }
use strict;
use Number::Nary qw(n_codec);
my $major = 10;
load_plugin qw(
Completion
CompletionDriver::INC
CompletionDriver::LexEnv
CompletionDriver::Keywords
CompletionDriver::Methods
ReadLineHistory
);
@dolmen
dolmen / which.cmd
Created August 27, 2010 16:42
'which' command for Win32
@echo off
:: Copyright © 2010-2011 Olivier Mengu‚
::
:: This program is free software: you can redistribute it and/or modify
:: it under the terms of the GNU General Public License as published by
:: the Free Software Foundation, either version 3 of the License, or
:: (at your option) any later version.
::
:: This program is distributed in the hope that it will be useful,
:: but WITHOUT ANY WARRANTY; without even the implied warranty of
@dolmen
dolmen / utf8-console.cmd
Created October 22, 2010 09:50
Console Win32 en UTF-8
@mode con cp select=65001
@eiro
eiro / gist:658253
Created November 1, 2010 14:32
parsing DNS zone with regexp::grammars
#! /usr/bin/perl
use Modern::Perl;
use YAML;
# Net::Grammars::Digzone;
# possible bugs: no empty line available
# http://en.wikipedia.org/wiki/List_of_DNS_record_types
my $parse_dig_zone = do {
use Regexp::Grammars;
qr{
@bzerangue
bzerangue / rfc-date-to-iso-date.xsl
Created March 9, 2011 16:11
[XSLT] Convert RFC 2822 format to ISO date format
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Name: RSS feed date format to Symphony date format
Version: 1.0
Author: Brian Zerangue <brian.zerangue@gmail.com>
URL: http://symphony21.com/downloads/xslt/file/20457/
Description:
Convert RSS feed date format to Symphony date format
Convert RFC 2822 timestamp format to ISO date format minus the time info (Symphony CMS date format)
@a2800276
a2800276 / nodecamp.eu-talks-2011.md
Created June 14, 2011 04:37 — forked from fhemberger/nodecamp.eu-talks-2011.md
A collection of talks and presentations held at nodecamp.eu 2011
@fbuchinger
fbuchinger / .picasa.ini
Created July 9, 2011 18:26
.picasa.ini decoded
#==============================================================
# .picasa.ini FILE STRUCTURE
#
# reverse-engineered by Franz Buchinger <fbuchinger@gmail.com>
# licensed to the public domain
#
# Picasa Version(s): 3.8.0
#
# Changelog:
# v0.1: initial release
@cognominal
cognominal / gitprompt.pl
Created July 22, 2011 13:50
A small script to get information on the current git repos #perl
#! /usr/bin/env perl
=pod
=head1 NAME
gitprompt -- output info about git status, current repo, current branch name for use in a shell prompt
=head1 DESCRIPTION
Make sure gitprompt is executable and accessible from you PATH.
With the bash shell, add the following line in your C<~/.profile>