Skip to content

Instantly share code, notes, and snippets.

did:3:bafyreied6p42hyhldi46uace5cq3xcaddy5dblwtelbl5sj3uncwkefpme
@casualjim
casualjim / OVH IPv6 Ubuntu.md
Last active January 21, 2023 20:03
Actually working IPv6 dedicated server configuration for ubuntu

Configure IPv6 on Ubuntu 20.04 on OVH dedicated

Contrary to the guide, do this instead

the gateway is in the /56 network but so you have to get your ip in there.

Edit: /etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by the datasource. Changes
# Arch Linux Install Script (alis) configuration file
#
# Some values are preceded by a ! character, this means that the value is ignored.
# Some keys accept a single value others accept multiple values as annotated in the comments.
# init
KEYS="us"
LOG="false"
# partition
info:
title: Example
version: 1.0.0
schemes:
- http
swagger: "2.0"
paths:
/foo:
get:
responses:
use crate::health::pb::health_check_response::ServingStatus;
use crate::health::pb::health_server::{Health, HealthServer};
use crate::health::pb::{HealthCheckRequest, HealthCheckResponse};
use anyhow::Result;
use dashmap::DashMap;
use std::collections::{HashMap, HashSet};
use std::fmt::Error;
use std::fmt::Formatter;
use std::sync::Arc;
use tokio::sync::{mpsc, watch};
# Copyright 2018 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
swagger: '2.0'
info:
version: 1.0.0
title: Pinnacle - Bets API Reference
description: |
All about bets, place bets, get your bet history or current bet status.
# Authentication
API uses HTTP Basic access authentication.You need to send Authorization HTTP Request header:
@casualjim
casualjim / Dockerfile
Last active August 24, 2018 05:22
Dockerfile for a static binary scratch image with all the necessary data
FROM golang:alpine as base
RUN mkdir -p /stage/data /stage/etc/ssl/certs &&\
apk add --no-cache musl-dev gcc ca-certificates mailcap upx tzdata zip &&\
update-ca-certificates &&\
cp /etc/ssl/certs/ca-certificates.crt /stage/etc/ssl/certs/ca-certificates.crt &&\
cp /etc/mime.types /stage/etc/mime.types
WORKDIR /usr/share/zoneinfo
RUN zip -r -0 /stage/zoneinfo.zip .
@casualjim
casualjim / README.md
Last active March 16, 2020 14:36
json schema for pachyderm pipeline spec

JSON Schema

to use in visuat studio code:

in .vscode/settings.json

"json.schemas": [
    {
 "fileMatch": [
ETCD_VER=v3.2.9
tdnf install -y tar || true
# choose either URL
GOOGLE_URL=https://storage.googleapis.com/etcd
GITHUB_URL=https://github.com/coreos/etcd/releases/download
DOWNLOAD_URL=${GOOGLE_URL}
rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz