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
| # Based on https://gist.github.com/kmatt/71603170556ef8ffd14984af77ff10c5 | |
| # prompt ">" indicates Powershell commands | |
| # prompt "$" are Linux shell commands | |
| # https://docs.microsoft.com/en-us/windows/wsl/install-win10 | |
| > dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
| > dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
| # install https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi |
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
| -- Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/ | |
| create or replace function uuid_generate_v7() | |
| returns uuid | |
| as $$ | |
| declare | |
| unix_ts_ms bytea; | |
| uuid_bytes bytea; | |
| begin | |
| unix_ts_ms = substring(int8send(floor(extract(epoch from clock_timestamp()) * 1000)::bigint) from 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
| # Description: Boxstarter Script | |
| # Author: ElJefeDSecurIT | |
| # Last Updated: 2017-10-10 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
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
| # Description: Boxstarter Script | |
| # Author: Jess Frazelle <[email protected]> | |
| # Last Updated: 2017-09-11 | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: |
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
| open System.IO | |
| open System | |
| let args = fsi.CommandLineArgs | |
| let watcher = new FileSystemWatcher(Path = args.[1], Filter = args.[2], EnableRaisingEvents = true) | |
| let fullPath = Path.Combine(args.[1], args.[2]) | |
| let stream = File.Open(fullPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite) | |
| stream.Seek(0L, SeekOrigin.End) | |
| printfn "Watching %s" fullPath | |
| let sr = new StreamReader(stream) |
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
| //========================================== | |
| // Working fully self-contained getting-started example for Suave Web Server scripting | |
| // | |
| // Note you don't need to have _anything_ installed before starting with this script. Nothing | |
| // but F# Interactive and this script. | |
| // | |
| // This script fetches the Paket.exe component which is referenced later in the script. | |
| // Initially the #r "paket.exe" reference is shown as unresolved. Once it has been | |
| // downloaded by the user (by executing the first part of the script) the reference | |
| // shows as resolved and can be used. |
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
| using Microsoft.ServiceBus; | |
| using Microsoft.ServiceBus.Messaging; | |
| using Microsoft.WindowsAzure; | |
| using System; | |
| using System.Threading; | |
| namespace AzureServiceBusTest | |
| { | |
| class Program | |
| { |
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
| using Microsoft.ServiceBus; | |
| using Microsoft.ServiceBus.Messaging; | |
| using Microsoft.WindowsAzure; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading; | |
| using System.Threading.Tasks; |
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
| function(doc) { | |
| delete doc['@metadata']['Raven-Replication-Version']; | |
| delete doc['@metadata']['Raven-Replication-Source']; | |
| delete doc['@metadata']['Raven-Replication-History']; | |
| return doc; | |
| } |
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
| // IE console.log fix | |
| if (typeof console === "undefined" || typeof console.log === "undefined") { | |
| console = {}; | |
| console.log = function () { }; | |
| } |
NewerOlder