Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View aahmed-se's full-sized avatar
🎯
Focusing

Ali Ahmed aahmed-se

🎯
Focusing
View GitHub Profile
@aahmed-se
aahmed-se / OpenWithSublimeText3Directory.bat
Created February 27, 2016 00:08
Sublime Text 3 : Add Windows context menu for directory , shell , file and desktop
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_EXPAND_SZ /v "" /d "%st3Path% \"%%V\"" /f
rem add it for directories
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "" /d "Open with Sublime Text 3" /f
@aahmed-se
aahmed-se / crete_default_init_py.sh
Created September 22, 2017 19:15
Create __init__.py under all folders in a specific directory
LOCATION="."
FILE_NAME="/__init__.py"
for i in $(find $LOCATION -type d); do echo "__import__('pkg_resources').declare_namespace(__name__)" > $i$FILE_NAME; done
@aahmed-se
aahmed-se / OpenConnectV2.md
Last active November 15, 2017 21:29
OpenConnectV2

Introduction

Proposed extensions to Context interface to abstract away a distributed runtime

interface Context {
	StateMgr getStateMgr(); // State Manager for co ordination dedup and ordering semantics
	UUID getConnectorId(); // Globally unique connector instance identifier
	Integer getPartitionId(); // Globall unique connector instance identifier
@aahmed-se
aahmed-se / Pulsar-IO-Bigquery.md
Last active February 16, 2019 00:22
Bigquery

Introduction

This is a usage and design summary of the pulsar-io-bigquery sink.

Parameters

This is the current list of parameters.

param name description
### Keybase proof
I hereby claim:
* I am aahmed-se on github.
* I am alahmed (https://keybase.io/alahmed) on keybase.
* I have a public key ASD6PV_6m2tYtgYsxIVsp8KZtfC6LSNnua-pVYDHVfZkdAo
To claim this, I am signing this object:

alahmed

Keybase proof

I hereby claim:

  • I am aahmed-se on github.
  • I am alahmed (https://keybase.io/alahmed) on keybase.
  • I have a public key ASD6PV_6m2tYtgYsxIVsp8KZtfC6LSNnua-pVYDHVfZkdAo

To claim this, I am signing this object:

class Pulsarctl < Formula
desc "Pulsar admin go cli"
homepage "https://github.com/streamnative/pulsarctl"
url "https://github.com/streamnative/pulsarctl/archive/v0.1.0.tar.gz"
version "v0.1.0"
sha256 "780e97f5f7a744525ffbb0e68d8e658837bee998269b72456711f034b1532e7d"
depends_on "go" => :build
def install
class Pulsarctl < Formula
desc "Pulsar admin go cli"
homepage "https://github.com/streamnative/pulsarctl"
url "https://github.com/streamnative/pulsarctl/releases/download/v0.2.0/pulsarctl-amd64-darwin"
version "v0.2.0"
sha256 "a752acbbf044cdb74e27bcb1d6145b0307588961732fbd63fd479cdbd3c9ef24"
def install
mv "pulsarctl-amd64-darwin", "pulsarctl"
bin.install "pulsarctl"
#!/bin/sh
set -e
# script to install maven
# todo: add method for checking if latest or automatically grabbing latest
mvn_version=${mvn_version:-3.6.1}
url="https://archive.apache.org/dist/maven/maven-3/${mvn_version}/binaries/apache-maven-${mvn_version}-bin.tar.gz"
install_dir="/opt/maven"
class Concurnas < Formula
desc "Concurnas is an open source JVM programming language designed for building reliable, scalable, high performance concurrent, distributed and parallel systems"
homepage "https://concurnas.com"
url "https://github.com/Concurnas/Concurnas/releases/download/1.14.020/Concurnas-1.14.020.zip"
sha256 "721b12c6fa7d87cbf2763d2b7c3ffc0c5395d2cb1f3760e9ae33d6f8c650a064"
version "1.14.020"
bottle :unneeded
depends_on :java => "1.8+"