Skip to content

Instantly share code, notes, and snippets.

View hvmonteiro's full-sized avatar

Hugo Monteiro hvmonteiro

View GitHub Profile
@epicserve
epicserve / svn_to_git.rst
Created September 15, 2011 17:17
Convert SVN Repositories to Git Repositories

Convert SVN Repositories to Git Repositories

This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.

1. Retrieve a list of all Subversion committers

@danielfm
danielfm / openelec-flexget-howto.md
Last active March 6, 2020 22:49
How To Install FlexGet on OpenELEC 4.0

Instructions

The first thing to do is create a file ~/.pydistutils.cfg with the following content:

[install]
install_lib = ~/py-lib
install_scripts = ~/bin
@hvmonteiro
hvmonteiro / .LS_COLORS
Created April 12, 2016 18:19
Hvm's customized Shell colors for bash (file: ~/.LS_COLORS)
# LS_COLORS
# Maintainers: Magnus Woldrich <m@japh.se>,
# Ryan Delaney <ryan.delaney@gmail.com> OpenGPG: 0D98863B4E1D07B6
# URL: https://github.com/trapd00r/LS_COLORS
# Version: 0.254
# Updated: Sun Jun 1 14:36:30 PDT 2014
#
# This is a collection of extension:color mappings, suitable to use as your
# LS_COLORS environment variable. Most of them use the extended color map,
# described in the ECMA-48 document; in other words, you'll need a terminal
@hvmonteiro
hvmonteiro / debug.lib
Created April 12, 2016 18:42
Bash Scripts
#!/bin/bash
DEBUG_FILE="debug.log"
LOG_FILE="info.log"
FAILURE=1
SUCCESS=0
# Outputs a message to the console
_print_msg () {
@hvmonteiro
hvmonteiro / .jshintrc
Last active March 1, 2018 12:44
Custom JSHint options (file: ~/.jshintrc)
{
"nocomma": false,
"esversion": 6,
"globals": [ {
"require": true,
"__dirname": true,
"process": true,
"module": true,
"console":, true
}]
@hvmonteiro
hvmonteiro / packages.cson
Created April 15, 2016 19:07
Atom.io Editor Packages (file: ~/.atom/packages.cson)
packages: [
"api-docs"
"atom-autocomplete-php"
"atom-beautify"
"atom-css-comb"
"atom-html-preview"
"atom-webbrowser"
"auto-detect-indentation"
"autoclose-html"
"autocomplete-html-entities"
@hvmonteiro
hvmonteiro / putty-hvm-settings.reg
Last active August 17, 2021 14:35
PuTTY Customized Settings
Windows Registry Editor Version 5.00
;
; Author: Hugo Monteiro
; Description: Customized puTTY settings
; URL : https://gist.github.com/hvmonteiro/6f1f2acd602c1db3c546fe30761a8d20
; Last Changed: 17-04-2016
; Installation: File to be imported/merged into Windows Registry
; Notes: LOCALE is configured to: ISO-8859-1:1998 (Latin-1, West Europe) - You can change it after import
;
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
@hvmonteiro
hvmonteiro / legal-notice-example01
Last active April 5, 2024 14:36
LEGAL Notices for Login/MOTD unix banners
@hvmonteiro
hvmonteiro / snippets.cson
Created April 19, 2016 13:59
Atom Editor snippets for Bash Shell Scripting
#
# Author: Hugo Monteiro
# Description: Atom Editor snippets for Bash Shell Scripting
# URL : https://gist.github.com/hvmonteiro/4c4df4afd0f4d5908d5be890071b74c1
# Last Changed: 19-04-2016
# Installation: File to be copy/pasted into Atom Editor snippets configuration file
'.source.shell':
# function to print a message and exit with an error
'function exit_with_error':
@hvmonteiro
hvmonteiro / .screenrc
Created April 20, 2016 14:24
Screen resource file (~/.screenrc)
# Look and feel
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
# Number of output lines saved that can be scrolled
defscrollback 20000
# Status bar
caption always "%{= bb}%{+b w}Screen: %n | %h %=%t %c"
#caption always '%{-b}%{= wb}%-Lw%{= wr}%{+b}%n%f %t%{= wb}%{-b}%+Lw %{= wr} %=%c %d-%m-%Y'