Daily Weekly Monthly

Monthly Shaarli

All links of one month in a single page.

April, 2018

[UNIX] Trouver les ip de votre réseau ?

Avec nmap c'est tout simple :

-sP pour ne faire "que" un ping.

nmap -sP 192.168.0.0/24

Starting Nmap 7.40 ( https://nmap.org ) at 2018-04-19 14:09 CEST
Nmap scan report for 192.168.0.20
Host is up (0.00015s latency).
Nmap scan report for 192.168.0.40
Host is up (0.00079s latency).
Nmap scan report for 192.168.0.41
Host is up (0.00077s latency).
Nmap scan report for 192.168.0.47
Host is up (0.00071s latency).
Nmap scan report for 192.168.0.50
Host is up (0.00075s latency).
Nmap scan report for 192.168.0.254
Host is up (0.0013s latency).
Nmap done: 256 IP addresses (6 hosts up) scanned in 8.61 seconds

Downloads

Build process
To build rspamd we recommend to create a separate build directory:

$ mkdir rspamd.build
$ cd rspamd.build
$ cmake ../rspamd
$ make

make install

Alternatively, you can create a distribution package and use it for build your own packages. Here is an example for debian GNU Linux OS:

$ mkdir rspamd.build
$ cd rspamd.build
$ cmake ../rspamd
$ make dist
$ tar xvf rspamd-.tar.xz
$ cd rspamd-
$ debuild

Développeurs, défendez vos méthodes de travail sans conflits grâce à la Communication Non-Violente ! | OCTO Talks !

Via... mon chef...

la communication non violente

comment partager sans se friter...

Bash Shortcuts For Maximum Productivity

Liste des raccourcis Bash

Command Editing Shortcuts

Ctrl + a – go to the start of the command line
Ctrl + e – go to the end of the command line
Ctrl + k – delete from cursor to the end of the command line
Ctrl + u – delete from cursor to the start of the command line
Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
Ctrl + xx – move between start of command line and current cursor position (and back again)
Alt + b – move backward one word (or go to start of word the cursor is currently on)
Alt + f – move forward one word (or go to end of word the cursor is currently on)
Alt + d – delete to end of word starting at cursor (whole word if cursor is at the beginning of word)
Alt + c – capitalize to end of word starting at cursor (whole word if cursor is at the beginning of word)
Alt + u – make uppercase from cursor to end of word
Alt + l – make lowercase from cursor to end of word
Alt + t – swap current word with previous
Ctrl + f – move forward one character
Ctrl + b – move backward one character
Ctrl + d – delete character under the cursor
Ctrl + h – delete character before the cursor
Ctrl + t – swap character under cursor with the previous one

Command Recall Shortcuts

Ctrl + r – search the history backwards
Ctrl + g – escape from history searching mode
Ctrl + p – previous command in history (i.e. walk back through the command history)
Ctrl + n – next command in history (i.e. walk forward through the command history)
Alt + . – use the last word of the previous command

Command Control Shortcuts

Ctrl + l – clear the screen
Ctrl + s – stops the output to the screen (for long running verbose command)
Ctrl + q – allow output to the screen (if previously stopped using command above)
Ctrl + c – terminate the command
Ctrl + z – suspend/stop the command

Bash Bang (!) Commands

Bash also has some handy features that use the ! (bang) to allow you to do some funky stuff with bash commands.

!! – run last command
!blah – run the most recent command that starts with ‘blah’ (e.g. !ls)
!blah:p – print out the command that !blah would run (also adds it as the latest command in the command history)
!$ – the last word of the previous command (same as Alt + .)
!$:p – print out the word that !$ would substitute
!* – the previous command except for the last word (e.g. if you type ‘find some_file.txt /‘, then !* would give you ‘find some_file.txt‘)
!*:p – print out what !* would substitute

via https://mamot.fr/@emmanuelc

Hacker un Raspberry Pi pour lire du MPEG2 et du VC1 matériellement | Le journal du lapin

Via Shaarli

cd /boot
cp start.elf start.elf_backup && \
perl -pne 's/\x47\xE9362H\x3C\x18/\x47\xE9362H\x3C\x1F/g' < start.elf_backup > start.elf

Merci ;)

node.js - How/why does npm recommend not running as root? - Stack Overflow

The simple answer is web servers should never be run as root for well known security reasons, so this goes for npm commands as well.

To start fresh, remove prior Node.js and npm installs as well as these files/directories:

mv ~/.npmrc ~/.npmrc~prior
mv ~/.npm ~/.npm~prior
mv ~/tmp ~/tmp.~prior
mv ~/.npm-init.js ~/.npm-init.js~prior

Solution: Install Node.js (which comes with npm) as NON root (no sudo)

Download Source Code directly from https://nodejs.org/en/download/

Execute the below as yourself (Linux/OS X)

cd node-v8.1.2 # into expanded source dir

export NODE_PARENT=${HOME}/node-v8.1.2 # put this into your ~/.bashrc

Feel free to change above export to whatever location is appropriate

./configure --prefix=${NODE_PARENT}
make -j4 # for dual core ... use -j8 for quad core CPU
make install

which puts the binaries for Node.js and npm as well as its modules repository into $NODE_PARENT, a $USER owned dir which then allows you to issue subsequent npm install xxx commands as yourself.

To reach the binaries for node and npm alter your PATH environment variables in your ~/.bashrc:

export PATH=${NODE_PARENT}/bin:${PATH}
export NODE_PATH=${NODE_PARENT}/lib/node_modules

Then to install packages into that directory (global), as opposed to the current directory (local) always pass in the -g flag (global):

npm install -g someModule

NOTE - at no time are you executing anything npm or node related as root / sudo.

Lave vaisselle Hotpoint erreur a-5

Problème de détection de niveau d'eau. L'appareil se remplit, mais le niveau n'est pas détecté. Vérifier chambre de compression et pressostat. Pour identifier les pièces, vous l'écrivez sur la barre d'adresse (pressostat lave vaisselle) (Chambre de compression lave vaisselle).

c'est A5 mais faut il changer le pressostat ?

Non, vous soufflez dedans, pour cela vous devez retiré le petit tuyau placé dessus, vous soufflez dans le pressostat vous devez entendre un clic, dans ce cas il est correct, ensuite vous soufflez dans le petit tuyau, il peut être obstrué, percé ou fissuré, vous le suivez il dressent directement dans la chambre de compression, le nettoyer au besoin

Joplin, votre prise de notes en open source - TOOLinux

Alternative libre à onenote synchronisable avec NextCloud...

a tester

EmpowerLaptop - le fournisseur de la carte mère d'ordinateur portable le plus grand

Pour ceux qui cherche une carte mère pour un modèle d'ordinateur en particulier

  • bureau
  • portable
  • serveur

des grandes marques : acer, hp, dell, etc...