x
Search Posts:

TXT BLOG: a pure txt weblog

Questo รจ un blog di puro testo dove gli utenti del sito possono condividere pubblicamente links, snippets di codice ed altre informazioni rigrosamente testuali.

Programmer's keynote/presentation best friends

Four tools to hold interactive, eye-catching keynotes or presentations:

1) git-slides >> https://github.com/gelisam/git-slides?source=c
Vim plugin: saves git history as slideshow (useful to run code step-by-step)

2) vimdeck >> https://github.com/tybenz/vimdeck
Vim presentation plugin: write slides in markdown, ascii-art titles & subtitles, syntax hilight. 

3) impress.js >> https://github.com/bartaz/impress.js
HTML5/CSS3 animated presentations framework for coders

4) Flowtime >> https://github.com/marcolago/flowtime.js
Another html/css presentation framework.

Debian live-build howto and examples [wheezy]

########################################################################################
#
# WARNING [RECOMMENDED]: 
# you can find more advanced and complete live-build scripts here: 
# https://github.com/subaddiction/freepto-lb
#
# A better lb-config script:
# https://github.com/subaddiction/freepto-lb/blob/master/freepto-config.sh
# 
# A better lb-build and persistence config script:
# https://github.com/subaddiction/freepto-lb/blob/master/config/includes.chroot/usr/bin/makefreepto
# 
# I _strongly_recommend_ to look into the freepto-lb repository
# and the debian live and freepto documentation:
# http://live.debian.net/manual/3.x/html/live-manual.en.html
# https://we.riseup.net/avana/freepto-docs
# 
#
########################################################################################

#!/bin/bash

# Clean the chroot
lb clean

# Configure live machine hostname, live user and locales
lb config --debian-installer live -b hdd --archive-areas "main contrib non-free" --bootappend-live "boot=live config locales=it_IT.UTF-8 keyboard-layouts=it username=user hostname=wheezy-custom user-fullname=user@wheezy-custom"

# Configure basic desktop packages
echo task-gnome-desktop > config/package-lists/desktop.list.chroot

# Configure repository packages
echo "vim byobu ssh-client gnupg seahorse remmina filezilla iceweasel xul-ext-firebug nautilus nautilus-open-terminal gedit gedit-plugins gnome-system-monitor gnome-disk-utility gparted python inkscape python-libxml2 python-numpy blender gimp gimp-gap gimp-plugin-registry autotrace imagemagick create-resources pidgin pidgin-otr ffmpeg vlc" > config/package-lists/custom.list.chroot

# Packages from additional repos
# debian-multimedia-keyring deb.torproject.org-keyring tor

# Configure the user
rm -rf config/includes.chroot/etc/skel
mkdir -p config/includes.chroot/etc/skel
cp -rT ./home/user/ config/includes.chroot/etc/skel/

# Clean & remake the custom /usr/bin
rm -rf config/includes.chroot/usr/bin
mkdir -p config/includes.chroot/usr/bin

# Make a custom /usr/local/bin
mkdir -p config/includes.chroot/usr/local/bin/

# Install firefox
rm -rf config/includes.chroot/usr/local/bin/firefox*
wget "ftp://ftp.mozilla.org/pub/firefox/releases/latest/linux-x86_64/it/firefox-27.0.tar.bz2" -O config/includes.chroot/usr/local/bin/firefox.tar.bz2
tar xjvf config/includes.chroot/usr/local/bin/firefox.tar.bz2 -C config/includes.chroot/usr/local/bin/
ln -s /usr/local/bin/firefox/firefox config/includes.chroot/usr/bin/firefox
rm -rf config/includes.chroot/usr/local/bin/firefox.tar.bz2

# Install thunderbird
rm -rf config/includes.chroot/usr/local/bin/thunderbird*
wget "ftp://ftp.mozilla.org/pub/thunderbird/releases/latest/linux-x86_64/it/thunderbird-24.2.0.tar.bz2" -O config/includes.chroot/usr/local/bin/thunderbird.tar.bz2
tar xjvf config/includes.chroot/usr/local/bin/thunderbird.tar.bz2 -C config/includes.chroot/usr/local/bin/
ln -s /usr/local/bin/thunderbird config/includes.chroot/usr/bin/thunderbird
rm -rf config/includes.chroot/usr/local/bin/thunderbird.tar.bz2

