Skip to content

Instantly share code, notes, and snippets.

View realeroberto's full-sized avatar
💭
Trust your journey.

Roberto Reale realeroberto

💭
Trust your journey.
View GitHub Profile
@ldante86
ldante86 / igpay.sh
Created November 16, 2016 06:25
Text to Pig Latin
#!/bin/bash -
#
# SCRIPT: igpay
# AUTHOR: Luciano D. Cecere
# DATE: 10/18/2014-04:29:05 PM
#
########################################################################
#
# igpay - convert standard input to standard pig latin :@)
# Copyright (C) 2014 Luciano D. Cecere <[email protected]>
@ldante86
ldante86 / rot.sh
Created November 16, 2016 06:26
rotate string
#!/bin/bash -
#
# SCRIPT: rot
# AUTHOR: Luciano D. Cecere
#
########################################################################
#
# rot - rotate the alphabet and encode a string
# Copyright (C) 2014 Luciano D. Cecere <[email protected]>
#
@frafra
frafra / mbox2html.py
Last active February 22, 2025 03:24
Mailbox to HTML conversion using Python 3 + Jinja2 in less than 100 lines (including GPLv3 license)
#!/usr/bin/env python3
#
# Copyright (C) 2016 - Francesco Frassinelli
#
# 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,
@ddgenome
ddgenome / travis-ci-git-commit.bash
Last active February 16, 2023 06:13
Make a commit on a branch in a Travis CI build, dealing with detached HEAD state safely
#!/bin/bash
# function to make a commit on a branch in a Travis CI build
# be sure to avoid creating a Travis CI fork bomb
# see https://github.com/travis-ci/travis-ci/issues/1701
function travis-branch-commit() {
local head_ref branch_ref
head_ref=$(git rev-parse HEAD)
if [[ $? -ne 0 || ! $head_ref ]]; then
err "failed to get HEAD reference"
return 1