$ sudo apt-get install unattended-upgrades $ sudo nano /etc/apt/apt.conf.d/10periodic| # Refer to `https://j-towns.github.io/2017/06/12/A-new-trick.html` for math details. | |
| import torch | |
| from torch import nn | |
| from torch import autograd | |
| def get_jvp(net, x, v): | |
| ''' | |
| Generate jacobian vector product. Requires x.requires_grad() | |
| and v.requires_grad(). | |
| Args: |
| diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c | |
| index e331e212f5fc..ab01f191bce8 100644 | |
| --- a/drivers/bluetooth/btusb.c | |
| +++ b/drivers/bluetooth/btusb.c | |
| @@ -366,6 +366,9 @@ static const struct usb_device_id blacklist_table[] = { | |
| { USB_DEVICE(0x13d3, 0x3461), .driver_info = BTUSB_REALTEK }, | |
| { USB_DEVICE(0x13d3, 0x3462), .driver_info = BTUSB_REALTEK }, | |
| + /* Additional Realtek 8822BE Bluetooth devices */ | |
| + { USB_DEVICE(0x0b05, 0x185c), .driver_info = BTUSB_REALTEK }, |
| {0: 'tench, Tinca tinca', | |
| 1: 'goldfish, Carassius auratus', | |
| 2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
| 3: 'tiger shark, Galeocerdo cuvieri', | |
| 4: 'hammerhead, hammerhead shark', | |
| 5: 'electric ray, crampfish, numbfish, torpedo', | |
| 6: 'stingray', | |
| 7: 'cock', | |
| 8: 'hen', | |
| 9: 'ostrich, Struthio camelus', |
| [General] | |
| loglevel = notify | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, ::ffff:0:0:0:0/1, ::ffff:128:0:0:0/1 | |
| bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
| # dns-server = 119.29.29.29,223.5.5.5,114.114.115.115 | |
| # external-controller-access = [email protected]:6155 | |
| # ipv6 = true | |
| // REMEMBER TO CHANGE THE external-controller-access' PASSWORD |
This font is manually patched with Fontforge. It includes the glyphs from DejaVu Sans Mono for Powerline.
I recommend DirectWrite-patched VIM builds. I'm using KaoriYa's build (http://www.kaoriya.net/software/vim/)
Add the following lines to your .vimrc/_vimrc:
| #!/usr/bin/env python | |
| import sys | |
| import urllib | |
| import urlparse | |
| import base64 | |
| import mimetypes | |
| import cgi | |
| from os import path |
| #!/usr/bin/env python | |
| #-*-coding:utf8-*- | |
| """ | |
| vesion2.0 | |
| 这个脚本的作用是通过输入某首歌页面的url,来实现这首歌的下载,保存到当前工作目录下。 | |
| 目前可以实现高音质音乐的下载,无须账号登陆。 | |
| 比如,When I'm Sixty-Four的页面的url是 http://www.xiami.com/song/1003908 | |
| download_hq_music('http://www.xiami.com/song/1003908'),将会实现When I'm Sixty-Four的320k版本下载 |
| # -*- coding: utf-8 -*- | |
| #!/usr/bin/env python | |
| import os | |
| import sae | |
| import web | |
| import json | |
| import urllib2 | |
| urls=('/','Index','/xiami/(.+)','Xiami') |