Skip to content

Instantly share code, notes, and snippets.

Daniel Vianna dmvianna

Block or report user

Report or block dmvianna

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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)
@dmvianna
dmvianna / configuration.nix
Last active Feb 16, 2018
configuration.nix
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
@dmvianna
dmvianna / xmonad.hs
Last active Dec 20, 2017
~/.xmonad/xmonad.hs
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"
},
@dmvianna
dmvianna / debJupyterHub.sh
Last active Aug 2, 2016
Installing the necessary tools to start a JupyterHub instance
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
@dmvianna
dmvianna / debnix.sh
Last active Mar 1, 2019
Shell script to install nix in a clean Debian instance -- and some Haskell dev tools
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
You can’t perform that action at this time.