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

[MySQL] Reset root password

Stop MySQL service

$ [sudo] service mysqld stop

Start MySQL in safe mode

[LINUX MINT 17.2] Replace rm by trash-cli

Install trash-cli

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

[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

[ZIMBRA] Prevent loop on notification messages

Connect as zimbra user

$ su - zimbra

Check value of parameter zimbraAutoSubmittedNullReturnPath

[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

[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] Load PulseAudio Bluetooth module at startup

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

$ mkdir -p ~/scripts

[SQLSERVER] List all tables in database

Connect to server

> osql -S SERVER/INSTANCE -E

(-E allow to connect without password)

[LINUX MINT 17.2] Install virtualbox 5

$ [sudo] sh -c \
> 'echo "deb http://download.virtualbox.org/virtualbox/debian vivid contrib" \
> >> /etc/apt/sources.list.d/virtualbox.list' | \
> [sudo] apt-key add - && \
> [sudo] apt-get update && \
> [sudo] apt-get install virtualbox-5.0

[LINUX MINT 17.2] Install unity3d 5 experimental

$ cd ~/Downloads/ && \
> wget http://download.unity3d.com/download_unity/unity-editor-5.1.0f3+2015082501_amd64.deb && \
> [sudo] apt-get update && \
> [sudo] dpkg -i ./unity-*.deb && \
> [sudo] apt-get -f install