choco install [package] -a (use -a or -y to install without any prompts)
choco feature enable -n allowGlobalConfirmation (sets global default to not prompt, assume yes)
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
) | |
Windows Registry Editor Version 5.00 | |
; https://www.reddit.com/r/PowerShell/comments/b1ew3f/is_there_a_way_to_create_an_explorer_shell/? | |
[HKEY_CLASSES_ROOT\.rmt] | |
[HKEY_CLASSES_ROOT\.rmt\shell] | |
[HKEY_CLASSES_ROOT\.rmt\shell\Posted] |
// +build windows | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"syscall" | |
"unsafe" | |
) |
// demonstrates how to either write to STDOUT or to a buffer | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) |
@echo off | |
rem use -r to return strings without surrounding double-quotes | |
jq -r ".Buckets | .[] | .Name" s3.json |
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
awsNews "github.com/circa10a/go-aws-news" | |
) | |
func main() { |
<# | |
Remove_PDF_Pages | |
-John Taylor | |
Jan-7-2020 | |
This is a simple, GUI frontend to pdfcpu. | |
https://github.com/pdfcpu/pdfcpu | |
The resulting PDF will have the filename appended with "--RemovedPages.pdf" | |
#> |
#!/bin/bash | |
# Side note: | |
# for better performance append to /etc/sysctl.conf (and then reboot) | |
# vm.vfs_cache_pressure = 50 | |
# vm.swappiness = 10 | |
# vm.dirty_writeback_centisecs = 1500 | |
# location of backups | |
BASE="/data/backups" |
/* | |
Given an AD group name, return all of the AD Contacts that belong to that group | |
Return a list of strings in this format: | |
CN Name|Email Address | |
*/ | |
using System.DirectoryServices; |