Skip to content

Instantly share code, notes, and snippets.

View danield137's full-sized avatar

Daniel Dror (Dubovski) danield137

View GitHub Profile
@danield137
danield137 / main.py
Last active January 30, 2018 09:55
Python Rabbit Utils
#!/usr/local/bin python3
import json
import pika
def dump_queue_to_file(broker, queue):
if not broker:
raise ValueError('please set the broker url.')
@danield137
danield137 / ecs_utils.py
Last active September 28, 2019 15:35
manage_ecs_services
import boto3
import json
def dump_task_conatiner_defs(
output_path='services.',
cluster_filter=lambda c_arn: True,
service_filter=lambda s_arn: True,
task_filter=lambda t_arn: True):
"""
@danield137
danield137 / .zshrc
Last active December 17, 2017 12:35
zsh_profile
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/danieldubovski/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
@danield137
danield137 / Cytoscape.jsx
Created August 7, 2017 17:04
cytoscape react component
import React, { Component } from 'react';
import cytoscape from 'cytoscape';
import cydagre from 'cytoscape-dagre';
cydagre(cytoscape);
let cyStyle = {
height: '400px',
display: 'block'
};
@danield137
danield137 / pipes_example.go
Created March 7, 2017 10:14
amature pipes in go
package main
import (
"fmt"
"time"
)
func main() {
raw := NewRawPipe()
agg := NewAggregatedPipe(raw.out)
@danield137
danield137 / channels_example.go
Last active March 7, 2017 07:50
Basic channels example in go
package main
import (
"fmt"
"time"
)
func main() {
t := NewTest()
// call methods on separate goroutines