Skip to content

Instantly share code, notes, and snippets.

tasmo / terminal.kak
Last active Feb 18, 2022
A colorscheme for Kakoune using the terminal colors
View terminal.kak
# Kakoune terminal color scheme
# For Code
face global value yellow
face global type blue
face global variable cyan
face global module magenta
face global function magenta+i
face global string green
face global keyword blue+i
tasmo / mail.nix
Created Nov 22, 2021
Home manager email config
View mail.nix
{ pkgs, ... }:
accounts = {
email = {
maildirBasePath = "Mail";
accounts = {
tasmo = {
primary = true;
tasmo /
Created Oct 24, 2020
My Keybase proof

Keybase proof

I hereby claim:

  • I am tasmo on github.
  • I am tomfreeze ( on keybase.
  • I have a public key ASBsDE7GYpL1Zlt7xOOGVwsBw8yd8SnyLdt2g8932NOUgQo

To claim this, I am signing this object:

tasmo / ec
Created Apr 25, 2017 — forked from alexmurray/ec
Start Emacs Client in GUI (and launch Emacs server if not already running)
View ec
#!/usr/bin/env bash
# Shamelessly taken from
# This script starts emacs daemon if it is not running, opens whatever file
# you pass in and changes the focus to emacs. Without any arguments, it just
# opens the current buffer or *scratch* if nothing else is open. The following
# example will open ~/.bashrc
# ec ~/.bashrc
tasmo / .profile
Created Sep 23, 2016
snipped for ediff with emacsclient for POSIX shells
View .profile
### editor
export EDITOR="emacsclient -tc -a emacs"
export VISUAL="emacsclient -c -a emacs"
# emacsclient as difftool
function ediff () {
if [ "X${2}" = "X" ]; then
echo "USAGE: ediff <FILE 1> <FILE 2>"
quoted1=${1//\\/\\\\}; quoted1=${quoted1//\"/\\\"}
tasmo / nightwatch
Created May 18, 2016
.assert.containsText('.dropdown-menu .active a', '中文')
View nightwatch
✔ Element <div.col-sm-6:nth-child(2) > a:nth-child(1)> was present after 107 milliseconds.
✔ Element <.btn-default> was present after 3470 milliseconds.
✔ Element <.dropdown-menu .active a span> was present after 37 milliseconds.
✖ Testing if element <.dropdown-menu .active a> contains text: "中文". - expected "中文" but got:
at Object.module.exports.test localhost (/Users/me/code/nightwatchjs/nightwatch/exist_test/ib.js:10:15)
at (/Users/me/code/nightwatchjs/nightwatch/lib/runner/module.js:63:34)
at /Users/me/code/nightwatchjs/nightwatch/lib/runner/testcase.js:97:29
at _fulfilled (/Users/me/code/nightwatchjs/nightwatch/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/Users/me/code/nightwatchjs/nightwatch/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/Users/me/code/nightwatchjs/nightwatch/node_modules/q/q.js:796:13)
tasmo / .htaccess
Created Sep 25, 2013
for installing Ghost in a subdomain @ Uberspace
View .htaccess
RewriteEngine On
RewriteBase /
RewriteRule (.*) http://localhost:2368/$1 [QSA,P]
fscommand2("FullScreen", "true");
// Play/Pause;
var spaceKey:Object = {};
spaceKey.onKeyDown = function() {