Skip to content

Instantly share code, notes, and snippets.


Muntashir Al-Islam MuntashirAkon

View GitHub Profile
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]
CMCDragonkai / stay-awake.ps1
Last active Sep 21, 2020
Keep Windows Awake Temporarily (Prevent Sleep, Display Off or Away Mode) #cli #powershell #windows
View stay-awake.ps1
#!/usr/bin/env powershell
# This script can keep the computer awake while executing another executable, or
# if no executable was passed in, then it stays awake until this script stops.
# There are 3 different ways of staying awake:
# Away Mode - Enable away mode (
# Display Mode - Keep the display on and don't go to sleep or hibernation
# System Mode - Don't go to sleep or hibernation
# The default mode is the System Mode.
# Away mode is only available when away mode is enabled in the advanced power options.
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("", "<<"))'
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>
Marfjeh / hosts
Last active Jun 28, 2021
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
Diederikjh /
Last active Aug 26, 2021
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;
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):
fython /
Last active Feb 16, 2022
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 Sep 26, 2015
Using Palatino font in LaTeX
View palatino.tex
\usepackage{tgpagella} % text only
\usepackage{mathpazo} % math & text
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();