Esse artigo é dedicado aos 20 anos da WWW :)
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
setw -g xterm-keys on | |
setw -g mode-mouse on | |
setw -g mode-keys vi | |
set -g mouse-select-pane on | |
set -g set-titles on | |
set -g history-limit 10000 | |
set -g prefix C-a | |
bind-key C-a last-window |
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
! foreground/background | |
URxvt.background: #161616 | |
URxvt.foreground: #B2B2B2 | |
! black | |
URxvt.color0 : #000000 | |
URxvt.color8 : #686868 | |
! red | |
URxvt.color1 : #B21818 | |
URxvt.color9 : #FF5454 | |
! green |
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 | |
sudo hidd --connect C4:2C:03:99:6D:53 | |
sleep 1 | |
sudo bash -c 'echo Y > /sys/module/hid_magicmouse/parameters/scroll_acceleration' | |
sudo bash -c 'echo 40 > /sys/module/hid_magicmouse/parameters/scroll_speed' | |
ID=`xinput list --short | grep -i 'mouse' | cut -f2 | cut -c4-` | |
#xinput list-props $ID | |
xinput --set-prop $ID "Device Accel Adaptive Deceleration" 2.0 |
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 | |
# Ref: Calculating CPU Usage from /proc/stat | |
# (http://colby.id.au/node/39) | |
use strict; | |
use warnings 'all'; | |
use utf8; | |
use List::Util qw(sum); |
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
print (('F' x 1000) . ('U' x 900) . ('!' x 20) . "\n"); |
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
($x,$y)=(1,1<<32);for(0..30){$_=unpack'B32',pack'N',($x<<=1)|($y>>=1);tr%01% J%;s%\s*$%\n%;print} |
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
echo -ne "AUTHENTICATE\r\nsignal NEWNYM\r\nquit\r\n"|nc localhost 9051 |
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 | |
AGENT="Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12" | |
RANDOMORG="http://www.random.org/integers/?num=10000&min=0&max=65535&col=2&base=16&format=plain&rnd=new" | |
SESSION=`date +%Y%m%d%H%M%S` | |
for i in {1..100} | |
do | |
echo "#${i}" | |
echo -ne "AUTHENTICATE\r\nsignal NEWNYM\r\nquit\r\n" | nc localhost 9051 > /dev/null |
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 | |
# | |
# red5 red5 initscript | |
# | |
# Author: Simon Eisenmann . | |
# | |
set -e | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
DESC="Red5 flash streaming server" |
OlderNewer