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
@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)
)
@shymonk
shymonk / customize-save-in-django-admin-inline-form.org
Last active November 14, 2024 11:30
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):
@DamianEdwards
DamianEdwards / json-in-markdown.md
Last active November 6, 2024 21:20
JSON comments on GH

What happens if you tell GitHub it's JSON

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

Use jsonc as the language instead

{
@aminone
aminone / adbUsefulCommands.sh
Last active September 14, 2024 13:57
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
@rampfox
rampfox / Chromium-at-startup.md
Last active June 1, 2024 03:55
How to open Chromium in full screen at startup on the Raspberry Pi

(debian 10 buster)

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/
@androidneha
androidneha / adb_commands.MD
Last active November 7, 2024 12:58
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

@x86-69
x86-69 / 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;