Skip to content

Instantly share code, notes, and snippets.

View tilayealemu's full-sized avatar

Tilaye Yismaw Alemu tilayealemu

View GitHub Profile
@tilayealemu
tilayealemu / list-github-org-repos.py
Last active February 19, 2024 14:48
List organization's repos, last commit date to master and committer
# Script to fetch all repos under a git organization
# Returns last committer to master and date of commit
# Results sorted by commit date
# Replace ORG_NAME, USERNAME, and PASSWORD variables
import urllib2
import requests
import json
ORG_NAME = 'my-org'
@tilayealemu
tilayealemu / largest-image-in-webpage.php
Last active May 25, 2019 20:54
Get largest image in html page using php
<?php
// example call: http://localhost/largest.php?url_without_http=bbc.co.uk
$url = $_GET['url_without_http'];
$largest = get_largest_img("http://" . $url);
$embed = empty($largest) ? "Suitable image not found" : "<img src='" . $largest . "'>";
echo("<html><body>" . $embed . "</body></html>");
function get_largest_img($url) {