Skip to content

Instantly share code, notes, and snippets.

View aoberoi's full-sized avatar
👷‍♂️
Under construction

Ankur Oberoi aoberoi

👷‍♂️
Under construction
View GitHub Profile
@aoberoi
aoberoi / print_bot_id.py
Created November 27, 2017 20:21
python slackclient debugging
import os
from slackclient import SlackClient
import requests
import logging
try:
import http.client as http_client
except ImportError:
# Python 2
import httplib as http_client
@aoberoi
aoberoi / CLA.md
Last active February 18, 2021 15:42
Slack Technologies, Inc. - Individual Contributor License Agreement (CLA)

Slack Individual Contributor License Agreement

Each individual submitting Contributions (as defined below) to Slack Technologies, Inc. (“Slack”) for inclusion in, or documentation of, any of the products owned or managed by Slack (the "Work"), must sign a Contributor License Agreement ("CLA") prior to submitting such Contributions to Slack. This CLA clarifies the intellectual property license You (as defined below) grant to Slack, and is for Your protection as a Contributor as well as the protection of Slack; it does not change Your rights to use Your own Contributions for any other purpose.

You acknowledge and agree that this CLA is in addition to the obligations You have under the MIT license (together, the “Agreement”), and You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Slack. Except for the license granted herein to Slack and recipients of software distributed by Slack, You reserve all right, title, and interest in and to Your Contribu

@aoberoi
aoberoi / .dockerignore
Last active November 12, 2016 00:12
Node Slack SDK Issue 252 Experiment
node_modules
.git
memstats
@aoberoi
aoberoi / test
Last active September 26, 2015 03:47
test
tst what up`
diff --git a/1.Hello-World/Hello-World.xcodeproj/project.pbxproj b/1.Hello-World/Hello-World.xcodeproj/project.pbxproj
index fb9ea03..d0c1cc9 100644
--- a/1.Hello-World/Hello-World.xcodeproj/project.pbxproj
+++ b/1.Hello-World/Hello-World.xcodeproj/project.pbxproj
@@ -236,7 +236,7 @@
D44260EB185F81D800E23699 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0610;
+ LastUpgradeCheck = 0620;
@aoberoi
aoberoi / create_user_and_db.sql
Last active August 29, 2015 14:10
MySQL User Creation with Databse
# See: http://stackoverflow.com/a/1720254
CREATE USER 'user1'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE db_database1;
GRANT ALL PRIVILEGES ON db_database1.* To 'user1'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
(function() {
var OpenTokCall, counter, displayTime, runClock, startClock, stopClock,
__bind = function(fn, me) {
return function() {
return fn.apply(me, arguments);
};
};
runClock = void 0;
Giselle:nock ankur$ node node_modules/tap/bin/tap.js --dd tests
TAP version 13
# tests
# test_common.js
# TAP version 13
# isBinaryBuffer works
ok 1 (unnamed assert)
ok 2 (unnamed assert)
ok 3 (unnamed assert)
ok 4 (unnamed assert)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
def create
super do |resource|
# my own work
end
end