Skip to content

Instantly share code, notes, and snippets.

View lee-pai-long's full-sized avatar
💭
Work In Progress

Saïdina MOHAMED ALI lee-pai-long

💭
Work In Progress
  • Marseille (France)
View GitHub Profile

[LINUX MINT 17.2] Load PulseAudio Bluetooth module at startup

If it doesn't exist yet create a scripts directory in your HOME directory

$ mkdir -p ~/scripts

[MEMENTO] OpenSSL

Generate RSA key and protect it with an AES 256 encryption

$  openssl genrsa -aes256 -out ca.key -rand ./ 4096

[LINUX MINT 17.2] Install geany

$ [sudo] add-apt-repository ppa:geany-dev/ppa && \
> [sudo] apt-get update && \
> [sudo] apt-get install geany && \
> [sudo] apt-get install geany-plugins

[ZIMBRA] Prevent loop on notification messages

Connect as zimbra user

$ su - zimbra

Check value of parameter zimbraAutoSubmittedNullReturnPath

[MS OFFICE 2013] Reduce Visio files size

On the File menu, click Remove Hidden Information

  • Select the Remove preview picture check box
  • Select the Remove unused master shapes check box
  • Select the Remove unused themes, data graphics and styles check box

[LINUX MINT 17.2] Replace rm by trash-cli

Install trash-cli

$ [sudo] apt-get update && \
> [sudo] apt-get install trash-cli &&

[MySQL] Reset root password

Stop MySQL service

$ [sudo] service mysqld stop

Start MySQL in safe mode

[VIRTUALBOX] Resize vmdk

$ vboxmanage clonehd </path/to/disk.vmdk> <path/to/clone.vdi> --format vdi && \
> vboxmanage modifyhd /path/to/clone.vdi --resize XXXXXX && \
> vboxmanage clonehd /path/to/clone.vdi /path/to/disk.vmdk --format vmdk
  • XXXXX is the desired size in MB

[TELNET] POP3

Connection on the server

$ telnet <servername_or_ip> <port>

[TELNET] SMTP

Connect to the server

$ telnet <servername_or_ip> <port>

(Default port : 25)