#timel
function and <time>
tag to generate human- and machine-readable date and time strings
{ | |
"$schema": "https://lnav.org/schemas/format-v1.schema.json", | |
"fail2ban_log": { | |
"title": "Fail2Ban Actions Log", | |
"description": "The log that summarizes the actions of Fail2Ban application.", | |
"url": "https://www.fail2ban.org/", | |
"multiline": false, | |
"regex": { | |
"f2b-found": { | |
"pattern": "(?<timestamp>.*) (?<module>fail2ban)\\.(?<feature>.*[^ ])[ \\t]+\\[.*\\]\\: (?<level>.*[^ ])[ \\t]+.* \\[(?<service>.*)\\] (?<action>Found) (?<host>\\S+)" |
Dim Options = New JsonWriterOptions | |
With options | |
.Indented = True | |
End With | |
Dim MemStream As New MemoryStream | |
Dim Writer As New Utf8JsonWriter(MemStream, Options) | |
Writer.WriteStartObject() |
Dim Options = New JsonWriterOptions | |
With options | |
.Indented = True | |
End With | |
Dim MemStream As New MemoryStream | |
Dim Writer As New Utf8JsonWriter(MemStream, Options) | |
Writer.WriteStartObject() |
#timel
function and <time>
tag to generate human- and machine-readable date and time strings
local p = {} --p stands for package | |
function p.TemplateExample(frame) | |
local SubPageName | |
local SubPageTitle | |
local Title | |
local Content | |
local pre = mw.html.create('pre') | |
local DoubleLF = string.char(10) .. string.char(10) |
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.1.0"> | |
<Header> | |
<Title>Widget comment</Title> | |
<Author>Luca Mauri</Author> | |
<Shortcut>WidComm</Shortcut> | |
<Description>Wrap a code widget in a customized HTML comment</Description> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Module MainPrompt | |
Public Const PromptSymbol As String = "TLA > " | |
Public Const ApplicationTitle As String = "Short name of the application" | |
Sub Main() | |
Dim Statement As String | |
Dim BrokenDownStatement As String() | |
Dim Command As String | |
Dim Args As String() | |
Dim Result As String |
Public Class SysUpTime | |
Public ReadOnly Property ErrorInResult As Boolean | |
Public ReadOnly Property ErrorDetails As String | |
Public ReadOnly Property LastStartup As DateTime | |
Get | |
Return DateTime.Now.Subtract(_UpTimeSpan) | |
End Get | |
End Property | |
Public ReadOnly Property UpTimeString As String |
Public Function Luhn(StringToCheck As String) As String | |
Dim CurrDigit As Integer | |
Dim TotalCounter As Integer | |
Dim DoubleDigit As Integer | |
TotalCounter = 0 | |
For i = StringToCheck.Length To 1 Step -1 | |
Try | |
CurrDigit = Integer.Parse(StringToCheck(i - 1)) |