Skip to content

Instantly share code, notes, and snippets.

View 573's full-sized avatar

Daniel Kahlenberg 573

View GitHub Profile
@miguelmota
miguelmota / .xinitrc
Last active November 18, 2023 10:54
Arch linux LXDE setup instructions
exec startlxde
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
################################################################################
# System
@rpearce
rpearce / .ghci
Last active August 15, 2023 00:36
Flake for using Haskell in nix develop
:def hoogle \x -> return $ ":!hoogle --count=15 \"" ++ x ++ "\""
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""
:set -Wall
:set -fno-warn-type-defaults -ferror-spans -freverse-errors -fprint-expanded-synonyms
:set prompt "\ESC[0;32m%s\n\ESC[m[ghci]\ESC[38;5;172mλ \ESC[m"
:set prompt-cont " \ESC[38;5;172m> \ESC[m"
@vmiko
vmiko / WSL2_VPN_Workaround_Instructions.md
Last active April 22, 2022 20:08 — forked from machuu/WSL2_VPN_Workaround_Instructions.md
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active. The workaround breaks down into two problems:

  1. Network connection to internet
  2. DNS in WSL2

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@Alexon-Abreu
Alexon-Abreu / data-wrangling.ipynb
Created March 30, 2021 15:54
Created on Skills Network Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tadfisher
tadfisher / build.nix
Last active May 16, 2024 14:26
Simplified Nix integration with Gradle
{ lib
, stdenv
, jdk
, gradle
, mavenRepo
}:
stdenv.mkDerivation {
pname = "built-with-gradle";
version = "0.0";
@mankoff
mankoff / README.md
Last active February 5, 2024 13:46 — forked from tararoys/May12knausj-master-cheatsheet.pdf
Code to print out all voice commands in the knausj talon repository,

Talon Voice Commands Cheatsheet

This is a demo for how to get a cheatsheet of all Talon voice commands.

To recreate what I did:

  1. Have talon installed on your computer following the instructions at talonvoice.com
  2. Paste both the cheatsheet.py and cheatsheet.talon into the user directory of ~/talon. This makes these scripts available to talon.
  3. Open the talon repl and type
@tararoys
tararoys / Replacement.md
Last active June 16, 2023 15:39
A cheat sheet for learning several of the most useful talon commands
@lheckemann
lheckemann / aarch64-vm.nix
Created January 28, 2021 17:03
AArch64 VM
{ pkgsPath ? <nixpkgs> }:
let
pkgs = import pkgsPath {};
pkgsAarch64 = import pkgsPath { system = "aarch64-linux"; };
iso = (pkgsAarch64.nixos {
imports = [ (pkgsPath + "/nixos/modules/installer/cd-dvd/installation-cd-base.nix") ];
users.users.root.openssh.authorizedKeys.keyFiles = [(builtins.fetchurl https://github.com/lheckemann.keys)];
}).config.system.build.isoImage;
;;; plantuml_helpers.el --- Provides plantuml helper functions -*- lexical-binding: t -*-
;;; Commentary:
;; plantuml helper functions
;;; Code:
(require 'iimage)
(autoload 'iimage-mode "iimage" "Support Inline image minor mode." t)
(autoload 'turn-on-iimage-mode "iimage" "Turn on Inline image minor mode." t)
(add-to-list 'iimage-mode-image-regex-alist '("@startuml\s+\\(.+\\)" . 1))
;; Rendering plantuml