Skip to content

Instantly share code, notes, and snippets.

View lel-amri's full-sized avatar

Léo lel-amri

  • France
  • 02:56 (UTC +01:00)
View GitHub Profile
@lel-amri
lel-amri / colors.py
Last active November 10, 2022 13:59
Solarized
#!/usr/bin/env python3
print("Colors: \\033[XXm")
colors_names = (
"black",
"red",
"green",
"yellow",
"blue",
@lel-amri
lel-amri / print_args.sh
Created November 4, 2022 13:45
print_args.sh
#!/bin/sh
separator=$(head -c 60 /dev/urandom | base64 -w 0)
echo "$# arguments separated with $separator"
while [ $# != 0 ] ; do
printf '%s\n%s\n' "$1" "$separator"
shift
done
@lel-amri
lel-amri / README.md
Last active May 7, 2022 14:31
Debloat Samsung Galaxy S10e

Debloat Samsung Galaxy S10e

Tools to gather information about installed packages on the stock ROM of my Samsung Galaxy S10e.

My Samsung Galaxy S10e came refurbished (by Cadaoz (France)).

My phone information, as seen in the settings app

About phone:

#!/usr/bin/env python3
# This versionning style is a date based versionning in X.Y.Z.W format.
# It is compatible with Microsoft's System.Version and the .NET Assembly
# versionning model.
#
# X is the the year readable in decimal, with the MSB bit of the 16bits value
# set to 1.
#
# Y is comprised of two parts:
# * A 1-based integer (range 1-99), incremented for each "unique" "functional
@lel-amri
lel-amri / README.rst
Last active February 9, 2021 14:36
APK Mystère
@lel-amri
lel-amri / code.py
Last active July 2, 2019 19:01
Python is permissive
def hello(who):
print("Hello %s" % who)
if __name__ == '__main__':
hello(
"world")
hello("World")
hello(
"world!"
@lel-amri
lel-amri / 0_urllib.py
Last active February 17, 2018 14:41 — forked from kennethreitz/0_urllib2.py
Python3: urllib vs requests
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib.request
gh_url = 'https://api.github.com'
req = urllib.request.Request(gh_url)
password_manager = urllib.request.HTTPPasswordMgrWithDefaultRealm()