Skip to content

Instantly share code, notes, and snippets.

View andrew-hardin's full-sized avatar

Andrew Hardin andrew-hardin

  • Sandia National Laboratories
  • Albuquerque, NM
View GitHub Profile
@andrew-hardin
andrew-hardin / infinite_history.sh
Created June 21, 2019 21:06
Infinite Bash History
#!/usr/bin/env bash
# Eternal bash history
# --------------------
# Undocumented(?) feature which sets the size to "unlimited".
# http://stackoverflow.com/questions/9457233/unlimited-bash-history
export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
#include <math.h>
#include <stdint.h>
typedef int8_t int8;
typedef int16_t int16;
typedef int32_t int32;
typedef int64_t int64;
typedef uint8_t uint8;
typedef uint16_t uint16;