Skip to content

Instantly share code, notes, and snippets.

View kenvontucky's full-sized avatar

João Gomes kenvontucky

View GitHub Profile
@kenvontucky
kenvontucky / .gitlab-ci.yml
Created September 24, 2018 21:10
Gitlab CI for Angular 6 project
image: node:latest
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
before_script:
- apt-get update && apt-get install -y unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
- npm install --silent
@kenvontucky
kenvontucky / python_version.sh
Created July 27, 2018 09:00
Check Python version
# Display Python 3 version
python3 --version
# Display Python 2 version
python --version
@kenvontucky
kenvontucky / pip_cheatsheet.sh
Created July 25, 2018 14:11
Pip cheatsheet
# install
easy_install pip
# updated it to the latest version
pip install -U pip
# search a package
pip search <package-name>
# install a package
@kenvontucky
kenvontucky / jupyter_setup.sh
Created July 25, 2018 13:46
Python Jupyter setup
# install jupyter python package
pip install jupyter
# run jupyter notebook
jupyter-notebook
@kenvontucky
kenvontucky / exclude content
Created July 25, 2018 09:35
Git pyhton environment git exclude
# append your environment folder name to the end of the file
python-virtual-env
@kenvontucky
kenvontucky / exclude
Created July 25, 2018 09:32
Git Exclude file
<PROJECT_FOLDER>/.git/info/exclude
source ~/.zshrc
source ~/.bashrc
@kenvontucky
kenvontucky / vscode_workspace_config
Last active July 25, 2018 09:25
Visual Studio Code Python workspace settings
{
"python.pythonPath": "./python-virtual-env/bin/python",
"python.autoComplete.extraPaths": [
"./python-virtual-env",
"./python-virtual-env/lib/python3.6/site-packages"
],
"python.linting.pylintArgs": [
"--load-plugins",
"pylint_django",
"--max-line-length=120"
cd () {
builtin cd $1;
if [ -d "python-virtual-env" ]; then
source python-virtual-env/bin/activate;
fi
}