Repair manual: http://topics-cdn.dell.com/pdf/xps-15-9560-laptop_setup%20guide_en-us.pdf
I have:
Product Name: XPS 15 9560
System BIOS: 1.0.3
Service Tag: 3862XF2
Repair manual: http://topics-cdn.dell.com/pdf/xps-15-9560-laptop_setup%20guide_en-us.pdf
I have:
Product Name: XPS 15 9560
System BIOS: 1.0.3
Service Tag: 3862XF2
services.openvpn.servers.example = { | |
config = someconfighere; | |
autoStart = true; | |
up = '' | |
echo nameserver $nameserver | ${pkgs.openresolv}/bin/resolvconf -a $dev | |
''; | |
down = '' | |
echo nameserver $nameserver | ${pkgs.openresolv}/bin/resolvconf -d $dev | |
''; | |
}; |
# requirements.txt | |
gevent==1.2.0 | |
# compile run | |
pypi2nix -v \ | |
-V 2.7 \ | |
-r requirements.txt | |
pypi2nix v1.8.1 running ... |
$ cat shell.nix | |
let channels = rec { | |
pkgs = import <nixpkgs> {}; | |
pkgs-unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {}; | |
}; | |
in with channels; | |
let dependencies = rec { | |
_python = pkgs.python27Full; | |
_pip = pkgs.python27Packages.pip; |
{ config, pkgs, ... }: | |
let channels = rec { | |
pkgs-unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) { config.allowUnfree = true; }; | |
pkgs-master = import (fetchTarball https://github.com/NixOs/nixpkgs/archive/master.tar.gz) { | |
config.allowUnfree = true; | |
overlays = [ | |
(self: super: { | |
firefox-master = super.firefox.override { | |
browserName = "firefox"; |
{ config, pkgs, ... }: | |
let channels = rec { | |
pkgs-unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) { config.allowUnfree = true; }; | |
pkgs-master = import (fetchTarball https://github.com/NixOs/nixpkgs/archive/master.tar.gz) { config.allowUnfree = true; }; | |
}; | |
in with channels; | |
... |
import Data.Char | |
import Data.List | |
import Data.Map (Map) | |
import qualified Data.Map.Strict as Map | |
{-| | |
--------------------------- | |
| 1 | 2 ABC | 3 DEF | | |
___________________________ | |
| 4 GHI | 5 JKL | 6 MNO | |
let channels = rec { | |
pkgs = import <nixpkgs> {}; | |
pkgs-unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {}; | |
}; | |
in with channels; | |
let dependencies = rec { | |
_pip = pkgs.python36Packages.pip; | |
_virtualenv = pkgs.python36Packages.virtualenv; | |
_ipython = pkgs.python36Packages.ipython; |
## A _very_ naive comparison of set([list of numbers]) vs {list of numbers} | |
# set([list of numbers]) vs {list of numbers} results in ~25% performance improvements on simple lists for {list of numbers}: | |
==== | |
> python -m timeit "{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21}" | |
1000000 loops, best of 3: 0.911 usec per loop | |
> python -m timeit "{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21}" | |
1000000 loops, best of 3: 0.901 usec per loop | |
> python -m timeit "{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21}" | |
1000000 loops, best of 3: 0.924 usec per loop |