Skip to content

Instantly share code, notes, and snippets.

Eric Wolf typetetris

  • Germany
Block or report user

Report or block typetetris

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View shell.nix
{ nixpkgsPath ? <nixpkgs> }:
let
neovimCustomRC = ''
set ignorecase
set smartcase
set hidden
set list
set listchars=tab:>-
set number
set termguicolors
View .emacs
(require 'package)
(package-initialize 'noactivate)
(eval-when-compile
(require 'use-package))
(use-package evil)
(evil-mode 1)
(use-package lsp-mode)
(use-package lsp-ui)
(use-package lsp-haskell)
View test.nix
let nixpkgs = import (builtins.fetchTarball {
url = "https://github.com/nixos/nixpkgs/archive/21517c60d948106b53becc9bd26e893c13f1a58c.tar.gz";
sha256 = "0gv0pm07bszpalhl7ys024yf2m4sw7vra6bxkb078hypqq03vgb9";
}) {config ={allowUnfree=true;};} ;
in
nixpkgs.stdenv.mkDerivation {
name = "build-test";
buildInputs = with nixpkgs; [ icu58 ncurses5 clang_6 curl pam libssh2 openssl_1_0_2 krb5 ];
shellHook = ''
echo Hi to nix!
View levels.txt
#########
#. .#
# # * # #
# $ #
# $@$ #
# $ #
# # * # #
#. .#
#########
; Level 2
@typetetris
typetetris / gist:d6f17c1a7f60cb94728a9f47a846df72
Created Feb 12, 2018
adding customized packages to stack.yaml
View gist:d6f17c1a7f60cb94728a9f47a846df72
packages:
- .
- location:
git: <path-to-repo-goes-here>
commit: <sha-goes-here>
extra-dep: true
View config.nix
let pyOverrides = pkgs: self: super: {
neovim = super.neovim.overrideAttrs ( oldAttrs: rec {
version = "0.2.1";
name = "neovim-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/n/neovim/${name}.tar.gz";
sha256 = "16vzxmp7f6dl20n30j5cwwvrjj5h3c2ch8ldbss31anf36nirsdp";
};
});
};
View gist:e5d9f2896ea8739e7c9ac0e204fa0746
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
module AesonDuplicateRecordFields where
import Data.Aeson
import GHC.Generics
data Test1 = Test1 { a :: String, b :: String } deriving (Eq, Show, Generic)
@typetetris
typetetris / config.nix
Last active Jan 28, 2018
Trying to deactiv
View config.nix
{
packageOverrides = super: let self = super.pkgs; in
{
haskell = super.haskell // {
packages = super.haskell.packages // {
ghc822 = super.haskell.packages.ghc822.override {
overrides = self: super: {
monad-memo = super.monad-memo.override {
mkDerivation = args: super.mkDerivation (args // {
doCheck = false;
@typetetris
typetetris / gist:ff499b0632ef9a0d9a1659ffa3a4a6a3
Created Jul 12, 2017
amqptest3.hs with client authentication
View gist:ff499b0632ef9a0d9a1659ffa3a4a6a3
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Default.Class
import Network.AMQP
import Network.Socket.Internal (PortNumber)
import Network.TLS
import Network.TLS.Extra.Cipher (ciphersuite_default)
import Data.X509.CertificateStore (CertificateStore (..), readCertificateStore)
import Data.Maybe
View amqptest2.hs
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Default.Class
import Network.AMQP
import Network.Socket.Internal (PortNumber)
import Network.TLS
import Network.TLS.Extra.Cipher (ciphersuite_default)
import Data.X509.CertificateStore (CertificateStore (..), readCertificateStore)
import Data.Maybe
You can’t perform that action at this time.