Skip to content

Instantly share code, notes, and snippets.

View adityatelange's full-sized avatar

Aditya Telange adityatelange

View GitHub Profile
@adityatelange
adityatelange / ngrok-dir-share.txt
Created February 13, 2021 09:27
share directory with ngrok
ngrok http file:///some/dir
# with basic auth
ngrok http file:///some/dir -auth="user:pass"
# credits https://twitter.com/Regala_/status/1360193684663242759?s=20
@adityatelange
adityatelange / recursive_unzip.py
Created January 22, 2021 11:27
recursively unzip a zip file with python
#!/usr/bin/python3
# og source: https://gist.github.com/JamesPHoughton/0f4f269e93a2b85958d8
from zipfile import ZipFile
def unpack_zip(zipfile='', path_from_local=''):
filepath = path_from_local+zipfile
extract_path = filepath.strip('.zip') + '/'
@adityatelange
adityatelange / janpatch-android-security-10.0.0_r49-android-security-10.0.0_r50.txt
Created January 15, 2021 18:46
Contains patch commits for AOSP 10 january 2021 ASB
project external/freetype/
c3a3f04 Cherry-pick one upstream patch
project external/gptfdisk/
886331c RESTRICT AUTOMERGE ANDROID: Fix negative stack write in sgdisk
project external/libexif/
065ec3f fixes some (not all) buffer overreads during decoding pentax makernote entries.
project frameworks/av/
@adityatelange
adityatelange / hugoUp.sh
Last active November 6, 2022 05:46
Update Hugo [not extended] on Ubuntu / Deb amd64
#!/bin/bash
url=$(wget -O- -q https://api.github.com/repos/gohugoio/hugo/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep "linux-amd64.deb" | grep -v "hugo_extended")
# url=$(wget -O- -q --header="Authorization: token xyzABC" https://api.github.com/repos/gohugoio/hugo/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep "linux-amd64.deb" | grep -v "hugo_extended")
version=$(echo $url | cut -d '/' -f 8 | cut -d 'v' -f 2)
name=$(echo $url | cut -d '/' -f 9)
checksums_url="https://github.com/gohugoio/hugo/releases/download/v${version}/hugo_${version}_checksums.txt"
installed_ver=$(hugo version | cut -d "v" -f 2 | cut -d "-" -f 1)
@adityatelange
adityatelange / decpatch-android-security-10.0.0_r48-android-security-10.0.0_r49.txt
Created December 8, 2020 04:27
Contains patch commits for AOSP 10 december 2020 ASB
project external/libaom/
d59a484 cherry-pick 0a0368368 Check the conformance requirements in Sec. 6.8.1.
project frameworks/av/
36a66d5 Move an orphaned analytics reference under a mutex
project frameworks/base/
5e33750cce Fix storing the wrong value of mLockdown in setting
04f285806a [DO NOT MERGE][BACKPORT]Improve location checks in TelephonyRegistry
004a29a3ba Make WallpaperMS bind wallpaper component PendingIntent immutable.
@adityatelange
adityatelange / novpatch-android-10.0.0_r47-android-security-10.0.0_r48.txt
Created November 3, 2020 04:22
Contains patch commits for AOSP 10 november 2020 ASB
project art/
project bionic/
project bootable/recovery/
project build/blueprint/
project build/kati/
@adityatelange
adityatelange / aboot info.md
Last active November 2, 2020 14:56
Redmi 3s Land's aboot

ran od -A d -t x4 aboot |head -5

og

0000000 464c457f 00010101 00000000 00000000
0000016 00280002 00000001 8f600000 00000034
0000032 00000000 05000002 00200034 00280004
0000048 00000000 00000000 00000000 00000000
0000064 00000000 000000b4 00000000 07000000
@adityatelange
adityatelange / Ubuntu-update-desktop-icons-readme.txt
Last active October 21, 2020 09:04
Ubuntu update desktop-icons 20.04, 19.10
For update manually the Desktop Icons gnome extension:
1. Type the following commands below on terminal.
> cd /usr/share/gnome-shell/modes
> sudo vim ubuntu.json
2. Remove the text ', [desktop-icons@csoriano]'
3. Save the file with 'wq'.
4. Restart the shell with logoff/logon session.
@adityatelange
adityatelange / octpatch-android-10.0.0_r46-android-10.0.0_r47.txt
Last active October 15, 2020 13:28
Contains patch commits for AOSP october 2020 ASB
project art/
project bionic/
project bootable/recovery/
project build/blueprint/
project build/kati/
@adityatelange
adityatelange / septpatch_android-10.0.0_r45-android-10.0.0_r46.txt
Last active October 15, 2020 13:27
Contains patch commits for AOSP september 2020 ASB
project art/
0f2487027e Snap for 5698743 from 492ed3575e7e7a5878572781937cbab04f27c2d7 to qt-release
project bionic/
290c0cb50 Snap for 5716396 from 5cda74e065761bbeccf7ff61d7a3131bdf6490d0 to qt-release
project bootable/recovery/
5a6cde8 Merge cherrypicks of [8673593, 8673409, 8673796, 8673797, 8673798, 8673855, 8673151, 8673594, 8673499, 8673799, 8673895, 8673896] into qt-release
project build/blueprint/