start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| ini_set('max_execution_time', 300); //300 seconds = 5 minutes. In case if your CURL is slow and is loading too much (Can be IPv6 problem) | |
| error_reporting(E_ALL); | |
| define('OAUTH2_CLIENT_ID', '1234567890'); | |
| define('OAUTH2_CLIENT_SECRET', 'verysecretclientcode'); |
| <?php | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| ini_set('max_execution_time', 300); //300 seconds = 5 minutes. In case if your CURL is slow and is loading too much (Can be IPv6 problem) | |
| error_reporting(E_ALL); | |
| define('OAUTH2_CLIENT_ID', 'PLEASE EDIT'); | |
| define('OAUTH2_CLIENT_SECRET', 'PLEASE EDIT'); | |
| $authorizeURL = 'https://discordapp.com/api/oauth2/authorize'; | |
| $tokenURL = 'https://discordapp.com/api/oauth2/token'; | |
| $apiURLBase = 'https://discordapp.com/api/users/@me'; |
tl;dr: If you want to just know the method, skip to How to section
Clangd is a state-of-the-art C/C++ LSP that can be used in every popular text editors like Neovim, Emacs or VS Code. Even CLion uses clangd under the hood. Unfortunately, clangd requires compile_commands.json to work, and the easiest way to painlessly generate it is to use CMake.
For simple projects you can try to use Bear - it will capture compile commands and generate compile_commands.json. Although I could never make it work in big projects with custom or complicated build systems.
But what if I tell you you can quickly hack your way around that, and generate compile_commands.json for any project, no matter how compilcated? I have used that way at work for years, originaly because I used CLion which supported only CMake projects - but now I use that method succesfully with clangd and Neovim.