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
Architecture: aarch64 | |
CPU op-mode(s): 32-bit, 64-bit | |
Byte Order: Little Endian | |
CPU(s): 16 | |
On-line CPU(s) list: 0-15 | |
Vendor ID: ARM | |
Model name: Neoverse-V1 | |
Model: 1 | |
Thread(s) per core: 1 | |
Core(s) per cluster: 16 |
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
VERSION 0.8 | |
FROM debian:bookworm-slim | |
WORKDIR /app | |
init: | |
RUN apt-get update | |
RUN apt-get install -y curl dnsutils host gnupg python3 ca-certificates make g++ git | |
RUN curl -sLO https://raw.githubusercontent.com/babashka/babashka/master/install && chmod +x install && ./install | |
RUN sleep 5000 | |
RUN bb --version |
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
var http = require('http'); | |
var net = require('net'); | |
var url = require('url'); | |
var proxy = http.createServer(); | |
// proxy an HTTP request | |
proxy.on('request', function(req, res){ | |
var uri = url.parse(req.url); | |
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
(defmacro as-function [f] | |
`(reify java.util.function.Function | |
(apply [this arg#] | |
(~f arg#)))) | |
(defmacro as-consumer [f] | |
`(reify java.util.function.Consumer | |
(accept [this arg#] | |
(~f arg#)))) |
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
–ctrl a c -> create new window | |
–ctrl a A -> set window name | |
–ctrl a w -> show all window | |
–ctrl a 1|2|3|… -> switch to window n | |
–ctrl a ” -> choose window | |
–ctrl a ctrl a -> switch between window | |
–ctrl a d -> detach window | |
–ctrl a ? -> help | |
–ctrl a [ -> start copy, move cursor to the copy location, press ENTER, select the chars, press ENTER to copy the selected characters to the buffer | |
–ctrl a ] -> paste from buffer |
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
(ns yd.seed.core | |
(:require [malli.core :as m] | |
[malli.error :as me] | |
[malli.generator :as mg])) | |
(def event-types | |
[:enum | |
:post | |
:comment | |
:reaction |
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
383981 | |
2021-12-03 03:02:44.754101; 40.00 %RH; -50.00 °C | |
383931 | |
2021-12-03 03:02:46.927674; 40.00 %RH; -50.00 °C | |
383980 | |
2021-12-03 03:02:49.106408; 40.00 %RH; -50.00 °C | |
383999 | |
2021-12-03 03:02:51.284882; 40.00 %RH; -50.00 °C | |
384063 | |
2021-12-03 03:02:53.463237; 41.00 %RH; -50.00 °C |
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
#!/bin/bash | |
curl -X POST -d @- $1 --header "Content-Type:application/json" |
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
const R = require('ramda') | |
const maybeFoo = next => async item => { | |
console.log('maybeFoo', item) | |
item.data++ | |
return next(item) | |
} | |
const maybeBar = next => async item => { | |
console.log('maybeBar', item) |
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
#! /bin/bash | |
cust_func(){ | |
echo "Do something $1 times..." | |
sleep 1 | |
} | |
# For loop 5 times | |
for i in {1..5} | |
do |
NewerOlder