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
| No engine or GOST support via engine with your /usr/bin/openssl | |
| ########################################################### | |
| testssl.sh 3.1dev from https://testssl.sh/dev/ | |
| (c90bd84fe 2020-04-09 13:59:35 -- ) | |
| This program is free software. Distribution and | |
| modification under GPLv2 permitted. | |
| USAGE w/o ANY WARRANTY. USE IT AT YOUR OWN RISK! |
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
| .POSIX: | |
| all: | |
| # Recipes | |
| ## Build application | |
| ## $ make | |
| ## Run tests | |
| ## $ make test | |
| ## Install application |
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
| # The `SoftwareVersion` type represents a version number. | |
| # | |
| # An instance can be created from a version string which consists of a series of | |
| # segments separated by periods. Each segment contains one ore more alpanumerical | |
| # ASCII characters. The first segment is expected to contain only digits. | |
| # | |
| # There may be one instance of a dash (`-`) which denotes the version as a | |
| # pre-release. It is otherwise equivalent to a period. | |
| # | |
| # Optional version metadata may be attached and is separated by a plus character (`+`). |
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/sh | |
| # | |
| # This script ensures Crystal code is correctly formatted before committing it. | |
| # It won't apply any format changes automatically. | |
| # | |
| # Only staged files (the ones to be committed) are being processed, but each file is checked | |
| # entirely as it is stored on disc, even parts that are not staged. | |
| # | |
| # To use this script, it needs to be installed in the local git repository. For example by running | |
| # curl https://gist.githubusercontent.com/straight-shoota/fdaf4cf1954e084cd5abccf8f77975f6/raw/pre-commit > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit |
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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| clone_crystal_from_vagrant = lambda do |config| | |
| config.vm.provision :shell, privileged: false, inline: %( | |
| # Checkout crystal repository | |
| git clone /vagrant crystal | |
| ) | |
| end |
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
| require "json" | |
| module Crystal::Docs | |
| record Program, | |
| project_info : ProjectInfo, | |
| constants : Array(Constant), | |
| types : Array(Type), | |
| methods : Array(Method), | |
| macros : Array(Macro) |
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
| // Simple program to test support of SO_REUSEPORT | |
| // Adapted from https://blog.dubbelboer.com/2016/04/23/so-reuseport.html | |
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <sys/socket.h> | |
| #include <unistd.h> | |
| int main() { | |
| #ifdef SO_REUSEPORT |
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
| def bob | |
| 10.times do | |
| puts "B" | |
| sleep 0.006 | |
| end | |
| end | |
| def alice | |
| 3.times do | |
| puts "A" |
This file has been truncated, but you can view the full file.
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
| ; ModuleID = 'main_module' | |
| target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | |
| target triple = "x86_64-pc-linux-gnu" | |
| %String = type { i32, i32, i32, i8 } | |
| %"Slice(UInt8)" = type { i32, i1, i8* } | |
| %"Array(String)" = type { i32, i32, i32, %String** } | |
| %"->" = type { i8*, i8* } | |
| %"Array(Pointer(Void))" = type { i32, i32, i32, i8** } | |
| %Fiber = type { i32, i8*, %"(Event::Event | Nil)", i8*, i8*, %Fiber*, %Fiber*, %String*, %"(Proc(Nil) | Proc(Void))" } |
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 bash | |
| # | |
| # This script looks up the latest successfull nightly build of crystal on | |
| # Circle CI, extracts the build number of `dist_artifacts` job and retrieves | |
| # it's artifacts list. | |
| # | |
| # From this artifacts list, the specified tar package is downloaded and | |
| # extracted in $INSTALL_DIR. | |
| # The binaries `bin/crystal` and `bin/shards` are linked as `crystal-nightly` | |
| # and `shards-nightly` in `/usr/local/bin`. |