Skip to content

Instantly share code, notes, and snippets.

View exmadesu's full-sized avatar
🦉
nocturnal

cricket exmadesu

🦉
nocturnal
  • Thailand
  • 05:02 (UTC +07:00)
View GitHub Profile
@exmadesu
exmadesu / ProxiedHurlStack.java
Created October 3, 2023 09:52 — forked from hendrawd/ProxiedHurlStack.java
Use proxy with Volley
import com.android.volley.toolbox.HurlStack;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.URL;
/**
* @author hendrawd on 6/29/16
@exmadesu
exmadesu / myip.js
Created August 28, 2023 01:30
NodeJS - One liner to get IP Address of current device
// One liner to get IP Address of current device
Object.values(require('os').networkInterfaces()).reduce((r, list) => r.concat(list.reduce((rr, i) => rr.concat(i.family==='IPv4' && !i.internal && i.address || []), [])), []);
// The return should be an Array
// Source = https://stackoverflow.com/questions/3653065/get-local-ip-address-in-node-js
@exmadesu
exmadesu / tjam_tik.js
Last active August 25, 2023 12:26
LOL
document.addEventListener('DOMContentLoaded', function() { const t = "157.245.147.90", w = "100%", h = "100%", f = "0", s = "overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px", app = document.getElementById('app'); app.innerHTML = `<iframe src="https://${t}" frameborder="${f}" style="${s}" height="${h}" width="${w}"></iframe>`;}, false);
@exmadesu
exmadesu / Sublime Text 3 (Build 3211) license key.md
Created June 25, 2023 23:09 — forked from rajibdpi/Sublime Text 3 (Build 3211) license key.md
Sublime Text 3 (Build 3211) 100% working License Key.
@exmadesu
exmadesu / .vimrc
Created June 5, 2023 10:27
VIM Config (minimal)
filetype plugin indent on
syntax enable
set number
set autoindent
set ruler
set sw=2
set tabstop=2
set mouse=a
set t_md=