This file contains 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 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 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 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 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 |