Skip to content

Instantly share code, notes, and snippets.

View hamzakat's full-sized avatar
⌨️
🚀

Hamza hamzakat

⌨️
🚀
View GitHub Profile
@hamzakat
hamzakat / txt_to_json_and_post.py
Created January 8, 2022 05:29
Convert txt files to JSON, then POST all the JSONs
#! /usr/bin/env python3
import os
import requests as req
import json
data_dir = "/data/feedback"
feedbacks = []
for file in os.listdir(data_dir):
file_path = os.path.join(data_dir, file)
if os.path.isfile(file_path):
@hamzakat
hamzakat / tiff_to_jpg.py
Last active January 8, 2022 05:26
Python3 script for converting TIFF images to JPEG
#!/usr/bin/python3
# Python3 script for converting TIFF images to JPEG
from PIL import Image
import os
imgs_dir = "images"
files = os.listdir(imgs_dir)
@hamzakat
hamzakat / pomodoro.sh
Created July 20, 2021 04:30 — forked from AnderRasoVazquez/pomodoro.sh
[A simple pomodoro script for Bash shell] #shell #bash
#!/bin/bash
## pomodoro script by Ander Raso Vázquez anderraso@gmail.com
############## DOCUMENTATION ###################
## After a pomodoro of 25 min -> 5 min break
## After 4 pomodoros done -> 15 min break
##
## USAGE
## [command] [number of pomodoros]
## example: