Build an image with a dockerfile:
docker build - < Dockerfile
Add a name to the image (after building it):
docker tag <image ID> <image name>:latest
e.g. docker tag dbfee88ee9fd windowsservercore:latest
#Reference: https://www.thomas-krenn.com/en/wiki/Headless_Mode_for_Virtual_Machines_of_VirtualBox | |
#List available VMs: | |
VBoxManage list vms | |
#Run a particular VM in headless mode: | |
$ VBoxHeadless -startvm ubuntu-server | |
#Assuming port forwarding has been set up from 22 to 2222 (in the GUI): | |
ssh -p 2222 <username>@localhost |
Set up the notebook so that it automatically hides the code chunks in the .nb.html
:
output:
html_notebook:
code_folding: hide
Print more table output rows for a particular chunk:
{r, rows.print = 20}
#!/bin/bash | |
# --- Version history --- | |
# mrn: sleep for $freq instead of 3 seconds (forked) | |
# 0.4: added variable to store file path, and $2 for base file name | |
# added variable to store desired reporting interval | |
# 0.3: added $1 to send in process ID at run time. | |
# 0.2: switched to $SECONDS for the loop. works. | |
# 0.1: didn't work well at all. | |
# --- Version history --- |
# push | |
push <- function(x, values) (assign(as.character(substitute(x)), c(x, values), parent.frame())) | |
# pop | |
pop <- function(x) (assign(as.character(substitute(x)), x[-length(x)], parent.frame())) | |
# example | |
z <- 1:3 | |
push(z, 4) | |
z |
#!/bin/sh | |
# Get MacOSX idletime. Shamelessly stolen from http://bit.ly/yVhc5H | |
/usr/sbin/ioreg -c IOHIDSystem | /usr/bin/awk '/HIDIdleTime/ {print int($NF/1000000000); exit}' |
refer to: https://stackoverflow.com/questions/39371772/how-to-install-anaconda-on-raspberry-pi-3-model-b
{USER}: pi
Install Miniconda 3:
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-armv7l.sh
sudo md5sum Miniconda3-latest-Linux-armv7l.sh # (optional) check md5
sudo /bin/bash Miniconda3-latest-Linux-armv7l.sh # -> change default directory to /home/pi/miniconda3
Goal: To put all of my infrquently used setups stuff in one place. Tested on: A Pi2 B (arm6l) with a fresh Raspbian Buster OS
wpa_supplicant.conf
to the /boot
partition.
Source: https://www.raspberrypi.org/documentation/configuration/wireless/headless.mdyum install httpd yum-utils createrepo |
The Leaflet JS mapping library has lots of plugins available. The Leaflet package for R provides direct support for some, but far from all, of these plugins, by providing R functions for invoking the plugins.
If you as an R user find yourself wanting to use a Leaflet plugin that isn't directly supported in the R package, you can use the technique shown here to load the plugin yourself and invoke it using JS code.