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
function! neomake#makers#ft#solidity#solhint() abort | |
return { | |
\ 'args': ['-f', 'unix'], | |
\ 'errorformat': | |
\ '%f:%l:%c: %m %s', | |
\ } | |
endfunction |
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
Show hidden characters
{ | |
"cmd": ["rbenv", "exec", "ruby", "$file"], | |
"selector": "source.ruby" | |
} |
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
#!/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) |
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
{ | |
"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", |
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
{ | |
"RNCA_report_type": "RNCA_Resource_Usage", | |
"report_version": "1", | |
"report_date": "2021-04-09 10:47:00", | |
"RNCA_resource_id": "...", | |
"RNCA_proj_ID": "...", | |
"proj_resource_type": "string (HPC | CLOUD | OTHER)", | |
"items": [ | |
{ | |
"job_id": "uint", |
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
function slurm_job_submit(job_desc, part_list, submit_uid) | |
if job_desc.account == nil then | |
slurm.log_error("User %s did not specify an account.", job_desc.user_id) | |
slurm.log_user("Please speficy an account with every job submission.") | |
slurm.log_user("Check available accounts with: 'sacctmgr -P show assoc user=$USER format=account'.") | |
slurm.log_user("Specify the account with the flags -A or --account.") | |
return slurm.ESLURM_INVALID_ACCOUNT | |
elseif string.match(job_desc.work_dir, "^/home/*") then | |
slurm.log_error("User %s had workdir set to home directory.", job_desc.user_id) | |
slurm.log_user("Please don't run jobs from your home directory.") |
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
// Not thread safe | |
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/sealed | |
public sealed class Singleton { | |
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/static | |
private static Singleton instance = null; | |
// hide constructor from public interface | |
private Singleton() {} | |
public static Singleton Instance { |
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
#!/bin/sh | |
test -d /sys/firmware/efi && efibootmgr -o $(efibootmgr | grep "BootOrder" | sed -e 's/BootOrder\: 0000,\(.*\)/\1,0000/') |
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
#!/bin/sh | |
# /jffs/scripts/ddns-start | |
zone=<zone_id> | |
record=<record_id> | |
token=<bearer_token> | |
fqdn=<fqdn> | |
myip=$(/usr/sbin/nvram get wan0_ipaddr) |
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
static void Main(string[] args) | |
{ | |
Run().GetAwaiter().GetResult(); | |
} | |
static async Task Run() | |
{ | |
TcpClient client = new TcpClient("127.0.0.1", 8080); | |
NetworkStream stream = client.GetStream(); |
NewerOlder