Skip to content

Instantly share code, notes, and snippets.

View tavinus's full-sized avatar

Gustavo Arnosti Neves tavinus

View GitHub Profile
@tavinus
tavinus / NvidiaDevCreator.sh
Created July 1, 2014 17:18
nVidia CUDA linux server dev creator
#!/bin/bash
/sbin/modprobe nvidia
if [ "$?" -eq 0 ]; then
# Count the number of NVIDIA controllers found.
NVDEVS=`lspci | grep -i NVIDIA`
N3D=`echo "$NVDEVS" | grep "3D controller" | wc -l`
NVGA=`echo "$NVDEVS" | grep "VGA compatible controller" | wc -l`
@tavinus
tavinus / cloudprint-start.sh
Last active December 31, 2015 23:09
Enforces cloudprint python connector is running from cron
#!/bin/bash
####################################################################
# cloudprint-start.sh
#
# Enforce that CloudPrint is running
# Gustavo Arnosti Neves
#
# Use full-paths to files, or add a PATH variable or you will
# get errors when running this from Cron.
#
@tavinus
tavinus / cloudprint
Last active January 2, 2016 02:47
Run Google Cloudprint as service - Centos6.5 - armooo's python cloudprint connector
#!/bin/bash
#
# cloudprint Starts the cloudprint connector daemon
# description: Google cloudprint is a service for sharing printers \
# among computers through the internet.
#
### BEGIN INIT INFO
# Provides: cloudprint
# Required-Start: $cups $network $local_fs $syslog
$ tree MageBR-Boleto_Bancario_Magento-master
MageBR-Boleto_Bancario_Magento-master
|-- Changelog.txt
|-- Leia.txt
|-- README.md
|-- Tutorial\ HTML
| |-- images
| | `-- logo.png
| `-- index.html
|-- app
#!/bin/bash
####################################################################
# gcp-start.sh
#
# Enforce that the Google CUPs Connector is running
# Gustavo Arnosti Neves
#
# Use full-paths to files, or add a PATH variable or you will
# get errors when running this from Cron.
#
@tavinus
tavinus / gcp
Last active March 29, 2016 16:51
#!/bin/bash
#
# gcp Starts GCP CUPS Connector daemnon
# description: Google cloudprint is a service for sharing printers \
# among computers through the internet and LAN.
#
### BEGIN INIT INFO
# Provides: cloudprint
# Required-Start: $cups $network $local_fs $syslog
@tavinus
tavinus / xfce4-terminal
Last active July 7, 2016 21:15
xfce4-terminal maximized
#!/bin/bash
###################################################################
#
# Maximized xfce4-terminal
# /usr/bin/xfce4-terminal
#
# Created for linux mint xfce
# Gustavo Neves - 4 Jul 2016
#
@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 / 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)"