Skip to content

Instantly share code, notes, and snippets.

@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
#!/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
#
#!/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
}
@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[@]}&
@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)
#!/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
#
#define LOG_TAG "PowerModeExt"
#define INPUT_EVENT_WAKUP_MODE_OFF 4
#define INPUT_EVENT_WAKUP_MODE_ON 5
#include <Power.h>
#include <dirent.h>
#include <fcntl.h>
#include <string.h>
#!/usr/bin/env python3
for i in range(1, 100):
if i % 15 == 0:
print("FizzBuzz")
elif i % 5 == 0:
print("Buzz")
elif i % 3:
print("Fizz")
else:
import codescape.Dogbot;
public class MyDogbot extends Dogbot {
public void run() {
// move(), turnLeft() und turnRight() werden benötigt
// Die Energiezellen sind ohne weitere Kenntnisse noch nicht erreichbar
// Dein Code hier:
int moves = 0;
#!/bin/bash
#
# Copyright (C) 2019-2021 ArianK16a
#
# SPDX-License-Identifier: Apache-2.0
#
export USERNAME=arian
export HOSTNAME=server
LOCAL_PATH="$(pwd)"