As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
This configuration is no longer updated
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
src :
Let’s start by what you can do while typing. These keystrokes change only what happens on the input line (the line where you type stuff).
arrow left/right: move one character left or right.
| # Streaming Client | |
| import socket | |
| HOST = 'localhost' | |
| PORT = 50007 | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.connect((HOST, PORT)) | |
| while True: |
| # assume : | |
| # - openproject installed in /opt/openproject | |
| # - local port: 6000 | |
| # - external port: 6020 | |
| server { | |
| listen 6020; | |
| server_name SERVER_DOMAIN_NAME; | |
| root /opt/openproject/public; | |
| #!/usr/bin/env python3 | |
| # A tiny webserver in python | |
| # ready to run! | |
| import os | |
| import configparser | |
| import socket |
In this repository you will find a collection of teeworlds binds, configs and scripts which you can use in your
settings_ddnet.cfg
If you feel like a bind is missing please contribute.