Skip to content

Instantly share code, notes, and snippets.

View AndriMar's full-sized avatar

Andri Mar Björgvinsson AndriMar

View GitHub Profile
@AndriMar
AndriMar / move_movie.sh
Created November 15, 2017 22:25
Script to move file to folder with same name
#!/bin/bash
echo "Process folder $1"
for file in $1
do
if [[ -f $file ]]; then
FILEPATH=`echo $file | sed 's/ /./g'`
FOLDER=${FILEPATH%.*}
echo "Create folder $FOLDER"
mkdir $FOLDER
echo "$file - > $FOLDER"
package HTTPCheck
import (
"crypto/md5"
"encoding/hex"
"fmt"
"net"
"net/http"
"time"
//timeout_event
//200 Events
//statuscode Events
package events
import (
"fmt"
"time"
datadog "github.com/zorkian/go-datadog-api"