Skip to content

Instantly share code, notes, and snippets.

@instinctive
instinctive / Bee.hs
Last active March 1, 2021 19:04
Spelling Bee
#!/usr/bin/env cabal
{- cabal:
build-depends: base, base-prelude, containers, text
-}
-- Spelling Bee
--
-- Install Haskell: https://www.haskell.org/ghcup/
--
-- This is a standalone Haskell script, assuming you have cabal installed. The
@instinctive
instinctive / Notes Linux Audio.md
Last active August 19, 2020 15:58
Notes on Linux Audio issues
@instinctive
instinctive / proglang.md
Last active June 23, 2020 18:49
Programming Language Personal Journey

Summer Camp: Fortran

Junior High School: Basic

College: Algol, Pascal, PL/I,

@instinctive
instinctive / Char.md
Last active February 26, 2020 06:12
Machine Build: Char

BIOS Update

My Gigabyte x570 Ultra shipped with Bios F5, which had no support for separate IOMMU groups.

I upgraded to F11, and set:

Tweaker > Advanced CPU Settings > SVM Mode > Enable
Settings > Miscellaneous > IOMMU > Enable
Settings > AMD CBS > ACS Enable > Enable

Settings > AMD CBS > Enable AER Cap > Enable

@instinctive
instinctive / configuration.nix
Last active March 9, 2020 22:38
NixOS Configuration
# 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, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
> foo x = 9 : x
> a = [1,2,3]
> b = a
> foo a
[9,1,2,3]
> a
[1,2,3]
> b
[1,2,3]
>>> def foo(x): x.append(9)
...
>>> a = [1,2,3]
>>> a
[1, 2, 3]
>>> b = a
>>> b
[1, 2, 3]
>>> foo(a)
>>> a
$ cat 6.in
AABBBC
ADEFGC
HDEFGI
HJ4KKI
LJMNOI
LMMNO2
A * 40
B + 6
C - 5
@instinctive
instinctive / CapsLockCtrlEscape.ahk
Last active September 19, 2017 02:40 — forked from sedm0784/CapsLockCtrlEscape.ahk
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own, and Ctrl when used in combination with another key, à la Steve Losh. Adapted from the one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (With some extra key combos added by @r…
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}