Discover gists
<svg width="300" height="300" viewBox="0 0 300 300"> | |
<defs> | |
<filter id="paperEffect"> | |
<feTurbulence | |
type="fractalNoise" | |
baseFrequency="0.04" | |
numOctaves="5" | |
result="noise" | |
/> | |
<feDiffuseLighting |
- How to change the background on Firefox to a dark one on new tab / loading screen ?
- Type
about:config
in the URL bar - Search
toolkit.legacyUserProfileCustomizations.stylesheets
and double-click the field to set it totrue
- Type
about:support
in the URL bar - Look for
Profile folder
field and click on the open button next to it.
This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).
The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.
Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"database/sql/driver" | |
"fmt" | |
"github.com/jmoiron/sqlx" | |
_ "github.com/lib/pq" | |
"log" |
{ config, lib, pkgs, ...}: | |
with lib; | |
let | |
cfg = config.sec.macchanger; | |
in { | |
options = { | |
sec.macchanger = { | |
enable = mkOption { |
原文:程序人生
上文谈到了像读书一样阅读源码的重要性,今天谈谈如何阅读一份代码。我所谓的一份代码,其范围可能从几千行到数万行,有时甚至可多达数十万行。这些代码作为一个有机体,共同完成某些重要的功能。比如说几个著名的 full fledged web framework,祖师爷 rails,师叔 django 和小师妹 phoenix:
import time | |
import requests | |
import logging | |
import boto3 | |
from botocore.config import Config | |
def send_price_data_to_timestream(write_client): | |
base_url = "https://min-api.cryptocompare.com/data" | |
symbols = "BTC,ETH,REP,DASH" |