This file contains 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
export class Focalboard { | |
constructor(url, token, workspaceId) { | |
this.url = url; | |
this.token = token; | |
this.workspaceId = workspaceId; | |
} | |
async allBlocks() { | |
let result = await fetch(`${this.url}/api/v1/workspaces/${this.workspaceId}/blocks?type=view`, { | |
headers: { |
This file contains 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
{ | |
// whatever was already there, and add: | |
modes: { | |
javascript: { | |
extensions: ["ejs"] | |
} | |
} | |
} |
This file contains 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/python | |
## Usage: webfs.py [rootPath] [port] | |
## rootPath defaults to $HOME | |
## port defaults to 1338 | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
import os, os.path | |
import sys | |
import cgi |
This file contains 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
modes: { | |
markdown: { | |
handlers: { | |
preview: [ | |
"!Tools:Preview" | |
"Github:Markdown:Preview" | |
] | |
} | |
} | |
} |
This file contains 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 | |
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
# Add the Docker repository to your apt sources list. | |
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ | |
> /etc/apt/sources.list.d/docker.list" | |
# update | |
sudo apt-get update |
This file contains 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 | |
# Install the binary tarball... | |
cd / | |
wget -O - http://hydra.nixos.org/job/nix/trunk/binaryTarball.x86_64-linux/latest/download | tar xvj | |
/usr/bin/nix-finish-install | |
rm /usr/bin/nix-finish-install |
This file contains 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
{ config, pkgs, ... }: | |
{ | |
# Bare basics | |
boot.loader.grub.enable = true; | |
boot.loader.grub.version = 1; | |
boot.loader.grub.extraPerEntryConfig = "root (hd0)"; | |
boot.loader.grub.device = "nodev"; | |
boot.initrd.kernelModules = [ "xen_blkfront" ]; | |
fileSystems."/boot".fsType = "ext2"; | |
fileSystems."/boot".device = "/dev/xvda"; |
NewerOlder