This file contains hidden or 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
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| {-# LANGUAGE RankNTypes #-} | |
| import Control.Lens | |
| import Data.Functor | |
| import Data.Monoid | |
| import Control.Monad | |
| import Control.Monad.List |
This file contains hidden or 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
| {-# LANGUAGE DeriveFunctor #-} | |
| data Pair a = Pair a a deriving (Show,Functor) |
This file contains hidden or 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
| λ (undefined >>= undefined :: Maybe ()) `seq` () | |
| *** Exception: Prelude.undefined | |
| λ (undefined >>= undefined :: IO ()) `seq` () | |
| () | |
| λ import Control.Monad.State.Strict | |
| λ (undefined >>= undefined :: State () ()) `seq` () | |
| () | |
| m >>= k = StateT $ \ s -> do | |
| (a, s') <- runStateT m s | |
| runStateT (k a) s' |
This file contains hidden or 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
| {-# LANGUAGE OverloadedStrings #-} | |
| import Control.Applicative | |
| import Control.Lens | |
| import Control.Monad | |
| import qualified Data.Traversable as T | |
| import qualified Data.Foldable as F | |
| import qualified Data.Map as M | |
| import qualified Data.Text.Lazy as T | |
| import qualified Data.Text.Lazy.Encoding as T |
This file contains hidden or 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
| #! /bin/bash | |
| # http://linuxcommand.org/wss0150.php | |
| function error_exit | |
| { | |
| echo "$1" 1>&2 | |
| exit 1 | |
| } | |
| # http://unix.stackexchange.com/questions/70859/why-doesnt-sudo-su-in-a-shell-script-run-the-rest-of-the-script-as-root |
This file contains hidden or 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
| "Colour0"="255,255,255" | |
| "Colour1"="255,255,255" | |
| "Colour2"="51,51,51" | |
| "Colour3"="85,85,85" | |
| "Colour4"="0,0,0" | |
| "Colour5"="0,255,0" | |
| "Colour6"="77,77,77" | |
| "Colour7"="85,85,85" | |
| "Colour8"="187,0,0" | |
| "Colour9"="255,85,85" |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\monokai] | |
| "Colour21"="255,255,255" | |
| "Colour20"="245,222,179" | |
| "Colour19"="200,240,240" | |
| "Colour18"="0,217,217" | |
| "Colour17"="179,146,239" | |
| "Colour16"="174,129,255" | |
| "Colour15"="122,204,218" |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\igvita-desert] | |
| "Present"=dword:00000001 | |
| "HostName"="192.168.171.128" | |
| "LogFileName"="putty.log" | |
| "LogType"=dword:00000000 | |
| "LogFileClash"=dword:ffffffff | |
| "LogFlush"=dword:00000001 | |
| "SSHLogOmitPasswords"=dword:00000001 |
This file contains hidden or 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
| "Colour0"="255,255,255" | |
| "Colour1"="255,255,255" | |
| "Colour2"="51,51,51" | |
| "Colour3"="85,85,85" | |
| "Colour4"="0,0,0" | |
| "Colour5"="248,103,7" | |
| "Colour6"="77,77,77" | |
| "Colour7"="185,185,185" | |
| "Colour8"="255,43,43" | |
| "Colour9"="255,85,85" |
This file contains hidden or 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
| docker run centos yum install -y xorg-x11-xauth xeyes | |
| docker ps -l | |
| docker commit zzzzzzzzzz centos:xeyes | |
| docker run -v $HOME:/hosthome:ro -e XAUTHORITY=/hosthome/.Xauthority -e DISPLAY=$DISPLAY centos cat /hosthome/.Xauthority | |
| docker run -v $HOME:/hosthome:ro -e XAUTHORITY=/hosthome/.Xauthority -e DISPLAY=$(echo $DISPLAY | sed "s/^.*:/$(hostname -i):/") centos:xeyes xeyes |