Map [1]
Operation | Time Complexity |
---|---|
Access | O(log n) |
Search | O(log n) |
Insertion | O(n) for < 32 elements, O(log n) for >= 32 elements [2] |
Deletion | O(n) for < 32 elements, O(log n) for >= 32 elements |
package main | |
import ( | |
"crypto/tls" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/textproto" |
{ | |
"__inputs": [ | |
{ | |
"name": "DS_PROMETHEUS", | |
"label": "Prometheus", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
defmodule Box do | |
defmacro __using__(_env) do | |
quote do | |
import Box | |
end | |
end | |
@doc """ | |
Define module with struct and typespec, in single line |
#!/bin/bash | |
# This script builds a (hopefully) working gcc based cross compiler | |
# Update to latest stable release | |
BINUTILS_VERSION=2.27 | |
GMP_VERSION=6.1.2 | |
MPFR_VERSION=3.1.5 | |
MPC_VERSION=1.0.3 | |
ISL_VERSION=0.16.1 | |
GCC_VERSION=6.3.0 |
#!/bin/bash | |
# Source this file in your .bash_profile e.g.: | |
# | |
# source ~/gitcheckouts/vpn_heplers/.vpn_helpers.sh | |
# | |
# Note: This script works best with NOPASSWD: ALL configured in your sudoers file: | |
# /etc/sudoers: | |
# %admin ALL=(ALL) NOPASSWD: ALL | |
# |
## In no particular order. I'm pulling these from a bookmark folder, I'll work on labeling as I have time. Hope these help. Will be mixing in Linux reference as well. | |
Sidenote: the macOS Internals series is amazing, although might be out of reach for some. However if having a hard time deciding (I definitely way) and in budget, In my opinion, they are worth the price. I've worked through Volume II, waiting on Volume III. | |
As always, most of what we need in our world can be found open sourced and provided by some of the brightest, but it can be a frustrating journey finding material. | |
https://www.intezer.com/blog/malware-analysis/elf-malware-analysis-101-linux-threats-no-longer-an-afterthought/ | |
http://timetobleed.com/dynamic-linking-elf-vs-mach-o/ | |
https://github.com/apple/darwin-xnu | |
https://opensource.apple.com/source/xnu/ | |
https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/Architecture/Architecture.html |
$ErrorActionPreference = "Stop" | |
$notificationTitle = "Notification: " + [DateTime]::Now.ToShortTimeString() | |
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] > $null | |
$template = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText01) | |
#Convert to .NET type for XML manipuration | |
$toastXml = [xml] $template.GetXml() | |
$toastXml.GetElementsByTagName("text").AppendChild($toastXml.CreateTextNode($notificationTitle)) > $null |
There's something out of whack with the consistent hash algorithm used by swarm (libring):
libring
iex> ring = HashRing.new()
iex> ring = HashRing.add_node(ring, :a@nohost)
iex> ring = HashRing.add_node(ring, :b@nohost)
iex> ring = HashRing.add_node(ring, :c@nohost)
iex> ring = HashRing.add_node(ring, :d@nohost)