Fedintegrazie

Ho appicciato il coso per seguire il blog da cose che usano activitypub (vedi mastodon &Co). Link a lato.

Silence that switch

Silence that switch

Some time ago I found a somewhat old Netgear Switch. 24 ports 10/100/1000 Managed Double SFP! Well, the first port is broken :) And it’s too loud! In our lab we have already a file server and an UPS, powered 24/7. This is the fan that make so much noise: We need a solution to […]

Fooling rbash

$ echo $SHELL /bin/rbash $ /bin/ls /bin/bash: line 2: /bin/ls: restricted: cannot specify `/’ in command names $ awk ‘BEGIN{system(“/bin/bash”)}’ $ /bin/ls foo bar misc $ uname -rm 2.6.18-308.16.1.el5 i686 $ bash –version GNU bash, version 3.2.25(1)-release (i386-redhat-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc. $ awk –version GNU Awk 3.1.5 Copyright (C) 1989, 1991-2005 […]

Emberjs on Debian

First, install nodejs and npm from repository. Then: sudo update-alternatives –install /usr/bin/node nodejs /usr/bin/nodejs 100 mkdir -p ~/.new-dir npm config set prefix /path/to/.new-dir npm install -g ember-cli PATH=”$PATH:/path/to/.new-dir/bin” Export PATH variable in your bashrc to avoid retyping. Test with: ember -v

Best feature ever

Best feature ever

Best feature ever? Double dictionary check! Now guess the program.

Stop piping like a Hippo

Oooooh: $ cat list | grep some | awk ‘{print $1}’ Oh my god, 3 processes, we’re all gonna get a SIGKILL! Then: grep ‘some’ list | awk ‘{print $1}’ What? Not yet.. awk ‘/some/{print $1}’ list \é/ And I count my lines with: grep -c ‘some’ list instead of wced-greped-cated

A deeper `ls -l’

How nice: $ alias dls=’tree -phugsCD –du’ Add ‘-f’ for more fun! (Other useful options: ‘-a’, ‘-x’, ‘-L <level>’, ‘- -sort=size’)

La vignetta senza confini

La vignetta senza confini

La vignetta[1] è assurda e troooppo grande per girarla tutta… Forse l’artista pensava fosse cosa divertente! A me non piace quando mi nascondono le cose. Così mi son messo e ho cercato di capire come funzionava il tutto. Possibile ci sia un’immagine di fantastilioni di px tutta intera? Come funziona il motorino per farmene vedere […]