Skip to content

Instantly share code, notes, and snippets.

View mohamedaltaib's full-sized avatar
👋
Working from home

Mohamed Altaib mohamedaltaib

👋
Working from home
  • Libya
View GitHub Profile
@mohamedaltaib
mohamedaltaib / track_all_tables.py
Created October 15, 2020 23:40 — forked from coco98/track_all_tables.py
Track tables in python (Hasura)
import requests
#Fetch existing tables
tables = requests.post('http://localhost:8080/v1/query', json={
"type":"select",
"args":{
"table": {"schema": "information_schema", "name": "tables"},
"columns": ["table_name"],
"where": {"table_schema": {"$eq": "public"}}
}
@mohamedaltaib
mohamedaltaib / docker-php-ext-install.md
Created September 23, 2020 21:08 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ 
@mohamedaltaib
mohamedaltaib / clean-up-boot-partition-ubuntu.md
Created June 30, 2019 19:17 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@mohamedaltaib
mohamedaltaib / introrx.md
Created December 25, 2017 04:36 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@mohamedaltaib
mohamedaltaib / List.md
Created February 16, 2016 19:37 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):