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
#!/bin/bash
#
# Converts LDIF data to CSV.
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them.
#
# 2010-03-07
# dsimmons@squiz.co.uk
#
# Show usage if we don't have the right params

Get a container IP using container ID

$ [sudo] docker inspect --format '{{ .NetworkSettings.IPAddress }}' CONTAINER_ID

Add this function to ~/.bashrc

[LINUX MINT 17.2] Hard restart cinnamon

killall cinnamon && \
export DISPLAY=:0.0 && \
cinnamon --replace

[LINUX MINT 17.2] Install Diodon

$ sudo add-apt-repository ppa:diodon-team/stable && \
> sudo apt-get update && \
> sudo apt-get install diodon

[LINUX MINT 17.2] Install exercism.io

$ wget -P /tmp/ \
> https://raw.githubusercontent.com/exercism/cli-www/master/public/install && \
> chmod +x /tmp/install && \
> sudo /tmp/install

[Linux Mint 17.2] Install KeepassX

$ sudo add-apt-repository ppa:eugenesan/ppa && \
> sudo apt-get update && \
> sudo apt-get install keepassx

Install Licence Command Line In Linux Mint 17.2

Download the binary and install it
$ [sudo] curl https://storage.googleapis.com/license-binaries/linux_amd64/license \
> -o /usr/local/bin/license

Make sure /usr/local/bin/license is in your $PATH

[Linux Mint 17.2] Install Numix Theme

$ sudo add-apt-repository ppa:numix/ppa && \
> sudo apt-get update && \
> sudo apt-get install numix-gtk-theme
@lee-pai-long
lee-pai-long / install-pep257-tool_atom.md
Last active March 2, 2017 14:56
PEP 257 = Docstring Conventions

[Atom] Install PEP257 plugin

$ sudo pip install pep257 && \
> apm install linter-pep257

[LINUX MINT 17.2] Install PIP bash completion

$ git clone git://github.com/ekalinin/pip-bash-completion.git && \
> sudo cp ./pip-bash-completion/pip /etc/bash_completion.d/ && \
> . /etc/bash_completion.d/pip