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
// 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 / 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.
@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)
@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
var warning = function () {
console.log("I didn't understand you, please play again.")
}
var win = function () {
console.log("You win!!!!")
}
var lose = function () {
console.log("You lose :-(")
}
var fight = function () {

Upgrade Django from 1.1 to 1.5.1. This highlights some of the issues that one may encounter when updating Django. It's not possible to cover every case, but this should provide a good general starting point.

Change to DATABASES variable in settings.py.

Django now supports multiple databases and changes are needed to how the database connections are defined.

  • Changed in Django 1.2
  • Change Required by Django 1.4
  • Source:

Keybase proof

I hereby claim:

  • I am olifante on github.
  • I am olifante (https://keybase.io/olifante) on keybase.
  • I have a public key whose fingerprint is 4A3A 7EC3 825E A966 8011 8FD4 DF27 FD81 9ADF E21B

To claim this, I am signing this object: