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

[Vagrant] Troubleshooting : "No guest additions detected" Virtualbox error


vagrant plugin install vagrant-vbguest

source

[BASH] Quickly add alias


$ alias my_alias='my_command'
$ echo "!!" >> ~/.bash_aliases

!! refer to the last command typed in bash history

[VAGRANT] Passwordless sudo for the vagrant-hostmanager plugin


Create a file in the sudoers.d directory

$ [sudo] vim /etc/sudoers.d/vagrant-hostmanager

[LINUX MINT 17.2] Install Pandoc


$ wget https://github.com/jgm/pandoc/releases/download/1.16.0.2/pandoc-1.16.0.2-1-amd64.deb \
> -O /tmp/pandoc-1.16.0.2-1-amd64.deb && \
> sudo dpkg -i $_

[SALTSTACK] OpenLDAP standard state


State file

ldap:
  pkg:
 - installed
@lee-pai-long
lee-pai-long / 0_reuse_code.js
Created March 2, 2016 10:49
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lee-pai-long
lee-pai-long / deadsnakes.sh
Created March 15, 2016 14:03
Enable deadsnakes PPA, install Python 2.6, 2.7, 3.2 and 3.3, install easy_install and pip in to those versions
#!/usr/bin/env bash
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py -O /tmp/ez_setup.py
py_ver=`python -c 'import sys; print ".".join(str(x) for x in sys.version_info[:2])'`
for i in 2.6 2.7 3.2 3.3
do
if [ "$i" != "$py_ver" ]
#!/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.

[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|

[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