Skip to content

Instantly share code, notes, and snippets.

@jahands
jahands / Get-DirHash.ps1
Last active November 18, 2024 08:38
Get hash of entire directory in powershell.
Function Get-DirHash {
[Cmdletbinding()]
Param(
[Parameter(Mandatory=$true)]
[ValidateScript({
if(Test-Path -Path $_ -ErrorAction SilentlyContinue)
{
return $true
}
else
Get-ADGroup -Filter { Name -like "*_Managers" } | select -ExpandProperty Name | foreach{
Add-ADGroupMember $_ User
}
@jahands
jahands / Sevadus-Vods.txt
Last active February 25, 2016 20:02
A list of all vods of Sevadus on Twitch.tv
http://www.twitch.tv/sevadus/v/3591449
http://www.twitch.tv/sevadus/v/3592920
http://www.twitch.tv/sevadus/v/3593556
http://www.twitch.tv/sevadus/v/3593564
http://www.twitch.tv/sevadus/v/3595318
http://www.twitch.tv/sevadus/v/3596316
http://www.twitch.tv/sevadus/v/3597589
http://www.twitch.tv/sevadus/v/3599818
http://www.twitch.tv/sevadus/v/3602718
http://www.twitch.tv/sevadus/v/3604021
./build.bash
# github.com/mholt/caddy/caddy/https
caddy/https/client.go:37: cannot use &leUser (type *User) as type acme.User in argument to acme.NewClient:
*User does not implement acme.User (wrong type for GetPrivateKey method)
have GetPrivateKey() crypto.PrivateKey
want GetPrivateKey() *rsa.PrivateKey
caddy/https/https.go:407: undefined: acme.EC384
curl -s -D - https://f000.backblaze.com/file/yevyev/gif/Yev-pushups_sm.gif -o /dev/null
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: max-age=0, no-cache, no-store
x-bz-file-name: gif/Yev-pushups_sm.gif
x-bz-file-id: 4_z0c383f22d5dcffcf4cf40519_f1085ae37d422cdab_d20151125_m180511_c000_v0001014_t0023
x-bz-content-sha1: 874b8b3c87da9ce75fc1a20f54bb56a4d228c0fb
Accept-Ranges: bytes
x-bz-info-src_last_modified_millis: 1446844170000
Content-Type: image/gif
@jahands
jahands / colonelwill.txt
Created March 9, 2016 22:38
List of vod links for twitch.tv/colonelwill
http://www.twitch.tv/colonelwill/v/53221003
http://www.twitch.tv/colonelwill/v/53035587
http://www.twitch.tv/colonelwill/v/52993876
http://www.twitch.tv/colonelwill/v/52967063
http://www.twitch.tv/colonelwill/v/52868087
http://www.twitch.tv/colonelwill/v/52837476
http://www.twitch.tv/colonelwill/v/52817667
http://www.twitch.tv/colonelwill/v/52770812
http://www.twitch.tv/colonelwill/v/52654533
http://www.twitch.tv/colonelwill/v/52650532
@jahands
jahands / Dockerfile
Created June 5, 2016 21:16
Caddy custom Dockerfile
FROM ubuntu:16.04
RUN apt-get update -q \
&& apt-get install wget -yq \
&& rm -rf /var/lib/apt/lists/*
RUN wget -qO- https://getcaddy.com | bash -s git
EXPOSE 443 80
@jahands
jahands / install_latest_docker_compose.sh
Created June 8, 2016 18:33 — forked from luislobo/install_latest_docker_compose.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"