Skip to content

Instantly share code, notes, and snippets.

View ravage's full-sized avatar

Rui Miguel ravage

  • Portugal
  • 17:33 (UTC +01:00)
View GitHub Profile
{
"RNCA_report_type": "RNCA_Resource_status",
"RNCA_resource_id": "...",
"RNCA_resource_name": "...",
"report_version": "1",
"report_date": "2021-04-09 10:47:00",
"detail": [
{
"element_type": "(compute node, storage node, ...)",
"element_id": "...com significado local",
@ravage
ravage / get_cert_expire_info.rb
Created June 5, 2022 09:10
Fetch expiry date and other info from certificate
#!/usr/bin/env ruby
# frozen_string_literal: true
require "time"
require "openssl"
def get_expiry_date(host)
ctx = OpenSSL::SSL::SSLContext.new
sock = TCPSocket.new(host, 443)
@ravage
ravage / solidity.vim
Created February 23, 2023 17:35
Neomake Maker for solhint
function! neomake#makers#ft#solidity#solhint() abort
return {
\ 'args': ['-f', 'unix'],
\ 'errorformat':
\ '%f:%l:%c: %m %s',
\ }
endfunction