View planet trial cmd
planet data search --item-type PSScene4Band --geom 'planet/test.geojson' --date acquired gt 2018-04-01 --date acquired lt 2018-04-08 --range cloud_cover lt 0.2 > planet/response.json
planet data download --item-type PSScene4Band --geom 'planet/test.geojson' --date acquired gt 2018-04-01 --date acquired lt 2018-04-08 --range cloud_cover lt 0.2 --asset-type 'analytic' --dest 'planet/data'
View config.nix
# run with
# $ nix-env -iA userPackages -f '<nixpkgs>'
# to install packages functionally
with (import <nixpkgs> {});
{
packageOverrides = pkgs: with pkgs; {
userPackages = buildEnv {
inherit ((import <nixpkgs/nixos> {}).config.system.path)
View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
View .xinitrc
#!/usr/bin/env bash
if [ -f $HOME/.Xmodmap ]; then
/usr/bin/xmodmap $HOME/.Xmodmap
fi
urxvt
View .Xmodmap
remove mod1 = Alt_R
add mod3 = Alt_R
View xmonad.hs
import XMonad
main = xmonad $ def
{ terminal = "urxvt"
, normalBorderColor = "#cccccc"
, focusedBorderColor = "#cd8b00"
, modMask = mod3Mask -- depends on ~/.Xmodmap assigning Alt_R to mod3
}
View .eslint.json
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx" : true,
"impliedStrict": true
},
"sourceType": "module"
},
View debJupyterHub.sh
#!/bin/bash
#
# set up JupyterHub in a Debian instance
#
sudo apt-get update
echo 'export TERM=xterm' >> $HOME/.profile
sudo apt-get -y install bzip2 gcc libdigest-sha-perl libgmp-dev make python3 python3-pip python3-venv npm nodejs-legacy libzmq3-dev
View debnix.sh
#!/bin/bash
#
# set up nix in a Debian instance
#
sudo apt-get update
sudo apt-get -y install bzip2 gcc libdigest-sha-perl libgmp-dev libncurses5-dev libz-dev make
curl https://nixos.org/nix/install | sh
View .Xresources
! Xft settings ---------------------------------------------------------------
Xft.dpi: 90 !96
Xft.antialias: true
Xft.rgba: none
Xft.hinting: true
Xft.hintstyle: hintslight
!Xft.autohint: true