Skip to content

Instantly share code, notes, and snippets.

View mohakshah's full-sized avatar

Mohak Shah mohakshah

  • Ahmedabad, India
View GitHub Profile
@codyzu
codyzu / TFTP factory reset TP-Link TL-WR820N V1.md
Last active January 2, 2024 20:50
Procedure to restore the factory firmware on a TL-WR810N v1 rotuer (restoring from openWRT or dd-wrt)
@fay59
fay59 / icloud-album-download.sh
Last active September 16, 2024 09:58
Download entire iCloud shared albums
#!/bin/bash
# requires jq
# arg 1: iCloud web album URL
# arg 2: folder to download into (optional)
function curl_post_json {
curl -sH "Content-Type: application/json" -X POST -d "@-" "$@"
}
@martin-cotta
martin-cotta / ViewController.m
Created April 11, 2016 23:38
Hack to fix navigation bar position/height on iOS 8 after closing fullscreen video
// on a portrait only app, when a video player is launched from a WebView
// and the user turn the phone into landscape and then closes the player,
// the navigation bar slips under the status bar
@property (nonatomic, strong) id observer;
- (instancetype)init {
@weakify(self);
@rxin
rxin / ramdisk.sh
Last active December 13, 2023 02:40
ramdisk create/delete on Mac OS X.
#!/bin/bash
# From http://tech.serbinn.net/2010/shell-script-to-create-ramdisk-on-mac-os-x/
#
ARGS=2
E_BADARGS=99
if [ $# -ne $ARGS ] # correct number of arguments to the script;
then
@error454
error454 / gist:3229018
Created August 1, 2012 17:27
QR Code WiFi Scheme Regex

QR Code WiFi Scheme Regexs of Extreme Awesomeness

A few regular expressions to parse WIFI schemes such as:

WIFI:T:WEP;S:test;P:rainbows\;unicorns\:jedis\,ninjas\\ secure;;

Network Type

###Raw (?<=T:)[a-zA-Z]+(?=;)