Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View olibre's full-sized avatar
🦆
Empowering self-governance

O. Libre olibre

🦆
Empowering self-governance
View GitHub Profile
@olibre
olibre / 60-jetbrains.conf
Last active September 9, 2019 14:18 — forked from bittner/60-jetbrains.conf
Inotify configuration for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). Create this file with e.g. `sudo vim /etc/sysctl.d/60-jetbrains.conf`
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# 1. Check current value in use: `cat /proc/sys/fs/inotify/max_user_watches`
# 2. Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu, Fedora...)
# 3. Apply new configuration: `sudo sysctl -p --system` or `sudo service procps start` or reboot
# 4. Check new value in use: `cat /proc/sys/fs/inotify/max_user_watches`
#
# References:
# * https://gist.github.com/olibre/a0219529a6cc347494f40780e7e539eb
# * https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
#
@olibre
olibre / cpp_legacy_inheritance_vs_std_variant.md
Last active February 11, 2024 10:41 — forked from GuillaumeDua/cpp_legacy_inheritance_vs_std_variant.md
C++ legacy inheritance vs CRTP + std::variant
@olibre
olibre / smart_dtor.cpp
Last active October 7, 2018 21:10 — forked from odeblic/smart_dtor.cpp
Smart destructor
/*
* Original work: https://gist.github.com/odeblic/fa54037bf4d764a5dc02735cb4bd79f3
* Inspired from: https://youtu.be/ZiNGWHg5Z-o
*
* Compile
*
* $ g++ -Wall -Wextra smart_dtor.cpp
*
* Run
*