Skip to content

Instantly share code, notes, and snippets.

View dhamaniasad's full-sized avatar
🏠
Working from home

Asad Dhamani dhamaniasad

🏠
Working from home
View GitHub Profile
anonymous
anonymous / 01.configure
Created August 24, 2015 14:21
2015-08-24 19:34:15 +0530
./configure
--prefix=/usr/local/Cellar/sqlite/3.8.11.1
--disable-dependency-tracking
--enable-dynamic-extensions
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
anonymous
anonymous / 01.configure
Created August 24, 2015 14:57
2015-08-24 20:19:09 +0530
./configure
--prefix=/usr/local/Cellar/python/2.7.10_2
--enable-ipv6
--datarootdir=/usr/local/Cellar/python/2.7.10_2/share
--datadir=/usr/local/Cellar/python/2.7.10_2/share
--enable-framework=/usr/local/Cellar/python/2.7.10_2/Frameworks
--without-ensurepip
--without-gcc
@OSConsumer
OSConsumer / Micromax 400R Router ad remover
Last active December 22, 2015 23:39
Micromax 400R ads Remover.
Files to replace the annoying ads.html in Micromax 400R mifi router. Thanks to http://motyar.blogspot.in/2013/02/hacking-micromax-400r-mi-fi.html for tips.
Usage :
1. Download the files. Make sure you have enabled "Web Sharing" in the administrator page. Factory setting is only usb for this.
2. Open upload.html in your browser while being connected to your Micromax 400R
3. Choose ads.html in the form and upload.
4. See if the response is "ok"
5. DONE, PROFIT!!!!!
@joscha
joscha / meteor-async.md
Last active August 29, 2017 06:51 — forked from possibilities/meteor-async.md
Meteor Async Guide

From Meteor's documentation:

In Meteor, your server code runs in a single thread per request, not in the asynchronous callback style typical of Node. We find the linear execution model a better fit for the typical server code in a Meteor application.

This guide serves as a mini-tour of tools, trix and patterns that can be used to run async code in Meteor.

Basic async

Sometimes we need to run async code in Meteor.methods. For this we create a Future to block until the async code has finished.

@LoicMahieu
LoicMahieu / reminder.md
Created June 15, 2015 09:22
OVH Object Storage
@maxpaynestory
maxpaynestory / scrape_tweets.js
Created September 5, 2014 17:59
Scrape all tweets from a twitter account using casperjs and phantomjs
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g, '');}
String.prototype.ltrim=function(){return this.replace(/^\s+/,'');};
String.prototype.rtrim=function(){return this.replace(/\s+$/,'');};
String.prototype.fulltrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,'').replace(/\s+/g,' ');};
Date.prototype.MMDDYYYY = function() {
@AhmedElSharkasy
AhmedElSharkasy / best_practices
Last active April 8, 2019 14:53
Rails 3 AntiPatterns, Useful snippets and Recommended Refactoring. Note: Some of them are collected from different online resources/posts/blogs with some tweaks.
Rails as it has never been before :)
Rails 3 AntiPatterns, Useful snippets and Recommended Refactoring.
Note: Some of them are collected from different online resources/posts/blogs with some tweaks.
@krishamoud
krishamoud / app.config
Last active June 3, 2019 11:18
Deploy Meteor onto Elastic Beanstalk
option_settings:
- option_name: AWS_SECRET_KEY
value: -------------------------------------------
- option_name: AWS_ACCESS_KEY_ID
value: ------------------------------
- option_name: PORT
value: 8081
@tkafka
tkafka / LICENSE.txt
Last active September 5, 2019 13:38
Drop-in replacement for ReactCSSTransitionGroup that uses velocity.js instead of CSS transforms. Add your own transitions to `transitions` hash.
The MIT License (MIT)
Copyright (c) 2014 Tomas Kafka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
// Q sample by Jeff Cogswell
/*===========
We want to call these three functions in sequence, one after the other:
First we want to call one, which initiates an ajax call. Once that ajax call
is complete, we want to call two. Once two's ajax call is complete, we want to call three.
BUT, we don't want to just call our three functions in sequence, as this quick
demo will show. Look at this sample function and think about what order