Skip to content

Instantly share code, notes, and snippets.

View amykyta's full-sized avatar

Alex Mykyta amykyta

  • Betterment
  • New York, NY
View GitHub Profile
@amykyta
amykyta / something.md
Created August 2, 2017 18:35
colored iterms by box sshed into

so here is my setup, I have a ~/.ssh/config file with this in it

Host staging
  HostName staging.bondstreet.com
  User ubuntu

Host prod
  HostName bondstreet.com
  User ubuntu

Keybase proof

I hereby claim:

  • I am amykyta on github.
  • I am mykyta (https://keybase.io/mykyta) on keybase.
  • I have a public key ASCk7BRfX3jTP7MtKWADoy_IDMHkozzijLkjAdOEhu2Upgo

To claim this, I am signing this object:

@amykyta
amykyta / steve.py
Created May 5, 2017 18:15
Logger for stdout
import logging
import sys
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
@amykyta
amykyta / webpack.config.js
Created February 9, 2016 13:25
survive js webpack and react kanban
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const stylelint = require('stylelint');
const NpmInstallPlugin = require('npm-install-webpack-plugin');
const pkg = require('./package.json');
const HTMLWebpackPlugin = require('html-webpack-plugin');
const TARGET = process.env.npm_lifecycle_event;

Keybase proof

I hereby claim:

  • I am amykyta on github.
  • I am mykyta (https://keybase.io/mykyta) on keybase.
  • I have a public key whose fingerprint is 9377 DA9F D878 C044 C75A E70F 99E5 8551 9CA8 EF1B

To claim this, I am signing this object:

@amykyta
amykyta / urls_from_url.py
Last active November 6, 2015 00:10
get data from url and form new urls
import urllib
def do_it():
f = urllib.urlopen("https://raw.githubusercontent.com/alexwaters/domainChecker/master/archive/domainDict");
data = f.read()
# closes automatically when f is garbage collected but why not
f.close()
# neat solution found on stack overflow
# [iter(data)] * n creates a list of n instances of the iterator to the string
# *[list] passes it to zip by making use of argument unpacking
@amykyta
amykyta / run101notes.md
Last active August 29, 2015 14:22
Run 101 Notes
@amykyta
amykyta / gist:a764a03c3d08362799c2
Last active August 29, 2015 14:16
What's a nicer way to do this? Without having that all_data array around?
var qhttp = require('q-io/http');
var _ = require('lodash');
var some_url = "http://localhost:8080/getsome/"
var makeNextUrl = _.bind(String.prototype.concat, some_url);
var all_data = [];
function getData(resp){