Short Link : https://mzl.la/mozgoals
The objective of this exercise is to refine the key goals from onboarding and areas of improvement over your next 4 months as a Mozilla Fellow.
#!/usr/bin/Rscript | |
# | |
#Copyright (c) 2012 Bruno Vieira [http://bmpvieira.com] | |
#License: MIT | |
#Description: Simple R script to convert Long/Lat to UTM format | |
require("PBSmapping") || install.packages("PBSmapping", dependencies=TRUE) && require("PBSmapping") | |
input <- commandArgs(TRUE)[1] | |
coord <- read.csv(input, header = TRUE) | |
attr(coord, "projection") <- "LL" |
From Ubuntu Live USB | |
sudo apt update | |
sudo apt install -y git curl zfsutils-linux | |
bash <(curl https://nixos.org/nix/install) | |
. $HOME/.nix-profile/etc/profile.d/nix.sh # …or open a fresh shell | |
nix-channel --add https://nixos.org/channels/nixos-unstable nixpkgs | |
nix-channel --update |
# add sound support | |
hardware.pulseaudio.enable = true; | |
# to allow control of the screen brightness | |
hardware.brightnessctl.enable = true; | |
extraGroups = [ | |
"wheel" | |
"input" | |
"tty" |
# you'll need: | |
# - bionode-ncbi (https://github.com/bionode/bionode-ncbi) | |
# - jq (https://github.com/stedolan/jq) | |
# count the number of retracted papers | |
bionode-ncbi search pubmed "\"Retracted Publication\"" \ | |
| jq -c 'select(.pubtype[] | inside("Retracted Publication"))' | |
| wc -l | |
# get DOIs for all the retracted papers |
var through = require('through2') | |
var pumpify = require('pumpify') | |
var request = require('request') | |
var getProjects = function (cb) { | |
var stream = pumpify.obj( | |
ex(), | |
sendRequest() // Returns a JSON object | |
) | |
return stream |
Short Link : https://mzl.la/mozgoals
The objective of this exercise is to refine the key goals from onboarding and areas of improvement over your next 4 months as a Mozilla Fellow.
#Copyright (c) 2012 Bruno Vieira [http://bmpvieira.com] | |
#License: CC BY | |
#Short PCA example with FactoMineR and ggplot2 in R | |
library(FactoMineR) | |
library(ggplot2) | |
data = read.table("data.tsv", head=T, row.names=1) | |
pca = PCA(data[,2:ncol(data)], scale.unit=T, graph=F) | |
PC1 = pca$ind$coord[,1] | |
PC2 = pca$ind$coord[,2] |
Setting up Crashplan on FreeNAS Goals
Be able to backup from the FreeNAS box to offsite Crashplan Central. Allow incoming Crashplan backups from other devices. Install the CrashPlan plugin
Install the plugin into a jail: Click on Plugins, then the Available tab, the "crashplan" line and finally the Install button. Once the installation completes, on the left tree, expand Plugins and click on CrashPlan. Accept the Java EULA. Start the Crashplan plugin: Plugins->Installed and make sure the Crashplan plugin is in the "ON" position.
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/
directory. Let's call this compile.sh
for our purposes, but for your project it might be npm build
or gulp make-docs
or anything similar.
The out/
directory should contain everything you want deployed to gh-pages
. That almost always includes an index.html
.