Skip to content

Instantly share code, notes, and snippets.

@boern
boern / git-commit-template.md
Created March 6, 2022 05:10 — forked from lisawolderiksen/git-commit-template.md
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@boern
boern / tmux.md
Created August 2, 2021 10:34 — forked from Bekbolatov/tmux.md
Clean tmux cheat-sheet

Clean tmux cheat-sheet

By resources

sessions

list-sessions        ls         -- List sessions managed by server
new-session          new        -- Create a new session
@boern
boern / backtrader-ccxt.py
Created September 17, 2020 05:34 — forked from FiV0/backtrader-ccxt.py
Backtrader with ccxt two datafeeds
# !/usr/bin/env python
# -*- coding: utf-8; py-indent-offset:4 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import sys
import time
from datetime import datetime, timedelta
import backtrader as bt
import ccxt
@boern
boern / maven-oracle-jdk.Dockerfile
Created August 21, 2020 06:45 — forked from vnnvanhuong/maven-oracle-jdk.Dockerfile
maven-oracle-jdk-dockerfile
## Install Oracle Java 8
FROM ubuntu:16.04
MAINTAINER Huong Nguyen vnnvanhuong@gmail.com
# Update the package repository
RUN echo "deb http://archive.ubuntu.com/ubuntu xenial main universe" > /etc/apt/sources.list
RUN apt-get -y update
# Install python-software-properties
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q python-software-properties software-properties-common
@boern
boern / tmux-cheatsheet.markdown
Last active August 3, 2020 07:53 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表 & 简明教程

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表 & 简明教程

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

@boern
boern / websocket_proxy.py
Created February 9, 2019 05:26 — forked from nakamuray/websocket_proxy.py
[WIP] asyncio/aiohttp で websocket reverse proxy 書きたい
import asyncio
import aiohttp
from aiohttp import web
class WebsocketProxy(object):
def __init__(self, upstream_url):
self.upstream_url = upstream_url