Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# Copyright (C) 2019-2020 ArianK16a
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ArianK16a
ArianK16a / guessmynumber.py
Last active February 26, 2020 10:44
Python guess my number game
import random
print('Hi, Lets play a guess my number game. What is your name?')
name = input()
print(f'Hello {name}, Lets begin!')
def invalid_number():
print('Error: Your choice is invalid! Try again and choose a natural number.')
return(0)
@ArianK16a
ArianK16a / picks.sh
Last active November 14, 2021 10:06
#!/bin/bash
set -e
source "build/envsetup.sh";
# device/lineage/sepolicy
changes=(
282358 # common: Label IAntiFlicker live display service
)
repopick -f -P device/lineage/sepolicy ${changes[@]}&
#!/bin/bash
scan () {
for blob in $(find $1 -type f); do
if [ "$(strings $blob | grep $2)" != "" ]; then
echo -e "$blob": \\n"$(strings $blob | grep $2) \n"
fi
done
}
#!/bin/bash
#
# Copyright (C) 2019-2020 ArianK16a
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ArianK16a
ArianK16a / z3c-q-bringup
Last active September 7, 2020 08:34
Xperia Z3-Family Android 10
- Boot : Ok
- Bluetooth : Ok
- WiFi : Ok
- WiFi Hotspot : Ok
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- Lights : Ok
- Flashlight: Ok