Skip to content

Instantly share code, notes, and snippets.

View dmitrinesterenko's full-sized avatar

Dmitri Nesterenko dmitrinesterenko

View GitHub Profile
Basics:
* T&C means actual signed contract that solidifies the business that you do with another entitity.
Human to entity relationship.
Levels of protection:
* Wrappers and abstractions
* Legal addendums that solidify T&C
Legal rights around:
* cancellation
* continuation
* changes in business
@dmitrinesterenko
dmitrinesterenko / Anomaly detection
Last active June 8, 2016 00:14
Traffic anomaly detection.
Anonymized & aggregated mobile cell data is used for traffic anomaly detection. When we say traffic we mean actual car, and foot traffic.
Although it's very similar to network traffic.
Analysis of new construction and how it will impact the existing city.
Test in Dallas, TX.
Establish what is normal, not Gaussian normal, but really normal. Look at a histogram of what had been the pattern.
Tried to develop a model that is robust, efficient, online and unsupervised.
Lunch conversations
docker docker stuff stuff docker docker docker
met two Andrews and a Michael from crossfit and living social, they are not using Elixir in production
Dockyard CEO on creating packages
Document your packages with Markdown
use typespecs: @spec to provide information about the "type" that your functions expect
@spec (doit: boolean) : boolean
@dmitrinesterenko
dmitrinesterenko / notes.md
Last active March 11, 2016 19:32
Facebook Messenger Chat
@dmitrinesterenko
dmitrinesterenko / docker_kill.sh
Last active December 5, 2015 23:19
Docker Kill Old Containers
> docker ps -q # will print all existing containers in reverse chronological order.
# Pick one after which you want to remove all containers and use it in the next command.
385cebfa43b2
af769cf18cef
2ba61ccb9327
c082932195b3
> docker rm $(docker ps -aq --before=c082932195b3) # where the before container ID is the container after which you want to delete the rest.
#Erlang format float with 2 decimal points
:io.format("~4.2f~n", [5.234])
#Elixir environment variables
System.get_env
#Elixir one environment variable
System.get_env("USER")
#Elixir get functions for a module
File.__info__(:functions)
#Elixir get info for a file
File.lstat("media")
#https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
@dmitrinesterenko
dmitrinesterenko / do_stuff_to_files
Created February 10, 2015 16:03
Do something to files that are x days old
find /path/to/folder -mtime +2 -exec rm -f {} \;
find /path/to/folder -mtime +2 -exec custom_command.sh {} \;
@dmitrinesterenko
dmitrinesterenko / execute_but_dont_write.sh
Created December 14, 2014 02:02
Set a file to be executable by all but write/read only by owner
chmod 711 file
@dmitrinesterenko
dmitrinesterenko / git_history_since_days.sh
Last active August 29, 2015 14:11
Check git history for a current repo for the last x days
git log --since `date -d "-30 day" "+%F"` --pretty=medium