Use _NS_4445425547
or NS🐞
for enables debuggging panel. When enabled it, a ladybug 🐞 menu appears in the app menu bar.
“4445425547” means DEBUG in Unicode table.
0x44=D
0x45=E
0x42=B
0x55=U
0x47=G
- interface: {{ 'bond0' if hostvars[item].bond_interfaces | length > 0 else 'eth0' }} | |
dhcp: false | |
addresses: | |
- {{ hostvars[item].ip }} | |
routes: | |
- network: 0.0.0.0/0 | |
gateway: {{ hostvars[item].ip | ipaddr('1') | ipaddr('address') }} | |
{% if hostvars[item].bond_interfaces | length > 0 %} | |
bond: | |
interfaces: {{ hostvars[item].bond_interfaces }} |
// ==UserScript== | |
// @name Activate all Itch.io Bundle downloads | |
// @version 1 | |
// @include https://itch.io/bundle/download/* | |
// @include https://*.itch.io/* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js | |
// @grant none | |
// ==/UserScript== | |
$(document).ready(function() { |
#include <sys/socket.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <sys/sendfile.h> | |
#include <unistd.h> | |
#include <netinet/in.h> | |
void main() { | |
int s = socket(AF_INET, SOCK_STREAM, 0); | |
struct sockaddr_in addr = { |
Not all random values are created equal - for security-related code, you need a specific kind of random value.
A summary of this article, if you don't want to read the entire thing:
Math.random()
. There are extremely few cases where Math.random()
is the right answer. Don't use it, unless you've read this entire article, and determined that it's necessary for your case.crypto.getRandomBytes
directly. While it's a CSPRNG, it's easy to bias the result when 'transforming' it, such that the output becomes more predictable.uuid
, specifically the uuid.v4()
method. Avoid node-uuid
- it's not the same package, and doesn't produce reliably secure random values.random-number-csprng
.You should seriously consider reading the entire article, though - it's
// CustomTime provides an example of how to declare a new time Type with a custom formatter. | |
// Note that time.Time methods are not available, if needed you can add and cast like the String method does | |
// Otherwise, only use in the json struct at marshal/unmarshal time. | |
type CustomTime time.Time | |
const ctLayout = "2006-01-02 15:04:05 Z07:00" | |
// UnmarshalJSON Parses the json string in the custom format | |
func (ct *CustomTime) UnmarshalJSON(b []byte) (err error) { |
curl --include \ | |
--no-buffer \ | |
--header "Connection: Upgrade" \ | |
--header "Upgrade: websocket" \ | |
--header "Host: example.com:80" \ | |
--header "Origin: http://example.com:80" \ | |
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
--header "Sec-WebSocket-Version: 13" \ | |
http://example.com:80/ |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"golang.org/x/crypto/ssh" | |
kh "golang.org/x/crypto/ssh/knownhosts" |
import json | |
import urllib.parse | |
from dataclasses import InitVar, dataclass | |
from datetime import datetime, timedelta | |
from typing import Protocol | |
import httpx | |
import llm | |
import streamlit as st |