Skip to content

Instantly share code, notes, and snippets.

View tavinus's full-sized avatar

Gustavo Arnosti Neves tavinus

View GitHub Profile
@tavinus
tavinus / ppk2pem.sh
Last active April 1, 2018 00:29
Transforms putty certificates to OpenSSH (ppk to pem)
#!/bin/bash
########################################################################
## ppk2pem.sh
##
## Gustavo Arnosti Neves
## 30 / Ago / 2016
##
## Transforma um certifica .ppk (Putty) para .pem (OpenSSH)
## usando o aplicativo puttygen (deve ser instalado na maquina)
@ECHO OFF
:: Dirf2017 Java Loader - https://gist.github.com/tavinus/3f2a485434b755d6569976215d3f4ea0
:: Use o instalador em: https://gist.github.com/tavinus/812db2dbf9c22908ebc3c0a37f87e818
set PATH=C:\Arquivos de Programas RFB\Dirf2017\clientfirebird;%PATH%
start /d "C:\Arquivos de Programas RFB\Dirf2017" "" "javaw" -jar pgdDirf.jar -classpath "C:\Arquivos de Programas RFB\Dirf2017\lib"
@tavinus
tavinus / dirf2017-javaloader-install.bat
Last active January 17, 2018 06:06
Cria um loader .BAT e um atalho no Desktop para o Dirf2017
@echo off
:: Gustavo Arnosti Neves - Fev 2017
:: https://github.com/tavinus
:: https://gist.github.com/tavinus/812db2dbf9c22908ebc3c0a37f87e818
:: Se voce instalou o Dirf2017 em uma pasta diferente, mude aqui!
set DIRFFOLDER=C:\Arquivos de Programas RFB\Dirf2017
@tavinus
tavinus / README.md
Created February 21, 2017 09:13 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@tavinus
tavinus / hplipMintInstall.sh
Last active March 7, 2017 02:18
hplip 3.16.11 mint 17.3 install
#!/bin/bash
TRUE=0
FALSE=1
PBIN="$(which python)"
PY2="$(python --version 2>&1 | grep -w 'Python 2')"
[[ -z $PY2 ]] && PY2=$FALSE || PY2=$TRUE
WGETBIN="$(which wget 2>/dev/null)"
@tavinus
tavinus / diff-git.sh
Last active October 16, 2019 07:59
Use git-diff as diff in OpenWRT / LEDE
#!/bin/sh
##############################################################
# Gustavo Arnosti Neves
#
# Provides a diff-git shortcut in /usr/bin/diff-git
#
# Required: GIT
# # opkg install git
#
# You may install diffutils for the simplified diff
@tavinus
tavinus / opkg-do-upgradable.sh
Last active December 13, 2019 22:00
OpenWRT / LEDE quick and dirty packages upgrade
#!/bin/sh
###############################################
# Gustavo Arnosti Neves
# May / 2017
#
# Upgrade packages listed by:
# opkg list-upgradable
#
# This Script:
# https://gist.github.com/tavinus/997d896cebd575bfaf1706ce6e701c2d
#!/bin/sh
###############################################
###############################################
##
## MOVED TO GITHUB REPOSITORY!!
## https://github.com/tavinus/opkg-upgrade
## THIS WILL NOT BE UPDATED!!
##
###############################################
###############################################
@tavinus
tavinus / hplipMintInstall.sh
Last active May 13, 2017 03:46
hplip 3.17.4 mint 17.3 install
#!/bin/bash
TRUE=0
FALSE=1
PBIN="$(which python)"
PY2="$(python --version 2>&1 | grep -w 'Python 2')"
[[ -z $PY2 ]] && PY2=$FALSE || PY2=$TRUE
WGETBIN="$(which wget 2>/dev/null)"
@tavinus
tavinus / ttf-vista-fonts-installer.sh
Last active October 7, 2021 08:43 — forked from maxwelleite/ttf-vista-fonts-installer.sh
Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
#!/bin/bash
# Author: Maxwel Leite
# Changes: Gustavo Neves
# Website: http://needforbits.wordpress.com/
# Description: Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
# Microsoft added a group of new "ClearType Fonts" to Windows with Windows Vista and Office 2007.
# These fonts are named Constantia, Corbel, Calibri, Cambria (and Cambria Math), Candara, and Consolas.
# Calibri became the default font on Microsoft Word 2007, and it’s still the default font on Word 2016 today.
# Dependencies: wget, fontforge and cabextract
# Tested: Ubuntu Saucy/Trusty/Xenial