http://xpra.org/
cd /etc/yum.repos.d/
curl -O https://winswitch.org/downloads/CentOS/winswitch.repo
yum install xpra
#启动一个X会话
add in ceph.conf
rgw_swift_custom_header = HTTP_ONESTSWIFT
# -*- coding: utf-8 -*-
import sys
import swiftclient
user = 'user1:swift'
rgw-period.stp
probe begin {
printf("ready\n");
}
global indent = 4;
probe process("/home/onest/ceph/build/bin/radosgw-admin").function("RGWPeriod::*").call {
printf("%s -> %s: %s\n", thread_indent(indent), ppfunc(), $$parms);
This file contains hidden or 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
| <NotificationConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><TopicConfiguration><Id>test</Id><Topic>arn:aws:sns:us-west-2:444455556666:sns-topic-xyz</Topic><Event>s3:ObjectCreated:Post</Event><Event>s3:ObjectRemoved:Delete</Event><Filter><S3Key><FilterRule><Name>Preifx</Name><Value>df</Value></FilterRule></S3Key></Filter></TopicConfiguration><TopicConfiguration><Id>test1</Id><Topic>arn:aws:sns:us-west-2:444455556666:sns-topic-xyz</Topic><Event>s3:ObjectCreated:Put</Event><Filter><S3Key><FilterRule><Name>Prefix</Name><Value>test</Value></FilterRule><FilterRule><Name>Suffix</Name><Value>.jpg</Value></FilterRule></S3Key></Filter></TopicConfiguration></NotificationConfiguration> |
This file contains hidden or 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 | |
| DOWNLOAD_SERVER=https://${1} | |
| FILEKEY=${2} | |
| resolv_downpage(){ | |
| HTML="$(curl ${DOWNLOAD_SERVER}/download/${FILEKEY}.html -c /tmp/tmp_cookie)" | |
| export DOWNADD=$(echo ${HTML} | grep -Po "'\/files\/.*?'" | awk -F \' '{print $2}') | |
| export FILENAME=$(echo ${HTML} | grep -Po '<title>.*?</title>' | awk '{print $3}') | |
| } |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import boto3 | |
| client = boto3.client('s3') | |
| Bucket = 'a-bucket' | |
| Prefix = 'a-prefix' # leave blank to delete the entire contents | |
| IsTruncated = True | |
| MaxKeys = 1000 | |
| KeyMarker = None |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Mobile HLS video</title> | |
| </head> | |
| <body> | |
| <h1>Mobile HLS video</h1> |
NewerOlder