Skip to content

Instantly share code, notes, and snippets.

View voyeg3r's full-sized avatar

Sérgio Luiz Araújo Silva voyeg3r

View GitHub Profile
@voyeg3r
voyeg3r / gist:359960
Created April 8, 2010 10:14
ethtool - melhorando o desempenho da rede
#!/bin/sh
# permanent settings for network interface
# http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html
# edit file: /etc/init.d/100Mbs
# sudo vi /etc/init.d/100Mbs
#Append following lines:
# chmod +x /etc/init.d/100Mbs
# update-rc.d 100Mbs defaults
# /etc/init.d/100Mbs start
@voyeg3r
voyeg3r / zsynciso.sh
Created April 10, 2010 12:27
zsync - atualizando a iso do ubuntu
# este é um esboço do que pode ser um script para automatizar o processo de baixar a iso diária do
# ubuntu
sudo su -
aptitude install -y zsync
# acesse a imagem do dia
# http://cdimage.ubuntu.com/daily/current/
# o próprio zsync faz a checagem de integridade portando não
@voyeg3r
voyeg3r / prime.py
Created April 12, 2010 18:56
python - calculando numeros primos
#!/usr/bin/env python
# # -*- coding: UTF-8 -*-
# Criado em:Seg 12/Abr/2010 hs 15:48
# Last Change: Seg 12/Abr/2010 hs 15:48
# vim:ft=python:nolist:nu:
# Instituicao: none
# Proposito do script: calcular números primos
# Autor: Sérgio Luiz Araújo Silva
# site: http://vivaotux.blogspot.com
# Referências: http://pipeless.blogspot.com/2008/09/o-crivo-de-eratstenes-em-python.html
@voyeg3r
voyeg3r / atalho-xkill.sh
Created April 15, 2010 10:09
gnome - atalho para abrir o xkill
# source: http://www.uluga.ubuntuforums.org/showthread.php?t=1431468
gconftool-2 --type string --set /desktop/gnome/keybindings/custom0/action "xkill"
gconftool-2 --type string --set /desktop/gnome/keybindings/custom0/binding "<Control><Alt>x"
gconftool-2 --type string --set /desktop/gnome/keybindings/custom0/name "Kill Application"
@voyeg3r
voyeg3r / squid.conf
Created April 15, 2010 16:55
squid - cache de músicas do youtube
########### Cache Videos e músicas ###########
refresh_pattern -i \.(mp3|mp4|m4a|ogg|mov|avi|wmv)$ 10080 90% 999999 ignore-no-cache override-expire ignore-private
acl youtube dstdomain .youtube.com
cache allow youtube
################################
# Como os arquivos de vídeo são grandes, é necessário também aumentar o maximum_object_size
maximum_object_size 102400 KB (100MB)
@voyeg3r
voyeg3r / sysctrl.conf
Last active September 14, 2019 10:29
desempenho de reded
# /etc/sysctrl.conf
# references:
# https://klaver.it/linux/sysctl.conf
# https://wiki.archlinux.org/index.php/Sysctl
# wget -c https://raw.github.com/gist/368407/ -O - > /etc/sysctrl.conf
# ( O O )
# +===========oOO==(_)==OOo==============+
# | |
@voyeg3r
voyeg3r / xorg.conf
Created April 19, 2010 12:47
xorg.conf para placas sis 771 no ubuntu karmic para maquinas sim+
# válido para placas sis 771 no ubuntu karmic para maquinas sim+
# link onde peguei este xorg: http://www.ubuntu-es.org/?q=node/86080
#
# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
@voyeg3r
voyeg3r / codecs-lucid.sh
Created April 19, 2010 13:56
install codecs and programmas for ubuntu lucid 10.04
#!/bin/bash
#######################################################################################
# PROÓSITO DO SCRIPT: INSTALAR PACOTES EXTRAS E CODECS PARA UBUNTU 10.04 LUCID LINUX #
#######################################################################################
# Criado em:Ter 30/Mar/2010 hs 14:21
# Last Change: Ter 18 Mai 2010 19:07:00 BRT
# vim:ft=sh:fdm=syntax:nu:
# Instituicao: none
# Autor: Sérgio Luiz Araújo Silva
# site: http://vivaotux.blogspot.com
@voyeg3r
voyeg3r / sed-subst.sh
Created April 27, 2010 13:25
regex para pegar protocolo, servidor e linguagem de url
#!/bin/bash
# Criado em:Ter 27/Abr/2010 hs 10:23
# Last Change: Ter 27/Abr/2010 hs 10:23
# vim:ft=sh:fdm=syntax:nu:
# autor: Sérgio Luiz Araújo Silva
# e-mail: voyeg3r - google mail
# site: http://vivaotux.blogspot.com
# ( O O )
# +===========oOO==(_)==OOo==============+
@voyeg3r
voyeg3r / rapidshare-dl.sh
Created May 15, 2010 15:46
bash - baixar arquivos do rapidshare
#!/bin/bash
# Download files from Rapidshare.
#
# Dependencies: curl
#
# Web: http://code.google.com/p/megaupload-dl/wiki/RapidShare
# Web: http://code.google.com/p/plowshare
# Contact: Arnau Sanchez <tokland@gmail.com>.
#