# Custom additional repositories
echo "#Additional repositories" > config/archives/custom.list.chroot

# Finally, build your debian system
lb build

TOP command line shortcuts 101

Order by memory usage: SHIFT+M
Order by cpu usage:    SHIFT+P
Scroll process list:   SHIFT+C
Colors on/off:         Z
Command line args:     C

bquery XMPP web UI

http://bquery.com/chat/ [ self-signed ssl: https://bquery.com/chat/ ]
http://bquery.com/webchat/ [ self-signed ssl: https://bquery.com/webchat/ ]

Software:
Candy [ http://candy-chat.github.io/candy/ ]
Prosody [ http://prosody.im/ ]

Screenshoot responsive con misure personalizzate, in background con phantomjs

/*
    Installare phantomjs http://phantomjs.org
    
    Salvare questo script come screenshots.js
    
    Da terminale:
    phantomjs screenshots.js http://bquery.com
    
    Script based on an example by Adnane Belmadiaf http://daker.me/2013/07/testing-your-responsive-design-with-phantomjs.html
    requires: phantomjs, async ( npm install async )
*/

var system = require('system'),
    address;

var async = require('async'),
    sizes = [
        [320, 480],
        [360, 480],
        [480, 320],
        [600, 1024],
        [800, 480],
        [1024, 768],
        [1280, 800],
    ];
/* Customize sizes with your favorites */

function capture(sizes, callback) {
    
    address = system.args[1];
    var page = require('webpage').create();
    page.viewportSize = {
        width: sizes[0],
        height: sizes[1]
    };
    page.zoomFactor = 1;
    page.open('http://'+address, function (status) {
        var filename = sizes[0] + 'x' + sizes[1] + '.png';
        page.render('./screenshots/' + filename);
        page.close();
        callback.apply();
    });
}

async.eachSeries(sizes, capture, function (e) {
    if (e) console.log(e);
    console.log('done!');
    phantom.exit();
});

Maildir migration from command line [linux]

# Scenario: migrating mail service from one server to another with different IPs
# during dns switch some mail arrived in an old server's mailbox
# If we are running a dns server, we must remove the example.com MX records
# If we are running example.com as postfix virtual domain, we must remove it from the virtual_mailbox_domains directive in main.cf
# If we are running plesk or cpanel or similar software we must deactivate mail service for the domain example.com through the control panel

# Move to unread mails folder
cd /path/to/mail@example.com/Maildir/new

# Send unread messages to the new server
for file in ./*; do sendmail mail@example.com < $file; sleep 2; done;

BAD iDEA - Grinta! EP - WOB 015

Larry Furante and Rick Fresco presentano il primo album su Wobble Records

Grintaaaaah!

http://wobblerecords.com/grinta-ep/

http://wobblerecords.com/rick-fresco/

http://wobblerecords.com/bad-idea/

http://www.beatport.com/release/grinta!-ep/1123859

https://soundcloud.com/wobblerecords/sets/bad-idea-grinta-ep-wob-015


Drums are playing. The rhythm is unstoppable. 

Mad monkeys starts pawing and screaming. Thunder and lightning in the sky over a burned jungle. Low frequencies are flooding the universe BAD iDEA.

The movement on the dance floor is our essence, like an earthquake that shakes the earth and leaves its mark.

Hold on tight because is coming the first album from the craziest controllerist from Italy : Larry Furante and Rick Fresco

The way they take care of details on every selection is doped, it's like the research of a chemical reaction that results in hype and sweat!

Stand up boy!!! Bring out your GRINTAAAAH!

Running Arduino IDE 1.5.2 on Debian Squeeze

1) apt-get install ant
2) clone or download https://github.com/arduino/Arduino/tree/1.5.2
5) adduser <yourusername> dialout #add your user to dialout group in order to access serial ports without running the IDE as root
3) extract archive, cd Arduino-1.5.2/build && ant run
Pages:
0 1 2 3 4 5 6 7 8 9 10 11 12