Skip to content

Instantly share code, notes, and snippets.

View MuntashirAkon's full-sized avatar
Unavailable. Use email/phone in case of emergency.

Muntashir Al-Islam MuntashirAkon

Unavailable. Use email/phone in case of emergency.
View GitHub Profile
OneSadCookie / edid-decode source URL
Created October 22, 2010 23:24
EDID decoding on the Mac, to find out what resolutions and rates the Mac is seeing reported.
View edid-decode source URL
compile with:
gcc edid-decode.c -o edid-decode
get EDID from IORegistryExplorer (mine, an old 24" Apple Cinema Display, is attached).
Convert to binary with this command:
ruby -e '"edid", "wb").write("edid.txt") { |s| ("0x"+s).to_i(16) }.inject("", "<<"))'
Marfjeh / hosts
Last active June 28, 2021 04:52
Marf's hosts file - I'm using this to make it easy for myself to copy hosts between systems. as you can see, I REALLY REALLY REALLY hate ads.
View hosts
fython /
Last active February 16, 2022 14:48
StorageManagaerCompat (openProxyFileDescriptor pre-O)
* No Licenses. Use it in your favourite way.
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.ParcelFileDescriptor;
import android.os.ProxyFileDescriptorCallback;
bl4ck5un / palatino.tex
Created September 26, 2015 02:04
Using Palatino font in LaTeX
View palatino.tex
\usepackage{tgpagella} % text only
\usepackage{mathpazo} % math & text
BastinRobin / GetLatLong.js
Last active May 9, 2023 01:06
Get Latitude And Longitude Javascript Function
View GetLatLong.js
/* Get the latitude and longitude from address:
Author : Bastin Robins J
// Add the link to webpage
<script src=""></script>
//Function to covert address to Latitude and Longitude
var getLocation = function(address) {
var geocoder = new google.maps.Geocoder();
comex / wormdump.c
Created April 9, 2015 06:07
Some old broken code in case it helps anyone
View wormdump.c
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/kern_event.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <net/ethernet.h>
zcdziura / Crypto Test
Last active July 13, 2023 05:08
Encryption using Elliptic Curves and Diffie-Hellman key exchanges
View Crypto Test
BlurryFlurry /
Created October 11, 2018 10:38
Ask sudo password rofi
# Take password prompt from STDIN, print password to STDOUT
# the sed piece just removes the colon from the provided
# prompt: rofi -p already gives us a colon
rofi -dmenu \
-password \
-no-fixed-num-lines \
-p "$(printf "$1" | sed s/://)"
Diederikjh /
Last active September 12, 2023 08:46
Single class that handles encryption and decryption with keys using the Android `Keystore` API. Mostly inspired by this [blog post]( This was tested with API 18 and 25 level emulator (and a level 23 device).
package com.example.yourapp;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
jordelver / gist:3073101
Created July 8, 2012 22:06
Set the Mac OS X SOCKS proxy on the command line
View gist:3073101

Set the Mac OS X SOCKS proxy on the command line

a.k.a. what to do when your ISP starts blocking sites :(

Set the SOCKS proxy to local SSH tunnel

networksetup -setsocksfirewallproxy "Ethernet" localhost 8080

To clear the domain and port