Skip to content

Instantly share code, notes, and snippets.

View nezzzumi's full-sized avatar
💕
I may be slow to respond.

Guilherme nezzzumi

💕
I may be slow to respond.
View GitHub Profile
@itachi-cracker
itachi-cracker / jni_binja.h
Created January 17, 2024 18:39 — forked from Ayrx/jni_binja.h
JNI header with tweaks for Binary Ninja parser
typedef long jint;
typedef int64_t jlong;
typedef signed char jbyte;
/*
* JNI Types
*/
typedef unsigned char jboolean;
typedef unsigned short jchar;
@androidneha
androidneha / adb_commands.MD
Last active March 6, 2024 19:00
Some adb commands to change setting for battery optimisation, start service, stop service, grant permission, revoke permission and etc.

To list-up installed app

pm list packages

Search for a particualr app with pacakagename

pm list pacakges | grep com.abc

Turn on Battery Optimization for a particular app

adb shell dumpsys deviceidle whitelist -<package_name>

Turn off Battery Optimization for a particular app

@rampfox
rampfox / Chromium-at-startup.md
Last active May 6, 2024 14:27
How to open Chromium in full screen at startup on the Raspberry Pi

First, it seems that ~/.config/lxsession/LXDE-pi/autostart does not exist by default.

  1. copy the autostart
cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
@aminone
aminone / adbUsefulCommands.sh
Last active March 20, 2024 16:43
A collection of Android Debug Bridge (ADB) commands
# To get file
adb pull <PATH/TO/FILE/ON/DEVICE>
# To push file
adb push <PATH/TO/FILE> <PATH/TO/DESTINATION>
# To get wifi MAC address
adb shell cat /sys/class/net/wlan0/address
# To get IP Address
@DamianEdwards
DamianEdwards / json-in-markdown.md
Last active June 2, 2023 17:20
JSON comments on GH

What happens if you tell GitHub it's JSON

{
  "hello": "world" // I want my comments!
}

Just tell GitHub it's JavaScript

{
@shymonk
shymonk / customize-save-in-django-admin-inline-form.org
Last active April 14, 2024 02:55
How to customize save in django admin inline form?

Customize Save In Django Admin Inline Form

Background

This is a common case in django ORM.

from django.db import models

class Author(models.Model):
@ldfallas
ldfallas / CurlWriteCallbackNs1.ns1
Created June 8, 2009 12:44
Experiment for calling LibCurl from Newspeak. Still need to work on releasing resources.
Newsqueak1
'LangexplrExperiments'
CurlWriteCallbackNs1 = Alien (
"Class used to represent arguments of the LibCurl write function."
'as yet unclassified'
data = (
^Alien forPointer: (self unsignedLongAt: 1)
)