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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"time" | |
"github.com/aws/aws-sdk-go-v2/aws" |
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
package pocketbase | |
import ( | |
"errors" | |
"fmt" | |
"time" | |
"github.com/duke-git/lancet/v2/convertor" | |
"github.com/go-resty/resty/v2" | |
"golang.org/x/sync/singleflight" |
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
public function aws() { | |
$bucket = "bucket"; | |
$key = "your-key"; | |
$secret = "your-secret"; | |
$base = "http://e24files.com/"; | |
$s3 = \Aws\S3\S3Client::factory([ | |
"key" => $key, | |
"secret" => $secret, | |
"base_url" => $base, |
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
$s3 = \Aws\S3\S3Client::factory([ | |
"version" => "latest", | |
"key" => "c0e2xxxxxxxxxxxxxxxx", | |
"secret" => "fpZ1Rxxxxxxxxxxxxxxxx", | |
"base_url" => "https://e24files.com", | |
]); | |
$objects = $s3->getIterator('ListObjects', ["Bucket" => "d3j9939jdjsskdk430sa", "PathStyle" => true]); | |
foreach ($objects as $o) { | |
var_dump($o["Key"]); |
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
alias ll='ls -alFthr' | |
export PS1='\[\033[0;35m\]\u\[\033[0;32m\]\w\[\033[0m\]$\[\033[0m\] ' | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
export SVN_EDITOR="/usr/bin/vi" | |
export GOROOT=$HOME/Programs/go | |
export PATH=$PATH:$GOROOT/bin | |
export GOPATH=$HOME/Programs/gopath | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
export GOMAXPROCS=6 |