Skip to content

Instantly share code, notes, and snippets.

@Khouli00
Khouli00 / Pipfile
Created October 31, 2018 09:12
Pïpenv starter template
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
[dev-packages]
flake8 = "*"
isort = "*"
@Khouli00
Khouli00 / awesome-stats.md
Created October 22, 2018 07:20
awesome statistics website / resources
@Khouli00
Khouli00 / install.sh
Last active September 24, 2020 06:17
Install lastest docker version on Linux mint
#check debian version
cat /etc/debian_version
wget https://download.docker.com/linux/debian/dists/stretch/pool/stable/amd64/docker-ce_18.03.1~ce-0~debian_amd64.deb
sudo dpkg -i docker-ce_18.03.1~ce-0~debian_amd64.deb
#or follow
#https://docs.docker.com/install/linux/docker-ce/debian/
#and change version with result of cat /etc/debian_version
#alternative
curl https://get.docker.com | sudo bash
@Khouli00
Khouli00 / vim-8-on-ARMv7.sh
Last active May 2, 2018 08:06 — forked from lwickline/gist:8c061def750833c544034a66199dc23f
Install vim 8 on a Raspberry Pi 3
Modified from the gist @https://gist.github.com/odiumediae/3b22d09b62e9acb7788baf6fdbb77cf8
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
@Khouli00
Khouli00 / get_tweet.py
Created April 2, 2018 18:09
get tweeter msg
#!/usr/bin/env python
# encoding: utf-8
#courtesy : https://stackoverflow.com/a/37862197/5538961
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
@Khouli00
Khouli00 / install_vim8.sh
Created March 24, 2018 14:28
Install vim8
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
@Khouli00
Khouli00 / youcompleteme.sh
Created March 24, 2018 14:05
Youcomplete me post-install
sudo apt-get install build-essential cmake
sudo apt-get install python-dev python3-dev
cd ~/.vim/bundle/YouCompleteMe
./install.py
@Khouli00
Khouli00 / airflow.md
Last active November 23, 2018 12:54
airflow testing init set-up
@Khouli00
Khouli00 / awesome-python-lib.md
Last active May 3, 2020 18:53
Awesome python lib