Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊
Tying the Knots

Richard Marko sorki

🦊
Tying the Knots
View GitHub Profile
@sorki
sorki / y
Created Sep 24, 2020
it6251-dump-dptx
View y
[nix-shell:/etc/nixos/it6251-dump-dptx]# ./it6251-dump-dptx
reg0E = 90, Link Rate = HBRreg0D = 3e, HPD Video Stable
frequency = 27648000, xCnt = 1
Data Enable start: (114, 30)
Modeline "1920x1080" 27.648 1920 2004 2050 2080 1080 1106 1108 1112 -HSync -VSync
00000000 00 ff ff ff ff ff ff 00 0d ae 43 13 00 00 00 00 |..........C.....|
00000010 34 15 01 04 a5 1c 10 78 02 93 ad a9 53 4c 96 25 |4......x....SL.%|
00000020 11 4f 53 00 00 00 01 01 01 01 01 01 01 01 01 01 |.OS.............|
00000030 01 01 01 01 01 01 36 36 80 a0 70 38 20 40 2e 1e |......66..p8 @..|
00000040 24 00 1a a5 10 00 00 18 24 24 80 a0 70 38 20 40 |$.......$$..p8 @|
@sorki
sorki / binGHCsDiff.diff
Last active Sep 24, 2020
diff -u pkgs/development/compilers/ghc/8.6.5-binary.nix pkgs/development/compilers/ghc/8.10.2-binary.nix
View binGHCsDiff.diff
--- pkgs/development/compilers/ghc/8.6.5-binary.nix 2020-09-08 09:38:38.112547979 +0200
+++ pkgs/development/compilers/ghc/8.10.2-binary.nix 2020-09-24 12:26:35.216890173 +0200
@@ -1,6 +1,6 @@
{ stdenv
, fetchurl, perl, gcc
-, ncurses5, gmp, glibc, libiconv
+, ncurses6, gmp, glibc, libiconv
, llvmPackages
}:
View configuration.nix
{ config, lib, pkgs, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix>
];
nixpkgs = {
crossSystem.system = "armv7l-linux";
};
@sorki
sorki / log.txt
Last active Jul 19, 2020
supercollider sc3plugins
View log.txt
-> SuperDirt
loading synthdefs in /home/srk/.local/share/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-modules.scd
---- core synth defs loaded ----
loading synthdefs in /home/srk/.local/share/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths-global.scd
loading synthdefs in /home/srk/.local/share/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/core-synths.scd
loading synthdefs in /home/srk/.local/share/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/default-synths.scd
exception in GraphDef_Recv: exceeded number of interconnect buffers.
WARNING: SynthDef superfm too big for sending. Retrying via synthdef file
loading synthdefs in /home/srk/.local/share/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/try-load-extra-synths.scd
loading synthdefs in /home/srk/.local/share/SuperCollider/downloaded-quarks/SuperDirt/classes/../synths/tutorial-synths.scd
@sorki
sorki / A.hs
Created Jun 12, 2020
hnix-store-polysemy
View A.hs
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE LambdaCase, BlockArguments #-}
{-# LANGUAGE GADTs, FlexibleContexts, TypeOperators, DataKinds, PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
module System.Nix.Store.Poly where
import Polysemy
import Polysemy.Error
View err.txt
main/Repl.hs:75:31: error:
• Could not deduce (MonadException
(Control.Monad.Trans.State.Lazy.StateT
(M.HashMap FilePath NExprLoc) m))
arising from a use of ‘controlIO’
from the context: MonadException m
bound by the instance declaration at main/Repl.hs:74:10-63
There are instances for similar types:
instance MonadException m =>
MonadException (StateT (M.HashMap FilePath NExprLoc) m)
@sorki
sorki / Simple.hs
Created May 12, 2020
ircbot-simple
View Simple.hs
{-# LANGUAGE OverloadedStrings #-}
-- | Simple wrapper on top of simpleBot
-- adding applicative parser
-- and `runBotWithParts` shorthand.
--
-- `runBotWithParts` allows passing
-- initialization function that inits
-- all bot parts and returns them as list.
View overlay.nix
self: super:
let src = "https://github.com/sorki/git-post-receive/archive/master.tar.gz";
ovr = (import "${builtins.fetchTarball src}/overlay.nix");
in {
haskellPackages = super.haskellPackages.override (old: {
overrides = super.lib.composeExtensions (old.overrides or (_: _: { }))
ovr;
});
ghcjs = super.haskell.packages.ghcjs.override {
overrides = helf: huper: (ovr helf huper // (with self.haskell.lib; {
View Chan.hs
module Network.ZRE.Chan (
zreChan
) where
import Control.Monad.IO.Class (liftIO)
import Control.Concurrent.STM (TChan)
import Data.Serialize (Serialize)
import Data.ZRE (Group)
import qualified Control.Concurrent
@sorki
sorki / dctest.nix
Created May 1, 2020
Discourse test
View dctest.nix
{ config, pkgs, lib, ... }:
let
nixpkgs = /home/srk/git/nixpkgs;
in
{
imports =
[
"${nixpkgs}/nixos/modules/services/web-apps/discourse.nix"
];
You can’t perform that action at this time.