λ curl http://somewhere/data.json | python -m json.tool
Search dir .
with conetent partten abc
and files with *.php
λ grep --include=\*.php -rnw . -e "abc"
[color] | |
ui = true | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore_global | |
[alias] | |
cm = commit -m | |
co = checkout | |
st = status | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
This document is research for the selection of a communication platform for robot-net.
The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.
Requirements:
# Redireact stdout to date-named file | |
λ echo '123' >> "$(date -d 'yesterday 01:00' '+%Y-%m-%d').log" | |
λ ls | |
2018-09-10.log |
// in app root
cd node_modules && ln -nsf ../ @app
// .gitignore
node_modules/*
!node_modules/@app
// *.js
// Before
tar -vczf targetName.tar --exclude=node_modules --exclude=.git --exclude=./vendor --exclude=./.sass-cache targetName |
/** | |
* After aquired a service account's certfication with right permisstion with spreadsheet | |
*/ | |
import { google } from "googleapis"; // npm i googleapis | |
const serviceAccount = require('service-account-cert.json') | |
const auth = new google.auth.JWT( | |
serviceAccount.client_email, | |
undefined, | |
serviceAccount.private_key, | |
"https://www.googleapis.com/auth/spreadsheets", |