Books
- Doing Good Better — William MacAskill
- 80,000 Hours — Benjamin Todd
- The Life You Can Save — Peter Singer
- Poor Economics — Abhijit V. Banerjee & Esther Duflo
Links
Books
Links
| import os | |
| import requests | |
| import base64 | |
| # Set your GitHub API token | |
| GITHUB_TOKEN = "GITHUB_TOKEN" | |
| # Set the Ubuntu version you want to replace | |
| old_ubuntu_versions = ["ubuntu-18.04", "ubuntu-20.04"] |
| import base64 | |
| import datetime | |
| import sys | |
| import time | |
| from hashlib import md5 | |
| import requests | |
| from django.conf import settings | |
| import Crypto.Hash.SHA256 as SHA256 |
| ``` | |
| sudo apt-get purge ubuntu-report | |
| sudo apt-get purge popularity-contest | |
| sudo service apport stop | |
| sudo nano /etc/default/apport | |
| sudo apt-get purge apport |
| /* Useful celery config. | |
| app = Celery('tasks', | |
| broker='redis://localhost:6379', | |
| backend='redis://localhost:6379') | |
| app.conf.update( | |
| CELERY_TASK_RESULT_EXPIRES=3600, | |
| CELERY_QUEUES=( | |
| Queue('default', routing_key='tasks.#'), |
| .loader { | |
| background: linear-gradient(to right, #2f54eb 10%, rgba(255, 255, 255, 0) 80%); | |
| /* Show only 10px from the border */ | |
| -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#fff 0); | |
| width: 150px; | |
| height: 150px; | |
| border-radius: 50%; | |
| position: fixed; |
| { | |
| "editor.fontFamily": "Fira Code", | |
| "editor.fontLigatures": true, | |
| "workbench.editor.highlightModifiedTabs": true, | |
| "files.autoSave": "afterDelay", | |
| "explorer.sortOrder": "type", | |
| "editor.cursorStyle": "block", | |
| "editor.cursorBlinking": "smooth", | |
| "files.trimFinalNewlines": true, | |
| "editor.acceptSuggestionOnEnter": "off", |
| #!/usr/bin/env python | |
| """ | |
| coding=utf-8 | |
| Python script template | |
| """ | |
| import logging | |
| logging.basicConfig(level=logging.DEBUG) |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.