2.0.0-p481 :001 > OpenSSL::SSL::SSLContext::DEFAULT_PARAMS
=> {:ssl_version=>"SSLv23", :verify_mode=>1, :ciphers=>"ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW", :options=>-2147482625}
2.0.0-p481 :002 > rating = JSON.parse(RestClient::Resource.new("https://www.howsmyssl.com/a/check" ).get)['rating']
=> "Bad"
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
apt-get update && apt-get install -y --no-install-recommends \ | |
wget | |
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - | |
echo "deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie-4.0 main | |
deb-src http://apt.llvm.org/jessie/ llvm-toolchain-jessie-4.0 main" >> /etc/apt/sources.list | |
apt-get update && apt-get install -y --no-install-recommends \ | |
clang-4.0 \ |
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
foobar |
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
gogs: | |
image: gogs/gogs:latest | |
ports: | |
- "3000:3000" | |
- "10022:22" | |
volumes: | |
- ./data:/data | |
drone: | |
image: drone/drone:0.4 | |
# build: . |
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
vault.barrier.* | |
name="vault_barrier" | |
method="$1" | |
vault.consul.* | |
name="vault_consul" | |
method="$1" | |
vault.route.*.* | |
name="vault_route" |
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
# Usage: gcloud builds submit --no-source | |
# | |
# Remember to first grant the cloud build service account permissions to access | |
# secret 'foo' | |
# | |
# gcloud beta secrets add-iam-policy-binding foo \ | |
# --member=serviceAccount:<project-number>@cloudbuild.gserviceaccount.com \ | |
# --role=roles/secretmanager.secretAccessor | |
steps: | |
# fetch the secret and write to a volume |
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
module github.com/tam7t/grpc-demo | |
go 1.17 | |
require ( | |
google.golang.org/grpc v1.40.0 | |
google.golang.org/grpc/examples v0.0.0-20220215234149-ec717cad7395 | |
) | |
require ( |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<component type="addon"> | |
<id>com.obsproject.Studio.Plugin.backgroundremoval</id> | |
<extends>com.obsproject.Studio</extends> | |
<name>obs-backgroundremoval Plugin</name> | |
<summary> An OBS plugin for removing background in portrait images (video), making it easy to replace the background when screen recording.</summary> | |
<url type="homepage">https://github.com/royshil/obs-backgroundremoval</url> | |
<metadata_license>CC0-1.0</metadata_license> | |
<project_license>MIT</project_license> | |
</component> |
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
/* tlsprox - minimal tls MITM transparent proxy... in go! | |
* by @tam7t | |
* | |
* Usage: | |
* If we want to MITM https://example.com first get example.com's ip address | |
* then add localhost to /etc/hosts: | |
* | |
* 127.0.0.1 example.com | |
* | |
* > go build tlsprox.go |
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
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"os" | |
"os/user" | |
"strconv" | |
) |
OlderNewer