This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="[ \t \h:\w ]\n\! \$ " | |
export PATH="$HOME/Library/Haskell/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> a = [1,2,3] | |
>>> b = a | |
>>> a = a.append(9) | |
# what are the values of a and b? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- pragmas {{{ | |
-- {-# LANGUAGE DataKinds #-} | |
-- {-# LANGUAGE FlexibleContexts #-} | |
-- {-# LANGUAGE TemplateHaskell #-} | |
-- }}} | |
module Main where | |
-- gcj imports {{{ | |
import Control.Monad | |
import Data.Bifunctor | |
import Data.Bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat 6.in | |
AABBBC | |
ADEFGC | |
HDEFGI | |
HJ4KKI | |
LJMNOI | |
LMMNO2 | |
A * 40 | |
B + 6 | |
C - 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> def foo(x): x.append(9) | |
... | |
>>> a = [1,2,3] | |
>>> a | |
[1, 2, 3] | |
>>> b = a | |
>>> b | |
[1, 2, 3] | |
>>> foo(a) | |
>>> a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> foo x = 9 : x | |
> a = [1,2,3] | |
> b = a | |
> foo a | |
[9,1,2,3] | |
> a | |
[1,2,3] | |
> b | |
[1,2,3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
OlderNewer