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 / 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
@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 / 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 / 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 / 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 / Example.IonicMultipleTabs.js
Created November 4, 2016 00:31
Example of a function which can add views for multiple tabs easily
function traverseReplace(find, replace, object, dest) {
Object.keys(opts).forEach(function (key) {
var copy = object[key];
key = key.replace(find, replace);
if (typeof copy === 'object') {
dest[key] = {};
return traverseReplace(find, replace, copy, dest[key]);
}
if (typeof copy === 'string') {
dest[key] = copy.replace(find, replace);
@muhammaddadu
muhammaddadu / Dockerfile
Last active January 5, 2017 12:04
Dockerfile for AEM 6.1
FROM java:7
RUN mkdir /opt/aem/
WORKDIR /opt/aem/
EXPOSE 4502
ADD ./AEM_6.1_Quickstart.jar /opt/aem/AEM_6.1_Quickstart.jar
ADD ./license.properties /opt/aem/license.properties
RUN java -jar AEM_6.1_Quickstart.jar -unpack -v
@muhammaddadu
muhammaddadu / findVersionDifferences
Created January 16, 2017 16:05
comparse two node_module folders for versions
#!/usr/bin/env node
const path = require('path');
const fs = require('fs');
const _ = require('lodash');
let p = (...args) => path.join.apply(this, [__dirname, '..', ...args]);
const NODE_MODULES_DIR = p('node_modules');
const NODE_MODULES_COMPARE_DIR = p('node_modules.bk');
const MANIFEST = require(p('package.json'));
@muhammaddadu
muhammaddadu / docker-compose-gitlab.yml
Created April 30, 2018 22:20 — forked from cweilguny/docker-compose-gitlab.yml
A docker-compose config in v3 format for nginx-proxy with separate containers for nginx, dockergen and letsencrypt-companion. Additional example on how to get GitLab docker container running with this nginx-proxy setup. You need to create the docker network before, just run 'docker network create nginx-proxy'. Docker will tell you so if you don'…
version: '3'
services:
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
nginx['listen_port'] = 80
@muhammaddadu
muhammaddadu / debug-docker-config.sh
Created September 18, 2018 19:22 — forked from augustovictor/debug-docker-config.sh
Debug vscode docker es6
# docker-compose.yml
...
command: npm run debug
ports:
- "3000:3000"
- "9229:9229"
...
--------------------------------------------------------