Showing posts with label arch linux. Show all posts
Showing posts with label arch linux. Show all posts

Tuesday, December 14, 2010

Pull the alt / title tag from xkcd picture from command line

How to pull the alt (actually the title tag), from xkcd with the command line

[root@queerlikerice ~]# curl xkcd.com | grep -E -oh 'title=".* alt=' | grep 'title' | grep -E -oh '".*?"'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8375 100 8375 0 0 137k 0 --:--:-- --:--:-- --:--:-- 538k
"And if you labeled your axes, I could tell you exactly how MUCH better."



Bash cli:
curl xkcd.com | grep -E -oh 'title=".* alt=' | grep 'title' | grep -E -oh '".*?"'

Monday, November 8, 2010

Mounting a blue ray iso on linux, to play in vlc

Recently downloaded a blu ray movie on my seed box, went to play it and I could mount it in ubuntu but the default setting still would not let me watch the movie in vlc. However after a quick google search I went here:
http://ubuntuforums.org/showthread.php?t=1209981

And sure enough the guys advice which was to mount with:
sudo mount -o loop -t udf pathtobluray.iso /media/cdrom

Worked perfectly. Once mounted navigate to the directory with vlc /dev/cdrom/BDVM/STREAM/*.m2ts

I put an asterisk because I am not certain the m2ts is the same name on every blu ray.

Saturday, April 3, 2010

Installing a bunch of crap on arch linux through a perl script.

Rewrote the script I made for setting up my music and dev stuff for fedora, in perl:

#!/usr/bin/perl
use strict;
use warnings;

my $pacman;

my @pacman_installs = qw(
xchat screen cpan
wget pcre-devel cmake
gtk+ pygame python-devel
cmake cmake-devel liblo
liblo-devel gcc-c++-devel cmake-gui
libsndfile libsndfile-devel qjackctl
zynaddsubfx vkeybd qtjack-devel
csound csound-devel portmidi
rosegarden4 jamin jack-audio-connection-kit-devel
ctapi-cyberjack-devel zynjacku ardour
nxt_python pybluez
);

&array_cracker();

sub array_cracker(){
foreach(@pacman_installs){
print $_;
$pacman = `pacman -Syq --noconfirm $_`;
print $pacman;
}
}