- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally after the first line
- When only changing documentation, include
[ci skip]
in the commit title - Consider starting the commit message with an applicable emoji
Discover gists
var CopyOption = Java.type("java.nio.file.StandardCopyOption"); | |
// put all files here >>> | |
var rootPathString = 'C:/Users/dump'; | |
var pathString; | |
//Create Root Folder for instance. | |
//var instance = util.executeReturnOneCol('SELECT sys_context(\'USERENV\',\'INSTANCE_NAME\') AS Instance FROM dual'); | |
//rootPathString = rootPathString + "/" + instance; |
groups: | |
- name: node_exporter_alerts | |
rules: | |
- alert: Node down | |
expr: up{job="monitoring-pi"} == 0 | |
for: 2m | |
labels: | |
severity: warning | |
annotations: | |
title: Node {{ $labels.instance }} is down |
<?php | |
function multiexplode ($delimiters,$string) { | |
$ready = str_replace($delimiters, $delimiters[0], $string); | |
$launch = explode($delimiters[0], $ready); | |
return $launch; | |
} | |
// uso | |
$exploded = multiexplode(array(",",".","|",":"),$text); |
My notes with the steps to install Arch Linux with encrypted BTRFS (LUKS2) and GRUB.
If you stumbled upon this document looking for a guide to install Arch Linux, I recommend checking the official installation guide on the Arch Linux Wiki: https://wiki.archlinux.org/title/Installation_guide. This is not a guide, just some notes that I'm taking while trying this setup and getting fragments of information from the internet.
If you're reading this document, you're probably one of many people confused about how to implement OOP-like classes in Lua. But no worries! This document aims to explain all the fundamental concepts in beginner-friendly language.
Before we start, we need to talk about metatables. These are Lua's way of allowing users to overload operators. Operators include
arithmetic +
, -
, *
, /
, etc., but also things like indexing tables a[b]
, creating new indices in tables a[b] = c
, function
calls, a(b, c, d)
, you get the idea.
We can set the metatable of a table using setmetatable(t, metatable)
. The metatable
is another table, that contains fields for overriding
defmodule TravelerWeb.SearchbarLive do | |
use TravelerWeb, :live_view | |
alias Phoenix.LiveView.JS | |
alias Traveler.Places | |
def mount(_params, _session, socket) do | |
socket = assign(socket, places: []) | |
{:ok, socket, layout: false} | |
end |
Tutorial simplificado para geração de certificados SSL para localhost manualmente.
- How to create an HTTPS certificate for localhost domains
- Convert a CERT/PEM certificate to a PFX certificate