Skip to content

Instantly share code, notes, and snippets.

View MossabDiae's full-sized avatar
🔬
Learning

Mossab Diae MossabDiae

🔬
Learning
View GitHub Profile
@MossabDiae
MossabDiae / colab_import_from_github.md
Last active July 20, 2021 07:23
Load data automatically to google colab notebook from github

The benfits:

  1. less loading time (google download speed is better than your upload speed)
  2. one click data loading
  3. making data online you can work from other machines.
  4. we'll be using private github repository so data is private.

2- compress your data as zip , make a private github repository and upload it

@MossabDiae
MossabDiae / anislayer.py
Created October 30, 2021 14:02
Extract direct urls from anime4up
#!/usr/bin/env python
import requests
from bs4 import BeautifulSoup
import click
def get_page(url):
"""
take url get the webgape , store it's html , return that
"""
@MossabDiae
MossabDiae / download_all_lambda_functions.sh
Last active January 24, 2023 13:25 — forked from nemani/download_all_lambda_functions.sh
Download All Lambda Functions
#!/usr/bin/env sh
# dependencies: jq (sudo apt install jq)
# disabled parallel downloading to keep local network / aws happy.
download_code () {
# clean double quotes if found
local OUTPUT=${1//\"/}
local dest=./lambda_functions/$OUTPUT.zip
local URL=$(aws lambda get-function --function-name $OUTPUT --query 'Code.Location')