Home
Losers Wiki
Cancel

prepending-text

This prepends the beginning of each line with “//”: :%s!^!//! It follows then that this appends to the end of the line :%s!$!//!

postfix---delete-all-deferred-mail

Good for when google defer’s email due to loads of spam coming through postsuper -d ALL deferred

perl

pc

CD04136-7

passwordless-login

generate the keys on your local workstation: ssh-keygen -t rsa -b 4096 ensure you enter a password for your generated keys here then copy them across to the server via ssh-copy-id: ssh-copy...

owncloud

To rescan manually added files, use occ run as the web-server user; cd /usr/share/nginx/owncloud/ sudo -u www-data php occ files:scan --all

openvpn

Ruuning (actually configuring more like it) has always been a pain in the arse for me, so I’ve always used ready-rolled scripts in the past to configure OpenVPN for me. So, not changing anything in...

one-line-encrypt-decrypt-files

openssl enc -e -bf-cbc -in <FILE>.tar.gz -out <FILE>.tar.gz.enc openssl enc -d -bf-cbc -in <FILE>.tar.gz.enc -out <FILE>.tar.gz

nx-nomachine

Use FREENX on the server and install the client on your windows box. lot less farting about that way. caps lock reversed in NX focus on the NX window, hit CTRL + ALT + DEL then hit caps lock butt...

nmap

to see what hosts are on your network; nmap -sP 192.168.1.1/24 - shows ips & MAC via ping nmap -O 192.168.1.1/24 - show operating systems nmap -sS 192.168.1.1/24 - shows which ports are open