This file contains hidden or 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
| // Fetched at runtime from gist.githubusercontent.com via source.remote. | |
| // The Go-side resolver enforces HTTPS and verifies the host appears in | |
| // spec.permissions.importNet before invoking Deno; the URL is passed | |
| // directly to `deno run`, so this file is a fully self-contained shim | |
| // (reads request JSON from stdin, writes structured response to stdout). | |
| // | |
| // Crossplane v2 native composition: the Deployment + Service are emitted | |
| // DIRECTLY as composed resources (owned by the namespaced XR) — no | |
| // provider-kubernetes Object wrapper. The SDK-style helpers (to/fromModel/ | |
| // setDesiredComposedResources/condition) build the structured response; |
This file contains hidden or 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
| struct biski64 { | |
| uint64_t fast_loop{}; | |
| uint64_t mix{}; | |
| uint64_t loop_mix{}; | |
| static constexpr uint64_t splitmix64(uint64_t& x) { // NOLINT | |
| uint64_t z = (x += 0x9e3779b97f4a7c15uLL); | |
| z = (z ^ (z >> 30)) * 0xbf58476d1ce4e5b9uLL; | |
| z = (z ^ (z >> 27)) * 0x94d049bb133111ebuLL; | |
| return z ^ (z >> 31); |
This file contains hidden or 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/dotnet run | |
| #:sdk Microsoft.NET.Sdk.Web | |
| #:package HotChocolate.AspNetCore@* | |
| #:package FreeSql@* | |
| #:package FreeSql.Provider.Sqlite@* | |
| #:package FreeSql.Extensions.Linq@* | |
| #:package FreeSql.DbContext@* | |
| #:property TrimMode=partial |
This file contains hidden or 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
| sudo curl https://raw.githubusercontent.com/fernandoenzo/tailgate/master/systemd/tailgate-deny%40.service -o /etc/systemd/system/tailgate-deny\@.service | |
| sudo mkdir -p /etc/systemd/system/tailscaled.service.d/ | |
| sudo tee /etc/systemd/system/tailscaled.service.d/override.conf <<EOF | |
| [Unit] | |
| Wants=network-pre.target tailgate-deny@cilium_host.service | |
| EOF | |
| sudo systemctl daemon-reload | |
| sudo systemctl restart tailscaled |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Security.Principal; | |
| using System.Threading.Tasks; | |
| public class SigScanSharp | |
| { |
This file contains hidden or 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
| import { observer, inject } from 'mobx-react' | |
| import { observable, action } from 'mobx' | |
| import React, { Component } from 'react' | |
| import styled from 'styled-components' | |
| Span = styled.span""" | |
| color: brown; | |
| """ | |
| Title = styled.h1""" |
This file contains hidden or 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
| #pragma once | |
| #include <functional> // function | |
| #include <type_traits> // is_same | |
| #include <future> // extra: async | |
| #include <variant> // extra: get, holds_alternative | |
| #include <chrono> // high_resolution_clock, high_resolution_clock::time_point, _seconds | |
| #include <optional> | |
| #include <string> |
This file contains hidden or 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
| template <class T = void, class... Args> | |
| constexpr auto make_array(Args&&... t) { | |
| // T is not void: deduced array type is T | |
| if constexpr (!std::is_same<T, void>()) { | |
| return std::array<T, sizeof...(Args)> { std::forward<Args>(t)... }; | |
| } | |
| // T is void: deduced array type is U = std::common_type_t<Args...> | |
| using U = std::common_type_t<Args...>; | |
| // T is void and one of the argument is a specialization of std::reference_wrapper<U>: ill-formed |