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 / apt-fast
Created May 21, 2010 16:18
apt-fast with aria2c
#!/bin/sh
# Last Change: 2011/10/06
# apt-fast v0.02 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source
# if you do anything cool with it, let me know so I can publish or host it for you
# contact me at admin@mattparnell.com
# Special thanks to Travis/travisn000 from the PCLinux Forums for making improvements that allow
# for more complex apt-get commands. See the thread: http://www.pclinuxos.com/forum/index.php/topic,66385.0.html
# adicionar suporte aos metalinks no aria2: http://ubuntuforums.org/showthread.php?t=1493421
# veja também apt-metalink: http://github.com/tatsuhiro-t/apt-metalink
@voyeg3r
voyeg3r / firefox-cache-to-ram.sh
Created November 14, 2011 14:13
Script to put firefox cache in ram
#!/bin/bash
# HOW TO: Firefox cache in ramdisk (tmpfs)
# http://ubuntuforums.org/showthread.php?t=991205
# https://wiki.archlinux.org/index.php/Firefox_Ramdisk
# download: wget -c https://raw.github.com/gist/1364022/ -O firefox-cache-to-ram.sh && chmod +x $_
clear
echo 'Seu usuário tem que ser sudo user !'
@voyeg3r
voyeg3r / spechtext.sh
Created February 18, 2012 22:20
make your linux speech text from clipboard
#!/bin/bash
# Criado em: Sab 18/Fev/2012 hs 19:10
# Last Change: Sab 18/Fev/2012 hs 19:10
# vim:ft=sh:fdm=syntax:nu:
# Instituicao: <+nome+>
# Proposito do script: spech text from clipboard
# Autor: Sérgio Luiz Araújo Silva
# site: http://vivaotux.blogspot.com
# twitter: http://www.twitter.com/voyeg3r
# source: http://www.youtube.com/watch?v=4uKTamXonPs&feature=g-all-lik&context=G2707f4bFAAAAAAAAAAA
@voyeg3r
voyeg3r / apt-fast.sh
Created May 20, 2010 12:54
apt-fast script
#!/bin/sh
# !/bin/sh
# apt-fast v0.02 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source
# if you do anything cool with it, let me know so I can publish or host it for you
# contact me at admin@mattparnell.com
# Special thanks to Travis/travisn000 from the PCLinux Forums for making improvements that allow
# for more complex apt-get commands. See the thread: http://www.pclinuxos.com/forum/index.php/topic,66385.0.html
# Use this just like apt-get for faster package downloading. Make sure to have axel installed.
@voyeg3r
voyeg3r / keylog2.pl
Created May 4, 2011 17:41
Keylogger (linux)
#!/usr/bin/perl -w
# source: http://www.kirsle.net/blog/kirsle/building-a-better-keylogger
# keylog2 - a rootless keylogger that only requires an X server and the xinput
# command (provided by xorg-x11-apps on Fedora). You'll also need to install
# the Perl module IO::Pty::Easy.
#
# Unlike my first keylogger proof-of-concept, this one doesn't require root
# privileges because it just uses the X Window System. Therefore it only
# catches key inputs made to graphical programs on the same X server that the
@voyeg3r
voyeg3r / nvim_flash_cursorline.lua
Created November 6, 2021 23:40
Flash neovim cursorline (just for a second)
-- in your utils.lua
local M = {}
-- https://vi.stackexchange.com/questions/31206
M.flash_cursorline = function()
vim.opt.cursorline = true
vim.cmd([[hi CursorLine guifg=#000000 guibg=#ffffff]])
vim.fn.timer_start(200, function()
vim.cmd([[hi CursorLine guifg=NONE guibg=NONE]])
vim.opt.cursorline = false
@voyeg3r
voyeg3r / gist:322022
Created March 4, 2010 19:00 — forked from anonymous/gist:321909
Limpando o terminal no python
# source: http://stackoverflow.com/questions/517970/how-to-clear-python-interpreter-console
import os
def cls():
os.system(['clear','cls'][os.name == 'nt'])
# now, to clear the screen
cls()
" source: https://stackoverflow.com/a/24046914/2571881
let s:comment_map = {
\ "c": '\/\/',
\ "cpp": '\/\/',
\ "go": '\/\/',
\ "java": '\/\/',
\ "javascript": '\/\/',
\ "lua": '--',
\ "scala": '\/\/',
\ "php": '\/\/',
@voyeg3r
voyeg3r / mandatory-background.sh
Created November 17, 2011 11:09
set mandatory background to gnome3
#!/bin/bash
# set mandatory wallpaper gnome3
# script to change kd3 3.5 wallpaper https://gist.github.com/1621547
# http://www.marcusmoeller.ch/misc/using-dconf-magic-to-change-background-image.html
# http://askubuntu.com/questions/52120/how-to-change-wallpapers-of-all-clients
# http://blog.sriunplugged.com/shell-scripting/automatic-desktop-wallpaper-changer/
# download
# wget -c https://raw.github.com/gist/1372927/ -O ~/mandatory-wallpaper.sh && chmod +x $_
# In Ubuntu 11.10 (or any GNOME 3 system), you should be able to do this with:
@voyeg3r
voyeg3r / gist:1547918
Created January 1, 2012 17:58
The ultimate Arch Linux install script
#!/bin/bash
#-------------------------------------------------------------------------------
#Created by helmuthdu mailto: helmuthdu[at]gmail[dot]com
#Inspired by Andreas Freitag, aka nexxx script
#-------------------------------------------------------------------------------
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#