Skip to content

Instantly share code, notes, and snippets.

Limited availability

Muntashir Al-Islam MuntashirAkon

Limited availability
View GitHub Profile
OneSadCookie / edid-decode source URL
Created Oct 22, 2010
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("", "<<"))'
defunkt / gitio
Created Sep 11, 2011
Turn a URL into a URL.
View gitio
#!/usr/bin/env ruby
# Usage: gitio URL [CODE]
# Turns a URL
# into a URL
# Copies the URL to your clipboard.
url = ARGV[0]
code = ARGV[1]
jordelver / gist:3073101
Created Jul 8, 2012
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

BastinRobin / GetLatLong.js
Last active Apr 16, 2022
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();
zcdziura / Crypto Test
Last active Jan 4, 2023
Encryption using Elliptic Curves and Diffie-Hellman key exchanges
View Crypto Test
patrickhammond /
Last active Nov 13, 2022
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL"

comex / wormdump.c
Created Apr 9, 2015
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>
bl4ck5un / palatino.tex
Created Sep 26, 2015
Using Palatino font in LaTeX
View palatino.tex
\usepackage{tgpagella} % text only
\usepackage{mathpazo} % math & text
nuomi1 / PrintBootCampESDInfo.swift
Last active Jan 13, 2023
macOS and BootCamp Latest
View PrintBootCampESDInfo.swift
#!/usr/bin/env swift
// REPL.swift
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
import Foundation
homebysix / osx-software-update-urls.txt
Last active Nov 7, 2021 — forked from geoff-nixon/osx-software-update-urls.txt
URLs of the index files used by the software update client on OS X
View osx-software-update-urls.txt
10.3 (Panther):
10.4 (Tiger):
10.5 (Leopard):