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 ExistentialQuantification #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE RankNTypes #-} | |
import Control.Applicative | |
import Control.Comonad | |
import Control.Monad | |
import Data.Functor.Compose | |
import Data.Functor.Contravariant | |
import qualified Data.Functor.Contravariant.Day as Contravariant |
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
require 'minitest/autorun' | |
class X < Minitest::Test | |
def make_lambda b | |
->(z) { b[:finalize] = true } | |
end | |
def test_finalizer | |
hash = {} | |
make_finalizer = ->() { |
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
require 'objspace' | |
require 'config/environment' | |
require 'fiddle' | |
require 'fiddle/import' | |
extend Fiddle::Importer | |
include Fiddle | |
dlload | |
typealias "VALUE", "unsigned long" |
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
######################################################################################### | |
# | |
# Copyright (c) Microsoft Corporation. All rights reserved. | |
# | |
######################################################################################### | |
Microsoft.PowerShell.Core\Set-StrictMode -Version Latest | |
#region variables |
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
#!/usr/bin/env stack | |
-- stack --stack-yaml ./stack.yaml runghc | |
-- SIGINT CTF 2013: baremetal | |
-- http://shell-storm.org/repo/CTF/SIGINT-2013/pwning/baremetal-100/ | |
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Concurrent (threadDelay) | |
import Control.Monad |
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
--- | |
title: "Bug DLL" | |
author: "Stéphane Laurent" | |
date: "10 octobre 2017" | |
output: html_document | |
editor_options: | |
chunk_output_type: console | |
--- | |
```{r setup, include=FALSE} |
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 ForeignFunctionInterface #-} | |
module Lib where | |
import Foreign.C.Types | |
import Foreign (peek, newForeignPtr_) | |
import Foreign.Ptr | |
import System.IO.Unsafe (unsafePerformIO) | |
import qualified Data.Vector.Storable as SV |
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
#@yasinkuyu 08/09/2017 | |
# install luminati (https://luminati.io) proxy manager & run | |
from selenium import webdriver | |
from selenium.webdriver.common.proxy import Proxy, ProxyType | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.proxy import * | |
PROXY = '127.0.0.1:24000' |
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
def yell(name): | |
print ("HEY %s" % name.upper()) |
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 will works on Embedded GPU that implements .gem_prime_mmap like Rockchip ones. | |
// This will fail on most DRM drivers for GPU with dedicated memory as they tend to NOT implement .gem_prime_mmap. | |
#include <stdio.h> | |
#include <libdrm/drm.h> | |
#include <stdint.h> | |
#include <sys/mman.h> | |
#include <string.h> |