Skip to content

Instantly share code, notes, and snippets.

View ankitthakur's full-sized avatar

Ankit Thakur ankitthakur

View GitHub Profile
######################## nginx.conf ########################
include /Users/ankitthakur/nginx/sites-available/*;
######################## nginx.conf ########################
######################## node config ########################
# The upstream module is the link between Node.js and Nginx.
# Upstream is used for proxying requests to other servers.
# All requests for / get distributed between any of the servers listed.
upstream nodeserver {
#import "NetworkParams.h"
@interface Network : NSObject <NSURLConnectionDelegate, NSURLConnectionDataDelegate>
- (void) initWithRequest:(NSURLRequest*)request onCompletion:(CompletionBlock)success onError:(ErrorBlock)error;
@end
@ankitthakur
ankitthakur / npmGlobalPathSettings.txt
Created December 3, 2013 10:53
npm global path prefix
npm global path prefix:
Extending your PATH with
$ export PATH=/usr/local/share/npm/bin:$PATH
Run this:
$ npm config get prefix
@ankitthakur
ankitthakur / AppleHomeKitUtilities.swift
Last active February 9, 2017 23:35
Apple HomeKit Utilities
//
// AppleHomeKitUtilities.swift
// AppleHomeKit
//
// Created by Ankit Thakur on 2/7/15.
// Copyright (c) 2015 Ankit Thakur. All rights reserved.
//
import UIKit
import HomeKit
@ankitthakur
ankitthakur / GeofenceViewController
Created February 26, 2015 06:17
Geofence Core Location and Beacon Integration
//
// GeofenceViewController.swift
// AppleHomeKit
//
// Created by Ankit Thakur on 2/23/15.
// Copyright (c) 2015 Ankit Thakur. All rights reserved.
//
import UIKit
import CoreLocation;
@ankitthakur
ankitthakur / AppleHealthKitUtilities
Last active August 29, 2015 14:16
Apple HealthKitUtilities
//
// AppleHealthKitUtilities.swift
// AppleHealthKitPOC
//
// Created by Ankit Thakur on 09/01/15.
// Copyright (c) 2015 Ankit Thakur. All rights reserved
//
import UIKit
import HealthKit
//
// GCDUtils.h
// GCD
//
// Created by Ankit Thakur on 6/23/15.
// Copyright (c) 2015 GCD. All rights reserved.
//
#import <Foundation/Foundation.h>
@ankitthakur
ankitthakur / 0_reuse_code.js
Created March 4, 2016 12:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ankitthakur
ankitthakur / rm_mysql.md
Created May 18, 2018 09:43 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

@ankitthakur
ankitthakur / build.gradle
Created August 28, 2018 04:58
gradle kotlin docker task
buildscript {
ext {
kotlinVersion = '1.2.51'
springBootVersion = '2.0.4.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")