Skip to content

Instantly share code, notes, and snippets.

View ktonga's full-sized avatar

Gastón Tonietti ktonga

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ktonga on github.
  • I am ktonga (https://keybase.io/ktonga) on keybase.
  • I have a public key ASDpnvwnQ1G4pDJPGkRyFprfITgbpd2Km6vDuwn8Hb2hiwo

To claim this, I am signing this object:

# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.
# evbug is a debug tool that should be loaded explicitly
blacklist evbug
# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd
total 60
drwxr-xr-x 2 root root 4096 Oct 16 14:56 .
drwxr-xr-x 149 root root 12288 Oct 16 15:51 ..
-rw-r--r-- 1 root root 2507 Jul 31 2015 alsa-base.conf
-rw-r--r-- 1 root root 154 Nov 30 2016 amd64-microcode-blacklist.conf
-rw-r--r-- 1 root root 325 Aug 16 2017 blacklist-ath_pci.conf
-rw-r--r-- 1 root root 1603 Aug 16 2017 blacklist.conf
-rw-r--r-- 1 root root 210 Aug 16 2017 blacklist-firewire.conf
-rw-r--r-- 1 root root 697 Aug 16 2017 blacklist-framebuffer.conf
-rw-r--r-- 1 root root 156 Jul 31 2015 blacklist-modem.conf
# DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager
Section "OutputClass"
Identifier "Nvidia Prime"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "IgnoreDisplayDevices" "CRT"
Option "PrimaryGPU" "Yes"
ModulePath "/x86_64-linux-gnu/nvidia/xorg"
{ compiler ? "ghc843"
, withHoogle ? true
}:
let
bootstrap = import <nixpkgs> {};
nixpkgs = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
src = bootstrap.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
@ktonga
ktonga / default.nix
Last active September 7, 2018 05:36
{ mkDerivation, aeson, async, avro, base, bytestring
, email-validate, hedgehog, hw-kafka-client, postgresql-simple
, postgresql-simple-migration, protolude, range, regexpr
, servant-server, stdenv, text, uuid, wai, warp
}:
mkDerivation {
pname = "brickx-users";
version = "0.1.0.0";
src = ./.;
isLibrary = true;
[ 5 of 12] Compiling Data.Range.Algebra.Internal ( Data/Range/Algebra/Internal.hs, dist/build/Data/Range/Algebra/Internal.o )
Data/Range/Algebra/Internal.hs:22:13: error:
• Could not deduce (Data.Functor.Classes.Show1 RangeExprF)
arising from the first field of ‘RangeExpr’
(type ‘Free RangeExprF a’)
from the context: Show a
bound by the deriving clause for ‘Show (RangeExpr a)’
at Data/Range/Algebra/Internal.hs:22:13-16
Possible fix:
@ktonga
ktonga / FS2ActorSource.scala
Created February 11, 2016 14:58
Pull messages from an Akka Actor and pipe them to a Scalaz Stream Process (FS2)
import java.util.Date
import scala.concurrent.duration._
import scala.concurrent.ExecutionContext.Implicits.global
import scala.util.Try
import akka.actor._
import scalaz.stream._
import scalaz.concurrent.Task
/*
import qualified Data.Set as Set
import qualified Data.Map as Map
import qualified Data.List as List
import qualified Data.Maybe as Maybe
import qualified GHC.Exts as Exts
findCommonAncestor :: [String] -> [[String]] -> String -> String -> String
findCommonAncestor cs ps c1 c2 =
let
[newer, older] = chrono
package findcommonancestor;
import java.util.HashSet;
import java.util.Set;
/*
* / E - F \
* A - B - C - D - G
*
*/