Part of a future project !
Category Archives: #*nix
Automata
Automata theory is the study of abstract machines and automata, as well as the computational problems that can be solved using them. It is a theory in theoretical computer science and discrete mathematics (a subject of study in both mathematics and computer science). The word automata (the plural of automaton) comes from the Greek word αὐτόματα, which means “self-acting”.
Heart Beat shell script
I use this script to get alerts from some systems to insure they are still up. It gives me local IP address, hostname and the WAN IP for the network.
#!/bin/sh
IP=”$(ip addr | grep ‘state UP’ -A2 | tail -n1 | awk ‘{print $2}’ | cut -f1 -d’/’)”
IP2=”$(curl ifconfig.co)”
HST=”$(hostname)”
CN=”$(curl ifconfig.co/country)”
CT=”$(curl ifconfig.co/city)”
HST=”$(hostname)”
echo $IP2 > /tmp/$HST
echo $IP >> /tmp/$HST
echo $CN >> /tmp/$HST
echo $CT >> /tmp/$HST
/usr/bin/sendemail -t info\@mydomain.org -f hb\@mydomain.org -u “HB from $HST” -s smtp.server -o message-file=/tmp/$HST;
90 hacker friendly boards
Our New Year’s guide to hacker-friendly single board computers turned up 90 boards, ranging from powerful media playing rigs to power-sipping IoT platforms.
Community backed, open spec single board computers running Linux and Android sit at the intersection between the commercial embedded market and the open source maker community. Hacker boards also play a key role in developing the Internet of Things devices that will increasingly dominate our technology economy in the coming years, from home automation devices to industrial equipment to drones.
The Black Magic Of SSH / SSH Can Do That?
Interesting
The Black Magic Of SSH / SSH Can Do That? from Bo Jeanes on Vimeo.
Life is better with Open Source
In my humble opinion ….
I am building the world…
…that I want live in. Not waiting for the future…
Code snippits : perl date stamp for adding to file
#!/usr/local/bin/perl
my @lt = localtime(time);
my $dte = sprintf “%04d%02d%02d%02d%02d%02d”, $lt[+5]+1900, $lt[4]+1, @lt[3,2,1,0];
my $path=”/var/logs”;
$file=”$path/file-$dte”;
print “$file \n”;
Real-time Identification of live video
This reminds me of Raconteur from Daniel Suarez’s book “Kill Decision”. The future is here !
NeuralTalk and Walk from Kyle McDonald on Vimeo.
Need to see which daemons are listening for connection requests on a *nix machine
Need to see which daemons are listening for connection requests on a *nix machine ?
“sockstat -4l” for IPv4, and “sockstat -l” for IPv4 and IPv6.