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] Install Sublime Text 3

$ sudo add-apt-repository ppa:webupd8team/sublime-text-3
$ sudo apt-get update
$ sudo apt-get install sublime-text-installer

[Debian] Install Python 3.4 on Debian 7 (Wheezy)

Install dependencies

$ [sudo] apt-get install \
> build-essential \
> libncurses5-dev \
> libncursesw5-dev \

[Asterisk 13.6] Install opensource g729 codec

Try to find what kind of CPU you have using those commands

$ cat /proc/cpuinfo | grep 'sse' -m1
$ [sudo] dmidecode -t 4
$ lscpu

[Linux Mint 17.2] Install MyCLI and grc

Install both grc and mycli

$ [sudo] apt-get install grc && \
> curl https://packagecloud.io/gpg.key | [sudo] apt-key add - && \
> [sudo] apt-get install -y apt-transport-https && \
> [sudo] sh -c \

[Linux Mint 17.2] Install latest Atom

If you have previously installed Atom from another source, backup your atom directory, then remove atom package

$ cp -R ~/.atom ~/.atom_bak
$ [sudo] apt-get remove atom

[Linux Mint 17.2] Install KVM

Install cpu-checker

$ [sudo] apt-get install cpu-checker

determine if this system is capable of running hardware accelerated KVM virtual machines (ie, possesses Virtualization Technology)

[LINUX MINT 17.2] Install hstr

HSTR is a shell history suggest box that aim to replace and/or improve the builtin linux reverse-i-search shell feature.

Intallation

$ [sudo] add-apt-repository ppa:ultradvorka/ppa && \
> [sudo] apt-get update && \

[Linux Mint 17.2] Install Go Fot It!

$ [sudo] add-apt-repository -yqq ppa:mank319/go-for-it && \
> [sudo] apt-get update -qq && \
> [sudo] apt-get install -yqq go-for-it

[VAGRANT] don't share working directory

When working with multiple VM vagrant project, it may be useful to not share the working directory but a subdirectory for each machine, to prevent vagrant from sharing the top project working directory add the following to the Vagrantfile :

Vagrant.configure('2') do |config|
#!/bin/bash
# Set path variables
DIR=`pwd`
SYS_PACKAGES=/usr/local/lib/python2.7/dist-packages
VENV_PACKAGES=$DIR/Venv-Linux/lib/python2.7/site-packages
# Install all kivy dependencies via Apt.