Skip to content

Instantly share code, notes, and snippets.

View diegofd's full-sized avatar

Diego Fernández Durán diegofd

View GitHub Profile
#!/bin/bash
for file in `find /`; do dpkg -S $file > /dev/null 2>&1; if [ $? -ne 0 ]; then echo "Not in package $file"; fi; done;

Keybase proof

I hereby claim:

  • I am diegofd on github.
  • I am diegofd (https://keybase.io/diegofd) on keybase.
  • I have a public key whose fingerprint is C225 945F A4D2 D853 556A 0B40 93AD BF5D FA33 2496

To claim this, I am signing this object:

@diegofd
diegofd / checkendpoint
Created December 4, 2014 12:29
Check S3 endpoint availability in powershell
# Check for network connection
$s3endpoint = "s3-eu-west-1.amazonaws.com"
[int]$s3endpointPort = "80"
[int]$connWait = "1000"
$hasConnection = $false
[int]$retryMax = "12"
[int]$retryCount = "0"
[int]$retryWait = "10"
do {