Skip to content

Instantly share code, notes, and snippets.

View enricostano's full-sized avatar

Enrico Stano enricostano

View GitHub Profile
λ sudo strings root/var/log/journal/321b13bd037b4883b3d2208a2f376f0e/system.journal | grep -i eth0
MESSAGE=smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
MESSAGE=IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
MESSAGE=smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
MESSAGE=IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
INTERFACE=eth0
MESSAGE=eth0 : gained carrier
MESSAGE=eth0 : lost carrier
MESSAGE=smsc95xx 1-1.1:1.0 eth0: link down
MESSAGE=smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:23:b2:23
dic 10 23:16:51 alarmpi systemd[1]: Started Network Service.
dic 10 23:16:51 alarmpi kernel: smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
dic 10 23:16:51 alarmpi kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
dic 10 23:16:51 alarmpi systemd-logind[136]: New seat seat0.
dic 10 23:16:51 alarmpi systemd[1]: Started Login Service.
dic 10 23:16:51 alarmpi systemd[1]: Starting Network.
dic 10 23:16:51 alarmpi systemd[1]: Reached target Network.
dic 10 23:16:51 alarmpi systemd[1]: Starting OpenSSH Daemon...
dic 10 23:16:51 alarmpi systemd[1]: Started OpenSSH Daemon.
dic 10 23:16:51 alarmpi systemd[1]: Starting Network Name Resolution...
@enricostano
enricostano / eth0.network
Created April 3, 2015 13:58
/etc/systemd/network/eth0.network
[Match]
Name=eth0
[Network]
DHCP=v4
@enricostano
enricostano / dhcpcd.conf
Created April 3, 2015 14:01
/etc/dhcpcd.conf
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
abr 20 17:03:26 archlap systemd[1]: Started Locale Service.
abr 20 17:04:57 archlap gnome-session[2152]: WARNING: Application 'i3-gnome.desktop' failed to register before timeout
abr 20 17:04:57 archlap gnome-session[2152]: Unrecoverable failure in required component i3-gnome.desktop
abr 20 17:04:57 archlap gnome-session[2152]: gnome-session[2152]: WARNING: Application 'i3-gnome.desktop' failed to register before timeout
abr 20 17:04:57 archlap gnome-session[2152]: Entering running state
abr 20 17:04:57 archlap gnome-session[2152]: Failed to play sound: File or data not found
abr 20 17:05:09 archlap gnome-session[2152]: gnome-session[2152]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
abr 20 17:05:09 archlap gnome-session[2152]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
abr 20 17:05:09 archlap gnome-session[2152]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
abr 20 17:05:09 archlap gnome-session[2152]: gno
extern crate ncurses;
use std::fs::{self, ReadDir};
use std::path::Path;
use std::char;
use ncurses::*;
fn print_entries(dir: std::fs::ReadDir) {
for entry in dir {
match entry {
# /etc/systemd/network/br0.netdev
[NetDev]
Name=br0
Kind=bridge
<?php
namespace StanoSas\Bundle\TaxonomyBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use StanoSas\Bundle\TaxonomyBundle\Entity\Term;
use StanoSas\Bundle\TaxonomyBundle\Form\TermType;
class TermController extends Controller
{
@enricostano
enricostano / Term.php
Created May 26, 2012 23:38
Term Class
<?php
namespace StanoSas\Bundle\TaxonomyBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* StanoSas\Bundle\TaxonomyBundle\Entity\Term
<?php
namespace StanoSas\Bundle\TaxonomyBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* StanoSas\Bundle\TaxonomyBundle\Entity\Term