documentclass: ltjsarticle header-includes:
- \usepackage[version=3]{mhchem} metadata: table1: date: 1615 年 5 月 5 日 (金)丑三つ時 theme: 様々な食品におけるカフェイン
table2:
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.network "forwarded_port", guest: 80, host: 80, host_ip: "127.0.0.1" | |
config.vm.network "forwarded_port", guest: 443, host: 443, host_ip: "127.0.0.1" | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
version: '3' | |
services: | |
web: | |
container_name: web | |
image: nginx:mainline-alpine | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- /vagrant/nginx.conf:/etc/nginx/nginx.conf:ro |
documentclass: ltjsarticle header-includes:
table2:
PRAGMA foreign_keys=OFF; | |
BEGIN TRANSACTION; | |
CREATE TABLE schema ( | |
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, | |
version INTEGER NOT NULL, | |
updated_at DATETIME NOT NULL, | |
UNIQUE (version) | |
); | |
INSERT INTO schema VALUES(1,39,1593510249); | |
CREATE TABLE config ( |
#!/usr/bin/env bash | |
set -euo pipefail | |
# moving all stopping LXD container from node to node. | |
function get_stopping_containers() { | |
lxc list --format json | | |
jq -rc 'map({"name": .name, "node": .location, "status": .state.status, "disk_limit": .expanded_devices.root.size, "disk_usage": .state.disk.root.usage} | | |
select(.status == "Stopped" and .node == '\""$1"\"')) | | |
.[]' |
set -g default-terminal "tmux-256color" | |
set-option -g mouse on | |
bind-key -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'" | |
bind-key -n WheelDownPane select-pane -t= \; send-keys -M | |
bind e setw synchronize-panes on | |
bind E setw synchronize-panes off |
#!/usr/bin/env bash | |
set -euxo pipefail | |
export NVIDIA_DRIVER_VERSION=470-server | |
export CUDA_VERSION=11-1 | |
modify_bashrc() { | |
# don't variable expand in heredoc | |
cat << 'EOF' >> /etc/profile.d/cuda.sh | |
export PATH=$PATH:/usr/local/cuda/bin |
#!/usr/bin/env bash | |
set -euo pipefail | |
# This script is based on NodeSource's repository. | |
# see: https://github.com/nodesource/distributions | |
# shellcheck disable=SC1091 | |
source /etc/os-release | |
export NODE_VERSION=node_16.x |