Skip to content

Instantly share code, notes, and snippets.

View carlsednaoui's full-sized avatar

Carl Sednaoui carlsednaoui

View GitHub Profile
chrismdp /
Last active July 27, 2023 02:35
Uploading to S3 in 18 lines of Shell (used to upload builds for
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (
# Based on a modified script from here:
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
nocturnalgeek / MailinatorAliases
Last active November 22, 2023 21:44
A list of alternate domains that point to
View MailinatorAliases

frequently asked question:

Q: I would like to ask your advice about preparing for a role in data science


my advice would be to put together a portfolio of projects, on GitHub, evidencing that you know how to

dhh /
Last active August 30, 2023 09:33
Basecamp is under network attack (DDoS)

Basecamp was under network attack

The attack detailed below has stopped (for the time being) and almost all network access for almost all customers have been restored. We're keeping this post and the timeline intact for posterity. Unless the attack resumes, we'll post a complete postmortem within 48 hours (so before Wednesday, March 26 at 11:00am central time).

Criminals have laid siege to our networks using what's called a distributed denial-of-service attack (DDoS) starting at 8:46 central time, March 24 2014. The goal is to make Basecamp, and the rest of our services, unavailable by flooding the network with bogus requests, so nothing legitimate can come through. This attack was launched together with a blackmail attempt that sought to have us pay to avoid this assault.

Note that this attack targets the network link between our servers and the internet. All the data is safe and sound, but nobody is able to get to it as long as the attack is being successfully executed. This is like a bunch of people

debasishg / gist:8172796
Last active November 30, 2023 06:53
A collection of links for streaming algorithms and data structures
View gist:8172796

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](
chengyin / linkedout.js
Last active July 11, 2021 15:23
Unsubscribe all LinkedIn email in "one click". For an easier to use version, you can check out the bookmarklet:
View linkedout.js
// 1. Go to page
// 2. You may need to login
// 3. Open JS console
// ([How to?](
// 4. Copy the following code in and execute
// 5. No more emails
// Bookmarklet version:
chrisjlee / drupal-views-share-global-text-field
Last active August 29, 2023 18:23
share url's for facebook, twitter, pinterest with just get variables
View drupal-views-share-global-text-field
<li class="share-text">Share this>/li>
<li class="share-tw"><a href="[title]"><span></span></a></li>
<li class="share-fb"><a href="[nid]&p=[title]"><span></span></a></li>
<li class="share-pinterest"><a href="[nid]&description=[title]"><span></span></a></li>
bradmontgomery /
Last active August 15, 2022 19:11
playing with python's `collections.Counter`
Use a Counter to find the most common words in "The Wonderful Wizard of Oz" by
L. Frank Baum.
Available in (mostly) plain text at:
Note: This code also counts the words in the header, so it's not a *realistic*
applicaton, but more of a demonstration of python's Counter.
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
Difference between Service, Factory and Provider in AngularJS
View gist:3639232
// Source:!topic/angular/hVrkvaHGOfc
// jsFiddle:
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"