Skip to content

Instantly share code, notes, and snippets.

@olifante
olifante / cms-api-quick-start.markdown
Created February 28, 2023 22:48
CMS API Quick Start
@olifante
olifante / export-netflix-ratings.js
Last active August 14, 2022 18:26
Export your Netflix ratings as a JSON file
// When viewing your Netflix activity at https://www.netflix.com/MoviesYouveSeen
// there's a "Download All" button at the bottom that allows you to export
// your entire viewing history as a CSV file.
// Unfortunately there is no equivalent button to export your ratings.
// This short JavaScript fragment lets you export your ratings as a JSON file.
// Just navigate to the ratings page, open your browser's Developer Tools,
// select the Console tab and paste this fragment. After it has run, you should
// be able to copy the output and save it into a file with the ".json"
// extension.
// This short JavaScript fragment lets you export your Netflix list as a JSON
// file. Just navigate to the https://www.netflix.com/browse/my-list page,
// open your browser's Developer Tools, select the Console tab and paste this
// fragment. After it has run, you should be able to copy the output and save it
// into a file with the ".json" extension.
let movies = {};
document
.querySelectorAll(".slider-item .slider-refocus")
@olifante
olifante / elektron model-samples factory sounds by type.json
Last active April 22, 2022 21:58
elektron model:samples factory sounds.md
{
"bd": [
"/factory/drums/brkbts/bd barrel",
"/factory/drums/chilled/bd focus",
"/factory/drums/colder/bd foley",
"/factory/drums/discoed/bd baum 1",
"/factory/drums/downer/bd cool 1",
"/factory/drums/energy/bd carry",
"/factory/drums/funkier/bd round",
"/factory/drums/future/bd cellar",
@olifante
olifante / crypto-wrong-answers.md
Created December 8, 2021 16:23 — forked from paragonie-scott/crypto-wrong-answers.md
An Open Letter to Developers Everywhere (About Cryptography)
InfoQ have recently published a video of a very interesting interview with Rich Hickey, creator of the Clojure programming language. Conveniently, they also offer a transcript of the entire interview, but as is costumary with their transcripts, it is placed inside a very small text field, making for very awkward reading. Here's a copy of that transcript, extracted from http://www.infoq.com/interviews/hickey-clojure
Q: We are here at QCon London 2009, with Rich Hickey. Rich, who are you?
A: I'm the author of Clojure. I'm an independent developer, contractor, consultant and,
basically, a practitioner. I'm not a researcher.
Q: What brought you to create a Lisp? Do you go out in the morning and say "Hey, I'm bored!
Let's create the Lisp!"? What's the intention behind it?
@olifante
olifante / .bash_profile
Last active January 16, 2018 14:52 — forked from marioBonales/.bashrc
Default .bashrc for macOS
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
@olifante
olifante / .bashrc
Created January 16, 2018 14:44 — forked from marioBonales/.bashrc
Default .bashrc for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@olifante
olifante / gist:222879
Created October 31, 2009 01:46
Interview with Joe Armstrong & Simon Peyton Jones

extracted from http://www.infoq.com/interviews/armstrong-peyton-jones-erlang-haskell

I'm Sadek Drobi. I'm here at Erlang Factory with Simon Peyton Jones and Joe Armstrong. Can you please tell us about yourselves and what you've been busy with lately?

JA: I'm Joe Armstrong and I'm at Erlang Factory. I've just been to a very nice talk where Simon has told us about the birth of Haskell and Erlang and how they point along parallel routes solving the same problems. I think we can talk a bit about that, because in your lecture you said things about "We tried that

@olifante
olifante / filter_through_command.py
Created February 25, 2012 20:20 — forked from jefftriplett/filter_through_command.py
Sublime Text 2: "Filter Through Command" plugin
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## based on http://pastie.org/private/bclbdgxzbkb1gs2jfqzehg
import sublime
import sublime_plugin
import subprocess
class PromptRunExternalCommand(sublime_plugin.WindowCommand):