Skip to content

Instantly share code, notes, and snippets.

@djsegal
djsegal / 04_sidekiq.config
Last active February 24, 2016 01:59
Consolidated code snippet from seg.al/blog/sidekiq
#.ebextensions/04_sidekiq.config
commands:
create_post_dir:
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
#!/usr/bin/env bash
# Generates gource video out of multiple repositories.
# First, get a local branch/clone of each repository.
# Then, pass the repositories as command line arguments.
#
# Example:
# $ multi-gource.sh /path/to/repo1 /path/to/repo2
outfile="gource.mp4"
.CodeMirror-line {
padding-left: 24px !important;
}
#wl-navbar {
display: none;
}
#wl_main_container {
top: 0;
@djsegal
djsegal / install_jupyter_notebook_on_aws.md
Created October 14, 2017 00:44 — forked from giantryansaul/install_jupyter_notebook_on_aws.md
Run Jupyter from an amazon free tier AWS server

Installing Jupyter notebook to AWS

This is an early draft of this guide, which currently does not include any screenshots. I may be making a lot of assumptions about what you do or do not know in this guide and so I welcome any constructive criticism to help make it more useful. Please feel free to fork this guide and annotate it where it does not work, I would welcome any pull requests to improve this documentation.

Setup amazon linux server (free tier)

  • From Amazon's EC2 page, go to Launch Instance
  • Choose an Amazon Linux 64-bit server and continue
  • Select t2.micro (this is the free tier)
  • Continue to the Add Storage page and adjust this up to 30GB if you're so inclined (default is 8GB, which is plenty)
  • Tag your instance with a name like "notebook"
@djsegal
djsegal / Boot_Solo.jl
Last active December 18, 2017 00:20
Boot Load Performance
using BenchmarkTools
cur_count = 10
cur_time = 0.0
for cur_index in 1:cur_count
tic()
map(rm, Base.find_all_in_cache_path(:Boot)) ; reload("Boot") ;
cur_time += toc()
end
[
"about",
"about-u",
"about-us",
"abouts",
"abuse",
"abuses",
"access",
"accesses",
"account",
Playlist Daft Punk Bonobo Hans Zimmer ... Billie Eilish
Coding 💻 13 6 2 ... 0
Pop Programming 0 0 0 ... 3
... ... ... ... ... ...
Night Coding 1 2 0 ... 0
id zipcode price month year accommodates bathrooms bedrooms beds geometry is_brooklyn
38553206 10002 160 11 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38553206 10002 160 10 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38553206 10002 160 9 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38553206 10002 160 8 2019 4 1 1 2 POINT (-73.99462 40.71355) False
38529246 10036 450 11 2019 6 1 2 2 POINT (-73.98781 40.7588) False
38529246 10036 450 10 2019 6 1 2 2 POINT (-73.98781 40.7588) False
38529246 10036 450 9 2019 6 1 2 2 POINT (-73.98781 40.7588) False