- Download all files.
- Build the Crystal part:
crystal build --release --cross-compile --prelude ./no_main library.cr
^ You can leave this out
^ We want to link ourselves!
^ Use our custom prelude!
| #!/bin/bash | |
| OUTDIR=. | |
| while read -r db ; do | |
| while read -r table ; do | |
| if [ "$db" == "system" ]; then | |
| echo "skip system db" | |
| continue 2; |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "golang.org/x/net/webdav" |
| # Sample as to how to initialize s3 client to work with Minio API compatible - https://github.com/minio/minio | |
| # AWS CLI counterpart - https://docs.minio.io/docs/aws-cli-with-minio | |
| import boto3 | |
| s3 = boto3.resource('s3', | |
| endpoint_url='http://<minio_IP>:9000', | |
| config=boto3.session.Config(signature_version='s3v4') | |
| ) |
Using Homebrew on Mac OS X:
brew install jq
Add these aliases to your profile (e.g., ~/.zshrc, ~/.bashrc, ~/.profile, etc.):
alias hurlp='pbpaste | jq ".log.entries" | tee >(jq --raw-output "[.[] | .request.url] | sort | unique | .[]")'
alias hurld='pbpaste | jq ".log.entries" | jq --raw-output "[.[] | .request.url] | sort | unique | .[]" | harurls | tee >(xargs -n 1 curl -O $1)'
| --- a/ext/openssl/ossl_ssl.c | |
| +++ b/ext/openssl/ossl_ssl.c | |
| @@ -107,6 +107,18 @@ | |
| OSSL_SSL_METHOD_ENTRY(TLSv1), | |
| OSSL_SSL_METHOD_ENTRY(TLSv1_server), | |
| OSSL_SSL_METHOD_ENTRY(TLSv1_client), | |
| +#if defined(HAVE_TLSV1_2_METHOD) && defined(HAVE_TLSV1_2_SERVER_METHOD) && \ | |
| + defined(HAVE_TLSV1_2_CLIENT_METHOD) | |
| + OSSL_SSL_METHOD_ENTRY(TLSv1_2), | |
| + OSSL_SSL_METHOD_ENTRY(TLSv1_2_server), |
| #!/bin/sh | |
| # PATH TO YOUR HOSTS FILE | |
| ETC_HOSTS=/etc/hosts | |
| # DEFAULT IP FOR HOSTNAME | |
| IP="127.0.0.1" | |
| # Hostname to add/remove. | |
| HOSTNAME=$1 |
| package main | |
| import ( | |
| "log" | |
| "net/http" | |
| "net/http/httputil" | |
| ) | |
| func main() { | |
| http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { |
Generate a new Elixir project using mix and add cowboy and plug as dependencies in mix.exs:
defp deps do
[
{:cowboy, "~> 1.0.0"},
{:plug, "~> 0.8.1"}
]
end