Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Eleonore9
Eleonore9 / README.md
Last active July 25, 2018 22:21
Sankey diagram D3

Threat modelling for online privacy

Threat modelling

Generalities

https://www.wikiwand.com/en/Threat_model

  • set of methododologies to identify theats from a potential attacker's point of view
  • used in tech as a way to identify potential threats to a software service/platform
  • used in every day life to plam your commute for example (identify what could go wrong)

Keybase proof

I hereby claim:

  • I am eleonore9 on github.
  • I am eleonore (https://keybase.io/eleonore) on keybase.
  • I have a public key whose fingerprint is 6BD6 B4AD F622 66BA 4BC9 9222 E88E 4FF6 32CD 0EA7

To claim this, I am signing this object:

@Eleonore9
Eleonore9 / hylang-source.md
Last active November 27, 2016 20:00 — forked from Foxboron/hylang-source
Hylang sources
@Eleonore9
Eleonore9 / datasets-in-clojure.md
Created May 23, 2016 13:22
core.matrix clojure datasets

core.matrix datasets have 3 attributes than can be accessed by treating the dataset as a map.

Let's take this example dataset:

(def dataset-test
    (clojure.core.matrix.dataset/dataset [{:a 1 :b 11}
                                          {:a 2 :b 12}
                                          {:a 3 :b 13}]))
@Eleonore9
Eleonore9 / cedar-14-error.log
Created April 3, 2016 22:16
[heroku] Error when upgrading prod app form cedar to cedar-14 (no error on the staging app)
remote: -----> Python app detected
remote: ERROR:root:code for hash md5 was not found.
remote: Traceback (most recent call last):
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 139, in <module>
remote: globals()[__func_name] = __get_hash(__func_name)
remote: File "/app/.heroku/python/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
remote: raise ValueError('unsupported hash type ' + name)
remote: ValueError: unsupported hash type md5
remote: ERROR:root:code for hash sha1 was not found.
remote: Traceback (most recent call last):
@Eleonore9
Eleonore9 / multimethods.md
Last active January 29, 2016 10:52
Clojure thoughts and tips

Multimethods

-> an implementation of polymorphism in Clojure

What Clojure doc says:

A Clojure multimethod is a combination of a dispatching function, and one or more methods. When a multimethod is defined, using defmulti, a dispatching function must be supplied. This function will be applied to the arguments to the multimethod in order to produce a dispatching value.

@Eleonore9
Eleonore9 / api-get-request.md
Last active January 26, 2016 13:08
Example of GET request in Python

Basic GET request in Python:

Replace username and password by your own credentials. Replace url by the url of your API of interest.

import sys
import urlparse
import requests
@Eleonore9
Eleonore9 / compvsjuxt.clj
Created November 5, 2015 16:19
Clojure thoughts and tips
;; comp vs juxt
;; they both take in function(s) as arguments and associate then in a way
;; juxt (http://clojuredocs.org/clojure.core/juxt) returns a function that is a juxtaposition of other functions:
(map #((juxt name str/capitalize) %) [:name :location :unit]) ;;=> (["name" ":name"] ["location" ":location"] ["unit" ":unit"])
;; Let's have a pick at the source code:
(defn juxt
"Takes a set of functions and returns a fn that is the juxtaposition
@Eleonore9
Eleonore9 / resources-tech-talks.md
Last active October 28, 2015 17:53
Resources for beginner-ish programmers