This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name *.mp4 -exec md5sum '{}' ';' | while read sum file ; do cp "$file" /mnt/tmp-move/"$sum".mp4 ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# This script looks for the first argument to be in single quotes and relative to the base (and obviously a ccsecure file!) | |
# CipherCloud is annoying, but not hard. Lets manipulate this to extract! | |
open /Applications/CipherCloud.app "$1" | |
# Lets find the parent directory for each file, to place the extracted file after done | |
parentdir="$(dirname "$1")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on the remote server you want to use to send a file, you run: | |
# curl -F "file=@/log.txt" http://100.100.100.100:8000/ | |
# this will create the file log.txt in /tmp that will ideally containt he log.txt from the remote machine | |
from http.server import SimpleHTTPRequestHandler | |
import os | |
class FileUploadHandler(SimpleHTTPRequestHandler): | |
def do_POST(self): | |
content_length = int(self.headers['Content-Length']) |
OlderNewer