Skip to content

Instantly share code, notes, and snippets.

View borg1622's full-sized avatar

Dirk Osburg borg1622

  • Munich
  • 11:08 (UTC +02:00)
View GitHub Profile
[ 0.000000] Linux version 5.13.9 (nixbld@localhost) (gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.35.1) #1-NixOS SMP Sun Aug 8 07:06:57 UTC 2021
[ 0.000000] Command line: BOOT_IMAGE=(lvm/p14s--vg-boot)//kernels/3r454kfmjmi77vimxvm41hbkkrn7q8dh-linux-5.13.9-bzImage init=/nix/store/ysyl9n8xc5as3rsy5xkx2gsy5ij1fipi-nixos-system-p14s-xxx-21.05.2478.a445f582988/init amdgpu.backlight=0 acpi_backlight=none loglevel=4
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x200: 'Protection Keys User registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: xstate_offset[9]: 832, xstate_sizes[9]: 8
[ 0.000000] x86/fpu: Enabled xstate features 0x207, context size is 840 bytes, using 'compacted' format.
[ 0.000000] BIOS-provided physical R
@borg1622
borg1622 / broadcast_calc.sh
Created May 27, 2019 10:03 — forked from cskeeters/broadcast_calc.sh
Bash script for calculating network and broadcast addresses from ip and netmask or CIDR Notation
#!/bin/bash
# Calculates network and broadcast based on supplied ip address and netmask
# Usage: broadcast_calc.sh 192.168.0.1 255.255.255.0
# Usage: broadcast_calc.sh 192.168.0.1/24
tonum() {
if [[ $1 =~ ([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+) ]]; then
const LBS_2_KG = 2.5;
const REALISM_MAX_FUEL_CAPACITY_LBS = 200000000;
const BLINK_TEXT_DUR_TOT = 1500;
const BLINK_TEXT_DUR_IN = 500;
const BLINK_TEXT_DUR_OUT = 500;
const SEAT_PRICE_MAX_PROFIT_FACTOR = 1.749;
const SEAT_PRICE_MAX_ECONOMY = 20000;
const SEAT_PRICE_MAX_BUSINESS = 25000;
const SEAT_PRICE_MAX_FIRST = 45000;
const FUEL_PRICE_HOTDEAL = 250;