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 / install-gm-w-librvg.sh
Last active October 24, 2019 16:30 — forked from whyvez/install-gm-w-librvg.sh
Installs ImageMagick --with-librsvg on Amazon Linux
# With this I was able to successfuly install everything
# on a x86 (32-bit) instance of Amazon Linux.
#
# You should probably not run this script
# It is a much better idea to use this as an Install guide
# Just follow it down, use your tab and be happy
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig
export PATH=/usr/bin:$PATH
export LDFLAGS=-L/usr/lib64:/usr/lib
@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
@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.
#
$ 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
@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
#!/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 / as_deb_install.sh
Last active February 5, 2024 19:42
Instalar Linx Autosystem Debian, Mint, Ubuntu (via Repo Fatux)
#!/bin/bash
####################################################################################################
##
## Instalador do pacote do Autosystem para Debian, Mint e Ubuntu
## as_deb_install.sh
##
## One-liner:
## wget 'https://gist.githubusercontent.com/tavinus/146bdce3695cae9cfec02b534c2ff30f/raw/as_deb_install.sh' && sudo chmod +x as_deb_install.sh && sudo ./as_deb_install.sh
##
@tavinus
tavinus / x11vnc-start
Last active March 29, 2018 20:14
Starts VNC server for the current session
#!/bin/bash
###########################################################################
# /usr/local/bin/x11vnc-start
# Starts VNC server for the current session
#
# Gustavo Neves - 4th Jul 2016
#
# Install x11vnc:
# sudo apt-get install x11vnc
@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
#