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/env perl | |
use strict; | |
use warnings qw(all); | |
use Data::Dumper; | |
use IPC::Run qw(start pump); | |
use JSON::XS; | |
use Net::GPSD3; | |
my $gpsd_host = '127.0.0.1'; |
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/env perl | |
use 5.010; | |
use strict; | |
use warnings; | |
my $schema; | |
my $table; | |
while (my $line = <>) { | |
my @csv = (); | |
if ($line =~ m{^ CREATE \s+ TABLE \s+ `(?<table> \w+)`}ox) { |
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
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
perl '-F/\s*,\s*/' -lane 'BEGIN{$,="\t"};chomp;print @F[0,2] if $_ && !m%^/%' /home/stas/oracle/product/10.2.0/db_1/rdbms/mesg/oraus.msg |
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(unpack"B*",pack("h*",$_)) |
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
AuthUserFile /etc/apache2/htpasswd | |
AuthGroupFile /dev/null | |
AuthName "Senha" | |
AuthType Basic | |
require valid-user | |
order deny,allow |
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
rtmpdump --host 187.45.227.58 --app oflaDemo --playpath ci101c2fa90a4ac9a8123b8d26bf0ebd0e10.mp3 -o ci101c2fa90a4ac9a8123b8d26bf0ebd0e10.mp3 | |
ffmpeg -i ci101c2fa90a4ac9a8123b8d26bf0ebd0e10.flv -f mp3 -vn -acodec copy ci101c2fa90a4ac9a8123b8d26bf0ebd0e10.mp3 |
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} |