Skip to content

Instantly share code, notes, and snippets.

View Mr-Slippery's full-sized avatar

Cornel Izbașa Mr-Slippery

View GitHub Profile
@Mr-Slippery
Mr-Slippery / klee_cpp.sh
Last active August 16, 2019 06:02
Running klee on a C++ program using its Docker image
#!/usr/bin/env bash
set -euo pipefail
FILE=${1-main.cc}
if [ ! -f "${FILE}" ]
then
cat << EOF > "${FILE}"
#include <klee/klee.h>
#include <assert.h>
@Mr-Slippery
Mr-Slippery / .bashrc
Last active August 8, 2019 20:34
"If you could ... that would be greeaat" prompt
# Shamelessly based on:
# https://stackoverflow.com/questions/39305476/bash-prompt-with-background-color-extending-to-end-of-line
FIRST_YOU_COULD=1
PROMPT_COMMAND=__prompt_command
__prompt_command()
{
local None='\[\e[0m\]'
local Green='\[\033[1;38;5;10m\]'
local LightPurple='\[\033[1;35m\]'