Skip to content

Instantly share code, notes, and snippets.

fscommand2("FullScreen", "true");
// Play/Pause;
var spaceKey:Object = {};
spaceKey.onKeyDown = function() {
trace(Key.getCode());
};
Key.addListener(spaceKey);
@tasmo
tasmo / .htaccess
Created September 25, 2013 21:33
for installing Ghost in a subdomain @ Uberspace
RewriteEngine On
RewriteBase /
RewriteRule (.*) http://localhost:2368/$1 [QSA,P]
@tasmo
tasmo / .profile
Created September 23, 2016 19:32
snipped for ediff with emacsclient for POSIX shells
### editor
export ALTERNATE_EDITOR=emacs
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>"
else
quoted1=${1//\\/\\\\}; quoted1=${quoted1//\"/\\\"}
@tasmo
tasmo / ec
Created April 25, 2017 15:25 — forked from alexmurray/ec
Start Emacs Client in GUI (and launch Emacs server if not already running)
#!/usr/bin/env bash
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/
# 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
tasmo / keybase.md
Created October 24, 2020 16:49
My Keybase proof

Keybase proof

I hereby claim:

  • I am tasmo on github.
  • I am tomfreeze (https://keybase.io/tomfreeze) on keybase.
  • I have a public key ASBsDE7GYpL1Zlt7xOOGVwsBw8yd8SnyLdt2g8932NOUgQo

To claim this, I am signing this object:

@tasmo
tasmo / mail.nix
Created November 22, 2021 10:55
Home manager email config
{ pkgs, ... }:
{
accounts = {
email = {
maildirBasePath = "Mail";
accounts = {
tasmo = {
primary = true;
@tasmo
tasmo / terminal.kak
Last active February 18, 2022 16:24
A colorscheme for Kakoune using the terminal colors
# 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
tasmo / README.md
Last active November 17, 2023 14:20 — forked from matthewpi/README.md
Nix on Fedora

NixOS on Fedora

Please note that these instructions are not offically supported or condoned by Nix and are not guaranteed to always work, but from my testing everything seems to work perfectly fine.

These steps may not be required if NixOS/nix#2374 is resolved.

SELinux

These commands are required for both Fedora Workstation and Fedora Silverblue