Skip to content

Instantly share code, notes, and snippets.

View shibli049's full-sized avatar

Tahmim Ahmed Shibli shibli049

View GitHub Profile
@shibli049
shibli049 / mysqldb_python3.sh
Last active April 23, 2023 05:48
Install mysqlclient for python3
#sudo pip3 install mysqlclient fails with mysql_config not found
sudo apt-get install libmysqlclient-dev
#without pip3 it will not going to work for python3
sudo pip3 install mysqlclient
# to run django migration
python3 manage.py migrate
diff --brief --recursive --new-file ./first_dir/ /location/to/second_dir | grep -v '/.git/' # ignore .git directory
version: '2.2'
services:
limited-logging-container:
image: alpine:latest
logging:
options:
max-size: "200k"
max-file: "10"
# Remove the volumes associated with the container
docker rm -v $(docker ps -aq)
# Remove images
docker rmi $(docker images -aq)
# Remove all unused local volumes
docker volume prune
# Remove all dangling volumes
@shibli049
shibli049 / data.json
Last active November 11, 2019 17:22 — forked from planetoftheweb/data.json
[
{
"name":"Barot Bellingham",
"shortname":"Barot_Bellingham",
"reknown":"Royal Academy of Painting and Sculpture",
"bio":"Barot has just finished his final year at The Royal Academy of Painting and Sculpture, where he excelled in glass etching paintings and portraiture. Hailed as one of the most diverse artists of his generation, Barot is equally as skilled with watercolors as he is with oils, and is just as well-balanced in different subject areas. Barot's collection entitled \"The Un-Collection\" will adorn the walls of Gilbert Hall, depicting his range of skills and sensibilities - all of them, uniquely Barot, yet undeniably different"
},
{
"name":"Jonathan G. Ferrar II",
"shortname":"Jonathan_Ferrar",
@shibli049
shibli049 / System Design.md
Created July 9, 2019 13:29 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
netsh wlan show profiles
netsh wlan show profile name=profilename key=clear
@Test
@DisplayName("Time assertions")
@RepeatedTest(10)
public void timeAssertion(){
assertTimeout(Duration.ofSeconds(1), () -> {
Thread.sleep(100);
System.out.println("hello world!!");
});
}