Skip to content

Instantly share code, notes, and snippets.

reza fatahi aug2uag

Block or report user

Report or block aug2uag

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
aug2uag / Setup & Install
Created Nov 5, 2019 — forked from dhavaln/Setup & Install
Setting up HAProxy on Mac OSX
View Setup & Install
Install HAProxy from Homebre:
`brew install haproxy`
For full reference:
aug2uag / singleton.go
Created Nov 5, 2019 — forked from adohe/singleton.go
Golang singleton implementation
View singleton.go
package singleton
import (
type singleton struct {
var instance *singleton
View Reset MySQL Root Password in Mac

Reset mysql root password in Mac OS:

First Stop MySQL:

  1. Go to: 'System Preferences' >> 'MySQL' and stop MySQL


  1. sudo /usr/local/mysql/support-files/mysql.server start
  2. sudo /usr/local/mysql/support-files/mysql.server stop
View gist:c2d96d87d212277925492ce5edd5d8f1
atherton, california
scarsdale, new york
cherry hills village, colorado
los altos hills, california
hillsborough, california
short hills, new jersey
highland park, texas
darien, connecticut
bronxville, new york
glencoe, illinois
aug2uag / US Zip Codes from 2013 Government Data
Created Nov 8, 2018 — forked from erichurst/US Zip Codes from 2013 Government Data
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source:
View US Zip Codes from 2013 Government Data
This file has been truncated, but you can view the full file.
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
aug2uag / gist:63a677a9ab1e4d3af21488820c1786e4
Created Nov 8, 2018 — forked from vekexasia/gist:2367508
Check if the user is opening the app for the first time
View gist:63a677a9ab1e4d3af21488820c1786e4
private Boolean firstTime = null;
* Checks if the user is opening the app for the first time.
* Note that this method should be placed inside an activity and it can be called multiple times.
* @return boolean
private boolean isFirstTime() {
if (firstTime == null) {
SharedPreferences mPreferences = this.getSharedPreferences("first_time", Context.MODE_PRIVATE);
firstTime = mPreferences.getBoolean("firstTime", true);
aug2uag / app.js
Created Sep 17, 2018 — forked from nuthinking/app.js
Multiple file uploads with Nodejs
View app.js
var http = require("http");
var url = require("url");
var multipart = require("./multipart/multipart");
var sys = require("sys");
var fs = require("fs");
var server = http.createServer(function(req, res) {
// Simple path-based request dispatcher
switch (url.parse(req.url).pathname) {
case '/':
aug2uag / specialties.html
Last active Aug 9, 2018
List of Physician Specialties
View specialties.html
<li>Allergist or Immunologist</li>
<li>Internal Medicine</li>
aug2uag /
Created Aug 2, 2018 — forked from yoavniran/
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies

aug2uag / .gitlab-ci.yml
Created Jul 17, 2018 — forked from thornbill/.gitlab-ci.yml
Example Node GitLab CI Yamlfile
View .gitlab-ci.yml
# Official framework image. Look for the different tagged releases at:
image: node:6
- npm install
# This folder is cached between builds
You can’t perform that action at this time.