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}
# 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/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 --- |
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}
#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 |
advancement grant <targets> everything | |
advancement grant <targets> from <advancement> | |
advancement grant <targets> only <advancement> | |
advancement grant <targets> only <advancement> <criterion> | |
advancement grant <targets> through <advancement> | |
advancement grant <targets> until <advancement> | |
advancement revoke <targets> everything | |
advancement revoke <targets> from <advancement> | |
advancement revoke <targets> only <advancement> | |
advancement revoke <targets> only <advancement> <criterion> |
image: php:5.6 | |
stages: | |
- test | |
- build | |
- deploy | |
test: | |
stage: test | |
script: echo "Running tests" |
// ==UserScript== | |
// @name Strip autocomplete attributes | |
// @namespace david0 | |
// @version 0.1 | |
// @description This plugin gives the control about your passwords back to your browser and allows the browser to store every password. | |
// @include http://* | |
// @include https://* | |
// @copyright 2014, David | |
// ==/UserScript== | |
#Setting Up AWS CodeCommit (Mac)
For all possibilities, amazon has guides here: http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up.html
We chose to use HTTPS here
If git asks you to manually enter username or password it is incorrectly configured!
Similar to RSA, the AWS CLI credential-helper should be using your keys to create and send a dynamic password that updates every 15 minutes.
#!/usr/bin/env python | |
from Foundation import NSUserNotification | |
from Foundation import NSUserNotificationCenter | |
from Foundation import NSUserNotificationDefaultSoundName | |
from optparse import OptionParser | |
def main(): | |
parser = OptionParser(usage='%prog -t TITLE -m MESSAGE') |