Skip to content

Instantly share code, notes, and snippets.

View ehbc221's full-sized avatar
🏠
Working from home

El Hadj Babacar Cissé ehbc221

🏠
Working from home
  • Sonatel SA
  • Dakar, Sénégal
  • X @ehbc221
View GitHub Profile
@ehbc221
ehbc221 / Python 3 Virtualenv
Last active October 20, 2023 02:24
Install Python 3 and create a virtual environment for projects
# Install Python 3
$ sudo apt-get install python3
# Install python3-virtualenv
$ sudo apt-get install python3-virtualenv
# You can checkout you virtualenv version
$ virtualenv --version
# Create you virtualenv in the folder you that want to
@ehbc221
ehbc221 / webdev_online_resources.md
Created September 23, 2018 03:44 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@ehbc221
ehbc221 / django-postgres
Created December 1, 2018 21:46
Configuration to use for Postgres SQL in Django projects
1) Our first step will be install all of the pieces that we need from the repositories.
We will install pip, the Python package manager, in order to install and manage our Python components.
We will also install the database software and the associated libraries required to interact with them.
sudo apt-get update
sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib
2) Log into an interactive Postgres session by typing:
sudo -u postgres psql
3) First, we will create a database for our Django project.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
@ehbc221
ehbc221 / docker-help.md
Created July 10, 2019 20:53 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

package com.example.network
import android.util.Log
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import com.example.utils.ErrorUtils
/**
* Extension for awaitResponse
@ehbc221
ehbc221 / IntelIJTrialReset.bat
Created May 15, 2021 18:36
Reset Jetbrains Tools trials
:: Intellij IDEA
cd "C:%HOMEPATH%\AppData\Roaming\JetBrains\IntelliJIdea20*"
rmdir "eval" /s /q
del "options\other.xml"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f
:: PhpStorm
cd "C:%HOMEPATH%\AppData\Roaming\JetBrains\PhpStorm20*"
rmdir "eval" /s /q
del "options\other.xml"
@ehbc221
ehbc221 / jhipster-json-to-dot-notation.py
Last active June 23, 2022 09:22
Json to Dot Notation for Jhipster translations
import getopt
import json
import os
import sys
import pyperclip
def get_input_string_from_clipboard():
input_string = json.loads(pyperclip.paste())
@ehbc221
ehbc221 / switch-docker-daemon.sh
Created May 24, 2021 19:04
Switch Docker Daemon
cd C:\Program Files\Docker\Docker
DockerCli.exe -SwitchDaemon