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
# frozen_string_literal: true | |
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rails', '=6.1.5.1' | |
gem 'sqlite3' | |
end |
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
#include <stdio.h> | |
#include <sodium.h> | |
const char *rand_five_implementation_name(void) { | |
return "five"; | |
} | |
uint32_t rand_five_random(void) { | |
return 5; | |
} |
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 EncodedAttr | |
ENCODINGS = %i(raw b64 url_b64) | |
module ClassMethods | |
def encoded_attr(name, default_encoding:, encodings: ENCODINGS) | |
raise ArgumentError unless ENCODINGS.include?(default_encoding) | |
encodings.each do |encoding| | |
if encoding == default_encoding | |
alias_method "#{encoding}_#{name}", name |
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
require "openssl" | |
begin | |
require "faraday" | |
rescue LoadError | |
puts "You need the 'faraday' gem for making HTTP requests. Run 'gem install faraday'" | |
exit 1 | |
end | |
DIGEST = OpenSSL::Digest::SHA256 |
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 ( | |
"bufio" | |
"fmt" | |
"io" | |
"os" | |
"strconv" | |
"time" | |
) |
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
$ bundle exec rake | |
/Users/mastahyeti/.rbenv/versions/2.3.3/bin/ruby -I/Users/mastahyeti/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib:/Users/mastahyeti/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-support-3.6.0/lib /Users/mastahyeti/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb | |
Randomized with seed 47449 | |
Acme::Client::SelfSignCertificate | |
sets the certificates version (FAILED - 1) | |
sets the certificates serial number (FAILED - 2) | |
generate a self sign certificate | |
generate a self sign certificate from a provided private key (FAILED - 3) |
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 | |
/* | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define CK_BYTE_PTR unsigned char * | |
#define CK_ULONG unsigned long long | |
typedef struct CK_GCM_PARAMS { | |
CK_BYTE_PTR pIv; | |
CK_ULONG ulIvLen; |
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
query($id: ID!) { | |
node(id: $id) { | |
... on AssignedEvent { | |
actor { | |
id | |
} | |
issue { | |
id | |
} | |
repository { |
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
test |
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 ( | |
"crypto/sha256" | |
"fmt" | |
"hash" | |
) | |
type Signer struct { | |
hash.Hash |
NewerOlder