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
*:80 | |
respond "Hello, world!" |
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
package fr.fusetim.g13-chroma; | |
import java.io.File | |
import java.io.PrintWriter | |
object Main extends App { | |
println("Hello world!") | |
val colors = (0, 1.0, 1.0) #:: ((120,1.0,1.0) #:: ((240,1.0,1.0) #:: chroma(0,0.9,1.0))); | |
val file = new File("/run/g13d/g13-0") |
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
FROM node:buster-slim | |
# Setup working dir | |
WORKDIR /usr/src/app | |
# Install deps | |
COPY package* ./ | |
RUN npm install -d | |
# Copy app |
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
FROM --platform=$TARGETPLATFORM python:3.8-slim-buster | |
ENTRYPOINT python -m bin | |
WORKDIR /usr/local/lib/rtd-bin | |
ARG TARGETPLATFORM | |
ARG BUILDPLATFORM | |
RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" > /log | |
# Install prerequisities |
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
FROM node:buster-slim | |
# Setup working dir | |
WORKDIR /usr/src/app | |
RUN mkdir /config | |
# Install deps | |
RUN npm install pm2 -g | |
# Copy app |
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
FROM rust:slim AS builder | |
RUN apt-get update -y && \ | |
apt-get install -y python-pip make g++ python-setuptools libssl-dev pkg-config rsync && \ | |
pip install dockerize && \ | |
rustup target add x86_64-unknown-linux-gnu | |
WORKDIR /app | |
COPY . . |
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
use std::collections::HashMap; | |
macro_rules! collection { | |
// map-like | |
($($k:expr => $v:expr),* $(,)?) => { | |
std::iter::Iterator::collect(std::array::IntoIter::new([$(($k, $v),)*])) | |
}; | |
// set-like | |
($($v:expr),* $(,)?) => { | |
std::iter::Iterator::collect(std::array::IntoIter::new([$($v,)*])) |
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
error setting log levels: unrecognized level: "verbose" | |
Initializing daemon... | |
go-ipfs version: 0.8.0-ce693d7e8 | |
Repo version: 11 | |
System version: amd64/linux | |
Golang version: go1.16.2 | |
2021-05-10T19:15:30.494+0200 INFO dht/RtRefreshManager starting refreshing cpl 0 with key CIQAAACT3UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA (routing table size was 0) | |
2021-05-10T19:15:30.494+0200 WARN dht/RtRefreshManager failed when refreshing routing table2 errors occurred: | |
* failed to query for self, err=failed to find any peer in table | |
* failed to refresh cpl=0, err=failed to find any peer in table |
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
{ | |
"API": { | |
"HTTPHeaders": { | |
"Access-Control-Allow-Methods": [ | |
"PUT", | |
"POST" | |
], | |
"Access-Control-Allow-Origin": [ | |
"http://webui.ipfs.io.ipns.localhost:8080", | |
"http://localhost:3000", |
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
{ | |
"API": { | |
"HTTPHeaders": { | |
"Access-Control-Allow-Origin": [ | |
"*" | |
] | |
} | |
}, | |
"Addresses": { | |
"API": [ |
OlderNewer