Skip to content

Instantly share code, notes, and snippets.

View mortik's full-sized avatar

Marten Klitzke mortik

View GitHub Profile
@mortik
mortik / starcitizen-quantum-traveltimes.ts
Last active November 12, 2023 08:02
Star Citizen Quantum Traveltimes
export const calculateTravelTime = (
a1: number,
a2: number,
vmax: number,
distance: number,
) => {
const dc = distance - (4 * vmax ** 2 * (2 * a1 + a2)) / (3 * (a1 + a2) ** 2);
if (dc < 0) {
// drive does not reach vmax
@mortik
mortik / 0_reuse_code.js
Last active August 29, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am mortik on github.
  • I am mortik (https://keybase.io/mortik) on keybase.
  • I have a public key whose fingerprint is 57D0 873A FEBA 9A36 8F26 1420 2A56 7A59 2839 06D1

To claim this, I am signing this object:

@mortik
mortik / README.md
Last active August 29, 2015 14:04 — forked from denji/README.md
@mortik
mortik / slack-topics.md
Created March 24, 2014 21:31
Slack-Topics

Current Slacktime Topics

  • AngularJS
  • Buildbot Bootstrap3 Templates
  • Reckoning API
  • crapmobl
  • cargo-cash

Blogposts

  • Provisioning Supplemental
  • Ansible Role Dependencies with Bower
global
log 127.0.0.1 local0
log 127.0.0.1 local1 debug
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
#daemon
#debug
#quiet
@mortik
mortik / reckoning
Created July 11, 2013 18:53
Reckoning nginx config
server {
listen 8080;
server_name reckoning.dev;
location / {
root ~/dev/work/mortik/reckoning/public;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
if (!-f $request_filename) {
@mortik
mortik / nginx.conf
Last active December 19, 2015 15:39
NGINX Config
worker_processes 1;
error_log /usr/local/etc/nginx/logs/error.log debug;
#pid logs/nginx.pid;
events {
worker_connections 128;
}

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/save
:wa[!]    write/save all windows [force]
:wq       write/save and close

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname