Skip to content

Instantly share code, notes, and snippets.

@sniper7kills
sniper7kills / sendmail-aws
Last active January 30, 2023 16:39 — forked from tony722/sendmail-gcloud
Freepbx Voicemail Transcription Script: AWS Transcribe API
#!/bin/sh
# sendmail-aws
#
# Installation instructions
# Copy the content of this file to /usr/sbin/sendmail-aws
# Modify line #69 with your S3 bucket name
#
# AWS
# ---------------
@sniper7kills
sniper7kills / win-updates.ps1
Last active May 17, 2017 01:30 — forked from joefitzgerald/win-updates.ps1
Install All Windows Updates, Rebooting As Many Times As Required
param($global:RestartRequired=0,
$global:MoreUpdates=0,
$global:MaxCycles=10)
function Check-ContinueRestartOrEnd() {
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
$RegistryEntry = "InstallWindowsUpdates"
switch ($global:RestartRequired) {
0 {
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry
<?php
$ec = Bitcoin::getEcAdapter();
$key = PrivateKeyFactory::fromWif('YOUR_WIF');
$outpoint = new OutPoint(Buffer::hex('YOUR_TRANSACTION', 32), 0);
$scriptPubKey = ScriptFactory::scriptPubKey()->payToPubKeyHash($key->getPublicKey());
$value = 0;