Key:
- C: Control
- S: Shift
| Action | Key |
#!/bin/bash | |
# ----------------------------------------------------------------- | |
# | |
# Runs an interactive Node container. | |
# | |
# ----------------------------------------------------------------- | |
docker run -ti --rm \ | |
--name libwk32_node_dev \ | |
--hostname libwk32_node_dev \ |
#!/bin/bash | |
# ----------------- | |
# | |
# The GRASS Docker image is the main geo processing hub. It contains | |
# GDAL, GRASS, PostgreSQL for interfacing with PostGIS containers, | |
# Python, Node, etc. | |
# | |
# ----------------- |
# How to log in Docker repositories | |
# Log into DockerHub repository (default) | |
# Private repositories at DockerHub must be created manually beforehand | |
# and set to private | |
docker login -u USERNAME -p PASSWORD | |
# Log into GitLab repository | |
docker login -u USERNAME -p PASSWORD <registry URL>/<namespace>/<project>/<image> |
#!/bin/bash | |
# Get all *.tar files from the remote server app folder, without recursing into folders | |
rsync -avh --progress --rsh="ssh -i aws-pem" \ | |
user@host:/path/to/folder/*.tar ~/Desktop | |
# Complete with exclude and mlkctxt |
import * as rx from "rxjs"; | |
/** | |
Define a class with a Subject$. | |
*/ | |
class A { | |
/** |
#!/bin/bash | |
# Color output | |
jq --color-output . file.json | |
# Pretty | |
jq '.' non-pretty.json > pretty.json |
name: sunnsaas_v1-full_backend | |
root: /home/git/sunnsaas/sunnsaas_v1 | |
startup_window: sunnsaas_v1-full_backend/full_backend | |
# This shows a custom layout obtained with PREFIX : list-windows after configuring it with PREFIX : resize-pane | |
# Predefined layouts are: even-horizontal, even-vertical, main-horizontal, main-vertical, and tiled. | |
windows: | |
- sunnsaas_v1-full_backend/full_backend: | |
layout: 935c,317x73,0,0{210x73,0,0[210x36,0,0,0,210x36,0,37,4],106x73,211,0[106x18,211,0,1,106x17,211,19,5,106x18,211,37,2,106x17,211,56,3]} |
# ------------------------- | |
# | |
# Reads JSON from file, process it, and save results | |
# | |
# ------------------------- | |
import json | |
wpBaseFolder = "workpackages/wp-2022-04-13-010-process-heliostat_fields/src" | |
with open("%s/data/000_in/Hel_Eff_param.json" % wpBaseFolder) as f: |
import { Command } from "commander" | |
/** | |
The CLI interface is defined using the commander.js library. | |
*/ | |
// Main object | |
const program = new Command(); |