Skip to content

Instantly share code, notes, and snippets.

View banjtheman's full-sized avatar

Banjo Obayomi banjtheman

View GitHub Profile
@banjtheman
banjtheman / clean_docker.sh
Created May 10, 2022 21:43
Clean docker images
docker rm $(docker ps -qa --no-trunc --filter "status=exited")
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
@banjtheman
banjtheman / save_json.py
Created April 1, 2021 02:30
save a json data to a file
import json
from typing import Any
def save_json(json_path: str, json_data: Any) -> None:
"""
Purpose:
Save json files
Args:
path_to_json (String): Path to json file
json_data: Data to save
@banjtheman
banjtheman / install_docker.sh
Created April 11, 2020 21:37
Install latest docker
#!/bin/bash
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce