KinD with inlets.dev
Expose Kubernetes ClusterIP services with inlets.dev
# Linux
sudo curl -Lo /usr/local/bin/kind \
Expose Kubernetes ClusterIP services with inlets.dev
# Linux
sudo curl -Lo /usr/local/bin/kind \
import BaseHTTPServer | |
import SimpleHTTPServer | |
import socket | |
class HTTPServer6(BaseHTTPServer.HTTPServer): | |
address_family = socket.AF_INET6 | |
if __name__ == '__main__': |
If you're working on a project that requires you to use a separate account on GitHub/GitLab, it can be a bit tricky to set up. Your ssh key identifies you uniquely, so you can't use the same key for two different accounts. However, git doesn't have a simple way for you to configure an ssh key for a repo or a group of repos. You have to do it by creating an alias for the host name and associating a different key with that host name. Here's one way to do it.
Note: Replace all instances of something
with the project or client name.
ssh-keygen -f ~/.ssh/id_rsa-something [other-options]
#!/usr/bin/env python | |
""" | |
http://www.openldap.org/faq/data/cache/347.html | |
As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4 | |
Author: Roberto Aguilar <roberto@baremetal.io> | |
""" | |
import hashlib | |
import os |
#Copyright 2021 Fabian Bosler | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, | |
# modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom | |
# the Software is furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the | |
# Software. |
var QuillExtend = function(child, parent) { for (var key in parent) { if ({}.hasOwnProperty.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | |
PopoverToolbar = (function(superClass) { | |
QuillExtend(PopoverToolbar, superClass); | |
var _ = Quill.require('lodash'); | |
var dom = Quill.require('dom'); | |
// lodash has debounce but quill is not adding it in his dist | |
var debounce = function debounce(fn, quietMillis, ctx) { |
from starlette.applications import Starlette | |
from starlette.responses import HTMLResponse | |
from starlette.websockets import WebSocket | |
from jinja2 import Template | |
import uvicorn | |
template = """\ | |
<!DOCTYPE HTML> | |
<html> |
""" | |
Exports issues from a list of repositories to individual csv files. | |
Uses basic authentication (Github username + password) to retrieve issues | |
from a repository that username has access to. Supports Github API v3. | |
Forked from: unbracketed/export_repo_issues_to_csv.py | |
""" | |
import argparse | |
import csv | |
from getpass import getpass | |
import requests |
Note - this article assumes you have reasonable familiarity with systemd
, networkd
and nspawn/machinectl
There seem to be a lot of references on the internet for nspawn networking with a bridge - but not on simply using the stock veth
networking with static addresses. The default behaviour of nspawn
(as of 24/03/20 and systemd:245
on Arch) is to:
/lib/systemd/network/80-container-ve.network
)/lib/systemd/network/80-container-host0.network
)from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import Column, ForeignKey, Integer, String, ForeignKeyConstraint | |
from sqlalchemy import create_engine | |
from sqlalchemy.orm import sessionmaker, relationship | |
Model = declarative_base() | |
class Parent(Model): | |
__tablename__ = 'parent' | |
id = Column(Integer, primary_key=True) |