Skip to content

Instantly share code, notes, and snippets.

View thomasfedb's full-sized avatar

Thomas Drake-Brockman thomasfedb

View GitHub Profile
admin@raspberrypi:~ $ wget https://raw.githubusercontent.com/dokku/dokku/v0.27.4/bootstrap.sh;
sudo DOKKU_TAG=v0.27.4 bash bootstrap.sh
--2022-05-17 13:53:34-- https://raw.githubusercontent.com/dokku/dokku/v0.27.4/bootstrap.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response...
200 OK
Length: 9585 (9.4K) [text/plain]
Saving to: ‘bootstrap.sh’
suppressWarnings({
library(data.table)
library(magrittr)
library(ggplot2)
library(zoo, warn.conflicts = F)
})
---
title: "Test"
output:
pdf_document: default
html_notebook: default
---
```{r setup, include = F}
knitr::opts_chunk$set(echo = F, warning = F, message = F)
```
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
# Activate the gem you are reporting the issue against.
def bsearch(kmin, kmax, n, tmax, dur):
# Base
if kmin == kmax:
return kmin
# Recurse
middle = (kmin + kmax) // 2
if simulate(middle, n, tmax, dur):
return bsearch(kmin, middle, n, tmax, dur)
<%= form_for @record do |f| %>
<div>
<%= f.label :name %>
<%= f.text_field :name %>
</div>
<div>
<%= f.label :age %>
<%= f.text_field :age %>
</div>
\null\vfill
\includegraphics[
page=1,
width=\textwidth,
keepaspectratio
]{prelimsem}
\null\vspace{1cm}
\rule{\textwidth}{1px}
\null\vspace{1cm}
\includegraphics[
root@metis:~# zfs list
NAME USED AVAIL REFER MOUNTPOINT
flynn-default 7.31G 82.8G 30K none
flynn-default/01eb26d6a5b94397b665f290a550e494 7.28G 82.8G 7.28G /var/lib/flynn/volumes/zfs/mnt/01eb26d6a5b94397b665f290a550e494
flynn-default/5f65fa3e45b84b24a0de1fe321f525f0 11.7M 82.8G 11.7M /var/lib/flynn/volumes/zfs/mnt/5f65fa3e45b84b24a0de1fe321f525f0
flynn-default/9c84711a0d004926b90a9a99c95ee8d8 17.7M 82.8G 17.7M /var/lib/flynn/volumes/zfs/mnt/9c84711a0d004926b90a9a99c95ee8d8
thomasfedb@metis:~$ status flynn-host
flynn-host start/running, process 3474
thomasfedb@metis:~$ ps ax | grep flynn
3474 ? Ssl 0:13 /usr/local/bin/flynn-host daemon --manifest /etc/flynn/host-manifest.json
3502 pts/3 S+ 0:00 grep --color=auto flynn
thomasfedb@metis:~$ flynn-host ps
05:01:46.908615 host.go:131: Get http://127.0.0.1:1111/services/flynn-host/leader: dial tcp 127.0.0.1:1111: connection refused