The file page.st
goes in the templates/
directory in the Gitit wiki home directory. You'll put the Ace JavaScript and CSS files in static/
.
sample codebook.
It's very similar to a Statistical Analysis Plan, actually.
Setup, there is a dogwalking business. It wants to analyze its work.
Raw data is: name of dog, address of owner, time walked, date walked, size of dog (small, medium, or large), health of dog (well or sick) on that date and time, comments, and pay.
The business wants to assign ID# to the dogs, and codewords to the address to make this data anonymous. There isn't anything to do to the comments--since free text is all over the place.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download [terminal emulator] from playstore. | |
2. Open [terminal emulator] and execute the following: `am start --user 0 -n com.android.settings/.SecuritySettings`. This will launch the Security Settings which Philips has hidden. | |
3. Scroll down and: Enable unknown sources. | |
4. Profit. | |
<!-- references --> | |
[terminal emulator]: https://play.google.com/store/apps/details?id=jackpal.androidterm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import 'languages/css'; | |
atom-text-editor, | |
:host { | |
background-color: #282c34; | |
color: #abb2bf; | |
} | |
atom-text-editor .line.cursor-line, | |
:host .line.cursor-line { | |
background-color: rgba(153, 187, 255, 0.04); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
## update system | |
sudo dnf upgrade --assumeyes --refresh | |
## fstrim (on luks, no lvm) | |
# 1. add 'rd.luks.options=discard' to /etc/default/grub (at the end of `GRUB_CMDLINE_LINUX="... rd.luks.options=discard"`) | |
# 2. run 'sudo grub2-mkconfig -o /boot/grub2/grub.cfg' | |
# 3. add `luks,allow-discards` too all encrypted volumes in /etc/crypttab (at the end of line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_daemonize() | |
{ #daemonize an external command | |
#http://blog.n01se.net/blog-n01se-net-p-145.html | |
[ -z "${1}" ] && return 1 | |
( # 1. fork, to guarantee the child is not a process | |
# group leader, necessary for setsid) and have the | |
# parent exit (to allow control to return to the shell) | |
# 2. redirect stdin/stdout/stderr before running child | |
[ -t 0 ] && exec </dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### | |
## Updated and combo benchmark | |
## Including : | |
## R-benchmark-25.R from Simon Urbanek | |
## Revolution Analytics benchmarks : http://www.revolutionanalytics.com/revolution-revor-enterprise-benchmark-details | |
## Extra benchmarks (loess and eigen) | |
## LAPACK benchmarks (QR,eigen,cholesky,svd,prcomp,balance,kappa,norm,solve) | |
## TODO: | |
## add extra functions like dist() and cluster() - also provided by gputools | |
## separate the gpu from cpu benchmarks, and the analysis from the benchmark code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is sp, the command-line Spotify controller. It talks to a running | |
# instance of the Spotify Linux client over dbus, providing an interface not | |
# unlike mpc. | |
# | |
# Put differently, it allows you to control Spotify without leaving the comfort | |
# of your command line, and without a custom client or Premium subscription. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
MATTERMOST_API="FILL-IN-MATTERMOST-ENDPOINT" | |
MATTERMOST_TOKEN="FILL-IN-INTEGRATION-TOKEN" | |
MATTERMOST_USERNAME="AN-USERNAME" | |
MATTERMOST_ICON="AN-URL-TO-AN-IMAGE" | |
die() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOSTS="host1 host2 host3 host4" | |
RETENTION_TIME=14 | |
echo "$(date) - Log Cleaner - $RETENTION_TIME days - $HOSTS" >> /var/log/hadoop_log_cleaner.log | |
for host in $HOSTS | |
do | |
ssh root@$host << ENDSSH |