Skip to content

Instantly share code, notes, and snippets.

View Ozahata's full-sized avatar

Fabiano Tsuneo Maurer Ozahata Ozahata

View GitHub Profile
@Ozahata
Ozahata / gist:795e25369fd311f1ad3de2a931178bfb
Last active April 23, 2020 14:24
(Mac) ImportError: pycurl: libcurl link-time ssl backend (none/other) is different from compile-time ssl backend (openssl)
brew install curl --with-openssl
echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.bash_profile
# To not close the bash and open again
export PATH="/usr/local/opt/curl/bin:$PATH"
#!/bin/sh
### BEGIN INIT INFO
# Source: http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment
# NOTE: Change the dropbox path in line: 32
# Provides: dropbox update daemon
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
@Ozahata
Ozahata / docker_wsl.sh
Last active July 7, 2018 13:49
Windows 10 WSL Bash (docker)
# Install docker/docker-compose
## Source 1: https://medium.com/@praaveen/part-2-docker-ce-and-docker-compose-installation-with-ubuntu-ef7b16bd3531
## Source 2: https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly
## docker
lsb_release -a
export DOCKER_COMPOSE_VERSION=1.21.2
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
@Ozahata
Ozahata / pipenv_install.sh
Last active August 1, 2018 07:32
WSL, ubuntu, pyenv, pipenv install --python 2 and 3
# Normal error: /.pyenv/plugins/python-build/bin/python-build: line XXX: make: command not found
sudo apt-get install build-essential openssl libssl-dev
# Python 3.7
sudo apt-get install build-essential python-dev python-setuptools python-pip python-smbus
sudo apt-get install libncursesw5-dev libgdbm-dev libc6-dev
sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
sudo apt-get install libssl-dev openssl
sudo apt-get install libffi-dev