I hereby claim:
- I am nickadam on github.
- I am nickadam (https://keybase.io/nickadam) on keybase.
- I have a public key ASDWDGJwwBh6pkFBalte_kaTbu5k6yTgBUTDVxe8hn44gAo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Install clamav | |
| apt-get update | |
| apt-get -y install clamav clamav-daemon | |
| # Exclude everything but /home/ and /tmp/ | |
| ls -d /*/ | grep -v "/home/" | grep -v "/tmp/" | sed 's/^/ExcludePath ^\//g' >> /etc/clamav/clamd.conf | |
| # Update clam signatures |
| //// left side | |
| lctrl-low 12l lwin-low 4l lalt-low 15r space-low 15r caps-led+ 21l | |
| lctrl-high 5r lwin-high 11l lalt-high 7l space-high 10l caps-res- 15l | |
| lshft-low 4l z-low 14r x-low 14r c-low 14r v-low 14r b-low 16r | |
| lshft-high 2l z-high 17r x-high 9l c-high 6r v-high 6l b-high 6l | |
| capsl-low 4l a-low 13r s-low 13r d-low 13r f-low 13r g-low 15r | |
| capsl-high 9l a-high 17r s-high 9l d-high 6r f-high 6l g-high 6l | |
| tab-low 4l q-low 9r w-low 9r e-low 9r r-low 9r t-low 4l | |
| tab-high 17r q-high 17r w-high 9l e-high 6r r-high 6l t-high 6l |
I hereby claim:
To claim this, I am signing this object:
| # evidently there is an entirely different area in o365 where you can do the same thing as an inbox rule but it's not an inbox rule | |
| # Get-Mailbox -ResultSize Unlimited | select WindowsEmailAddress,AccountDisabled,DeliverToMailboxAndForward,ForwardingAddress,ForwardingSmtpAddress | Export-Csv -NoTypeInformation Forward.csv | |
| # get msol creds for reconnecting | |
| $creds = Get-Credential | |
| # First get a list of all users from on prem AD so it doesn't time out | |
| Get-ADUser -Properties emailaddress -Filter {(Enabled -eq $True) -and (ProxyAddresses -like 'SMTP*')} | Export-Csv -NoTypeInformation Users.csv | |
| # write the header |
| version: '3.5' | |
| services: | |
| master: | |
| image: redis:5 | |
| command: ["redis-server", "--appendonly", "yes"] | |
| volumes: | |
| - db:/data | |
| ports: | |
| - target: 6379 | |
| published: 6379 |
| # credit to http://www.isolation.se/change-mac-address-with-powershell-of-a-wireless-adapter/ | |
| function random-mac { | |
| $mac = "02" | |
| while ($mac.length -lt 12) | |
| { | |
| $mac += "{0:X}" -f $(get-random -min 0 -max 16) | |
| } | |
| $Delimiter = "-" | |
| for ($i = 0 ; $i -le 10 ; $i += 2) |
| Connect-MsolService | |
| Set-MsolUser -UserPrincipalName {upn} -StrongAuthenticationRequirements @() |
| version: '3.5' | |
| services: | |
| minio1: | |
| image: minio/minio:RELEASE.2019-07-17T22-54-12Z | |
| hostname: minio1 | |
| volumes: | |
| - minio1-data:/export | |
| ports: | |
| - target: 9000 | |
| published: 9009 |
| #!/bin/sh | |
| SRC="$1" | |
| DST="$2" | |
| SECRET_NAME="$3" | |
| SLEEP=3 | |
| if [ "$SRC" = "localhost" ] | |
| then | |
| secret=$(docker service create --restart-condition=none --name copy_secret --secret $SECRET_NAME -d alpine cat /run/secrets/$SECRET_NAME >/dev/null; sleep $SLEEP; docker service logs --raw copy_secret; docker service rm copy_secret>/dev/null) |