Skip to content

Instantly share code, notes, and snippets.

View muhammaddadu's full-sized avatar
✍️
Building something probably

Muhammad Dadu muhammaddadu

✍️
Building something probably
View GitHub Profile
@muhammaddadu
muhammaddadu / setchan
Created June 29, 2016 05:41
Auto scan and set unused Wifi channel for Phantom 3 Standard / 4K
#!/bin/sh
#Auto scan and set unused Wifi channel for Phantom 3 Standard / 4K
#Author : Gary Kan
#Date : 20/06/2016
#Version 1.1
# 1) Add new user argument option
# -ch for set channel number, eg. -ch 13
# -booster will limit RC tx power to 20DBM, to protect your external booster
# 2) Add Restart udhcp and apsvr
# 3) Some Minor tweak
@muhammaddadu
muhammaddadu / github.blob.widescreen.user.js
Created March 18, 2015 17:44
GitHub Blob Widescreen (Greasemonkey)
// ==UserScript==
// @name GitHub Blob Widescreen
// @namespace https://github.com
// @include https://github.com/*/blob/*
// @grant none
// ==/UserScript==
(function() {
var style = document.createElement("style");
style.type = "text/css";
style.innerHTML = ".blob-wrapper .blob-code, .blob-wrapper .blob-num { \
@muhammaddadu
muhammaddadu / greasemonkey-appc-coverage.user.js
Created March 18, 2015 04:44
GitHub Code Coverage Heat Map (using Greasemonkey)
// ==UserScript==
// @name greasemonkey-appc-coverage
// @namespace https://github.com/
// @description GitHub Code Coverage Heat Map (using Greasemonkey)
// @include https://github.com/*
// @grant GM_xmlhttpRequest
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js
// ==/UserScript==
// Make sure jQuery is in the scope
@muhammaddadu
muhammaddadu / gist:407dceae00e973ec70c8
Created March 18, 2015 04:43
greasemonkey-appc-coverage.user.js
// ==UserScript==
// @name greasemonkey-appc-coverage
// @namespace https://github.com/
// @description GitHub Code Coverage Heat Map (using Greasemonkey)
// @include https://github.com/*
// @grant GM_xmlhttpRequest
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js
// ==/UserScript==
// Make sure jQuery is in the scope
@muhammaddadu
muhammaddadu / libcxxabi-static.patch
Created February 25, 2015 23:36
libcxxabi-static.patch
diff --git a/lib/buildit b/lib/buildit
index f44d673..d43807d 100755
--- a/lib/buildit
+++ b/lib/buildit
@@ -91,7 +91,7 @@ case $TRIPLE in
done
;;
esac
-$CC *.o $RC_CFLAGS $LDSHARED_FLAGS $EXTRA_FLAGS
+ar cru libc++abi.a *.o