This file contains 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
module Main where | |
import Debug.Trace | |
import Network.XHR | |
import qualified Thermite as T | |
import qualified Thermite.Html as T | |
import qualified Thermite.Html.Elements as T | |
import qualified Thermite.Action as T | |
import qualified Thermite.Types as T |
This file contains 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
using System; | |
using System.IO; | |
using System.Collections.Generic; | |
using System.Security.Cryptography; | |
namespace Base64 | |
{ | |
public class Base64Stream | |
{ | |
public static int Main(string[] args) |
This file contains 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 Foundation | |
struct APIService { | |
let baseUrl = "redacted" | |
let applicationId = "redacted" | |
let eventCode = "redacted" | |
let token: String? | |
func login(c: Credentials, andThen: APIService -> ()) -> () { |
This file contains 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
$AppliedGPOs = $(Get-WmiObject -Namespace 'ROOT\RSOP\Computer' -Class RSOP_GPLink -Filter "AppliedOrder <> 0" | Select @{n='GPO';e={$_.GPO.Replace("RSOP_GPO.","")}} | Select -ExpandProperty GPO) | |
Get-WmiObject -Namespace 'ROOT\RSOP\Computer' -Class 'RSOP_GPO' -Filter $AppliedGPOs[0] |
This file contains 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
module SmartArt where | |
import Prelude (bind, ($), (+), (*), (-), (/), pure) | |
import Control.Monad.Eff (Eff) | |
import Graphics.Canvas (CANVAS, fillPath, setFillStyle, moveTo, lineTo, fillText, setFont, measureText, Context2D) | |
import Data.List (List(..)) | |
drawArrows :: forall eff. Context2D -> Number -> Number -> Number -> List String -> Eff (canvas :: CANVAS | eff) Number | |
drawArrows ctx dx x y Nil = pure x | |
drawArrows ctx dx x y (Cons l ls) = do |
This file contains 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
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sampleback | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: sampleback |
This file contains 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
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sampleback | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: sampleback |
This file contains 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
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
firefox \ | |
python2.7 \ | |
python-pip \ | |
&& pip install selenium | |
RUN curl -L -O "https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz" && tar zxf geckodriver-v0.19.1-linux64.tar.gz |
This file contains 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
FROM microsoft/aspnetcore-build:2.0.4-2.1.3-nanoserver-sac2016 AS build-env | |
WORKDIR /app | |
COPY *.sln ./ | |
RUN mkdir Sample | |
COPY Sample/*.csproj ./Sample/ | |
RUN dotnet restore | |
# Copy everything else and build | |
COPY . ./ |
This file contains 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
Add-Type -AssemblyName "Microsoft.Office.Interop.Outlook" | |
$outlook = New-Object -ComObject Outlook.Application | |
$namespace = $outlook.GetNamespace("MAPI") | |
$inbox = $namespace.GetDefaultFolder([Microsoft.Office.Interop.Outlook.OlDefaultFolders]::olFolderInbox) | |
$inbox.Items($inbox.Items.Count) |
OlderNewer