Skip to content

Instantly share code, notes, and snippets.

View zefhemel's full-sized avatar

Zef Hemel zefhemel

View GitHub Profile

This is a test gist

randomAttribute
10

Supper yo (updates)

Feedback Actively seeking and responding positively to thoughtful feedback. Giving thoughtful feedback and investing time in others.

@zefhemel
zefhemel / focalboard-deno.js
Last active April 6, 2021 14:52
Focalboard Deno API
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: {
@zefhemel
zefhemel / reaction-tracker.md
Created March 26, 2021 08:32
A simple reaction tracker in Matterless

Environment

server: https://community.mattermost.com
me_token: XXX
bot_token: XXX

MattermostClient: TrackerClient

url: $server
@zefhemel
zefhemel / user.json
Created September 2, 2014 07:19
.ejs JavaScript highlighting for Zed
{
// whatever was already there, and add:
modes: {
javascript: {
extensions: ["ejs"]
}
}
}
@zefhemel
zefhemel / webfs.py
Last active August 29, 2015 14:05
WebFS server
#!/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
modes: {
markdown: {
handlers: {
preview: [
"!Tools:Preview"
"Github:Markdown:Preview"
]
}
}
}
@zefhemel
zefhemel / install-docker.sh
Last active December 27, 2015 08:59
Install docker on Ubuntu 13.04
#!/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
@zefhemel
zefhemel / install-nix.sh
Last active May 14, 2016 16:38
Install Nix on 64-bit Ubuntu
#!/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
@zefhemel
zefhemel / configuration.nix
Created May 24, 2013 14:55
NixOS Server config
{ 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";