Skip to content

Instantly share code, notes, and snippets.

View mahdi13's full-sized avatar
🏝️
I'm still working on my masterpiece

Mahdi Perfect mahdi13

🏝️
I'm still working on my masterpiece
View GitHub Profile
@mahdi13
mahdi13 / git-insight.sh
Created July 10, 2021 08:33
git command line insight
#!/usr/bin/env bash
(git log --reverse --pretty='format:%C(auto)%h (%s, %ad)' | head -3 ) && echo "..." && git --no-pager shortlog -s -n --all --no-merges && echo "..." && (git log --reverse --pretty='format:%C(auto)%h (%s, %ad)' | tail -3 )
@mahdi13
mahdi13 / myket_rollout.py
Last active August 5, 2023 09:25
Release (deploy) new versions of android app (apk file) to myket automatically. Great to be used on CI/CD pipelines
import hashlib
import uuid
import requests
class MyketClient:
def __init__(self, package_name, username, password):
self.url = 'https://developer.myket.ir/api'
self.resource_url = 'https://resource.myket.ir'