Skip to content

Instantly share code, notes, and snippets.

# My own Dockerfile for building arangodb using gcc-11.2
# docker run -it -v /local/path/to/arangodb:/arangodb gcc-11.2 /bin/bash
FROM gcc:11.2.0
WORKDIR /arangodb
RUN apt-get -y update && apt-get install -y build-essential libssl-dev libjemalloc-dev python libldap2-dev ripgrep
RUN wget https://github.com/Kitware/CMake/releases/download/v3.23.3/cmake-3.23.3-Linux-x86_64.sh \
-q -O /tmp/cmake-install.sh \
&& chmod u+x /tmp/cmake-install.sh \
&& mkdir /usr/bin/cmake \
@apetenchea
apetenchea / permissions.sh
Created July 8, 2022 11:20
CLion remote editing fix
#!/bin/bash
# Fix file permissions after setting up remote development with CLion
# Run this in the root of your project folder
dir=$(pwd)
for f in $(rg -l "\#!")
do
echo "$f"
cd $(dirname "$f")
// Example of a constant being modified
// clang++ -Wall -std=c++17 -O2 -o modify_const modify_const.cpp
#include <iostream>
#include <string>
#include <sstream>
unsigned long long hex_to_dec(std::string str)
{
unsigned long long result = 0;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.