import "array"
array.from(rows: [
{_time: 2021-01-01T00:00:00Z, _value: "foo"},
{_time: 2020-01-02T00:00:00Z, _value: "bar"}
])
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
| use rustls; | |
| let roots = rustls::RootCertStore::empty(); | |
| let mut tls = rustls::ClientConfig::builder() | |
| .with_safe_defaults() | |
| .with_root_certificates(roots) | |
| .with_no_client_auth(); | |
| tls.key_log = Arc::new(rustls::KeyLogFile::new()); | |
| let client = Arc::new( |
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/sbin/nft -f | |
| # see https://unix.stackexchange.com/questions/740061/how-do-you-duplicate-all-udp-traffic-on-a-port-range-using-nftables/ | |
| # sends all duplicated packets to 10.0.0.1 | |
| # run this before applying this file | |
| # sudo ip addr add 10.0.0.1/24 dev lo | |
| # clean up with | |
| # sudo ip addr delete 10.0.0.1/24 dev lo |
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
| /* results on 24 threads, Linux, Ryzen 5900X, 64GB RAM, rust 1.66 release mode | |
| pubkey generation cost 13.703447ms | |
| filling up 8 channels cost 1.299627336s | |
| insert on thread_5 cost 204.928433ms | |
| insert on thread_2 cost 202.868308ms | |
| insert on thread_4 cost 219.480851ms | |
| insert on thread_0 cost 213.074428ms | |
| insert on thread_6 cost 213.296481ms | |
| insert on thread_3 cost 234.825416ms | |
| insert on thread_1 cost 218.522672ms |
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
| /* results on 24 threads, Linux, Ryzen 5900X, 64GB RAM, rust 1.66 release mode | |
| mutex st: 3.504602ms | |
| mutex mt 24 threads: 966.566131ms | |
| rwlock st: 4.115984ms | |
| rwlock mt 24 threads: 1.639819526s | |
| parking_lot st: 4.255349ms | |
| parking_lot mt 24 threads: 1.336455132s | |
| try channel st: 18.446771ms | |
| try channel mt 24 threads: 3.152402156s | |
| new channel st: 45.410769ms |
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
| [{ | |
| "address": "16v7w7fKBcw1aJiHae6Ma9rgUQG6MQvgNa", | |
| "balance": 2551004338039 | |
| }, | |
| { | |
| "address": "16v7w7fKBcw1aJiHae6Ma9rgUQG6MQvgNa", | |
| "balance": "a" | |
| }] |
Employee at Musicly first Launched tiktok in US + EU with 10-15 person team
Wants to connect with the influence market Idea: livestreaming app. There are struggles for ppl with ~10k follower count. No contact from brand Example: Korean skin care. There are influencers who have small audiences with very high conversion rates, deep knowledge Looking to pay with stickers, coins, targeting the beauty vertical
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
| FROM ubuntu:xenial | |
| WORKDIR /root | |
| EXPOSE 1084 1055 2325 | |
| #Ports in use: | |
| #panel 1084 | |
| #flexlm 1055 | |
| #interconnect 2325 | |
| RUN apt update && apt install -y wget lsb-core libfreetype6 libxext6 libsm6 libxrender1 libfontconfig1 && rm -rf /var/lib/apt/lists/*; |
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 React, {ErrorInfo} from 'react'; | |
| export default class ErrorBoundary extends React.Component<{}, { hasError: boolean }> { | |
| constructor(props: {}) { | |
| super(props); | |
| this.state = {hasError: false}; | |
| } | |
| static getDerivedStateFromError(error: Error) { // Update state so the next render will show the fallback UI. | |
| return {hasError: true}; |