This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 !' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" source: https://stackoverflow.com/a/24046914/2571881 | |
let s:comment_map = { | |
\ "c": '\/\/', | |
\ "cpp": '\/\/', | |
\ "go": '\/\/', | |
\ "java": '\/\/', | |
\ "javascript": '\/\/', | |
\ "lua": '--', | |
\ "scala": '\/\/', | |
\ "php": '\/\/', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# |
NewerOlder