Skip to content

Instantly share code, notes, and snippets.

View Deltara3's full-sized avatar
💧
Lyqd

Deltara Deltara3

💧
Lyqd
View GitHub Profile
@Strus
Strus / clangd.md
Last active July 12, 2024 14:38
How to use clangd C/C++ LSP in any project

How to use clangd C/C++ LSP in any project

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.

@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active July 15, 2024 14:32
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@MeguminSama
MeguminSama / Discord Experiments.js
Last active July 15, 2024 21:37
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@velitasali
velitasali / deamon.conf
Last active September 29, 2023 15:07
Static noise microphone issue with PulseAudio. On Linux, single channel mic inputs sometimes detected as stereo channel inputs. This causes static noise and unusable experience. To fix it, we need to route the left channel to a mono channel source. We also enable noise cancellation to remove fan and other hardware noises. For more information ht…
# /etc/pulse/
# This change is optional if you are not satisfied with sound quality. Please try different bitrate options and
# use the most compatible one. For instance, you may run "arecord -f dat -r 48000 -D hw:0,0 -d 5 test.wav" to
# record a sample audio. Change the bitrate accordingly by using "r" option.
default-sample-rate = 48000
alternate-sample-rate = 44100
@ViKingIX
ViKingIX / install_niresh_hackintosh.md
Created April 28, 2016 07:25
How to Install Niresh Yosemite on Your PC

How to Install Niresh Yosemite on Your PC

OS X Yosemite (10.10) is the latest OS X release of 2014 by apple, but Apple locks the operating system to only be installed in genuine Apple computers known as Macintosh & they cost a lot any how there is always a way if you want to install the operating system in your common pc, without paying high cost for a real mac you can make a Hackintosh

We have previously covered the article for Installing Niresh Mavericks on PC if you’re interested in Installing Mac OS X Yosemite on PC this article is for you, You may experience many problems while trying to Install Hackintosh, most of them can be fixed easily most troubleshoot informations are included in this guide so first just read all Instructions once before starting any procedures.

Few Notes about this OSX 10.10 & 10.10.1 (Intel & AMD Supported)

Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
@kylemanna
kylemanna / 20-radeon.conf
Created August 18, 2014 05:09
Adventures with a flaky Radeon 4200 HD GPU on Linux
#
# Xorg Config for an Integrated AMD / ATI Radeon HD 4200 on a MSI 785GTM-E45
#
#
# Use special reduced timings for 1080p HDMI output as it gets rid of screen
# corruption on the Radeon 4200 HD (Win7 never had problems with same cabling).
#
# Other symptoms included skipping audio and periodic screen corruption in XBMC
# as well as general use.
#
@earthgecko
earthgecko / bash.generate.random.alphanumeric.string.sh
Last active July 4, 2024 17:31
shell/bash generate random alphanumeric string
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1
@piti118
piti118 / gzstream.h
Created December 21, 2011 22:42
Header-only version of gzstream
// ============================================================================
// gzstream, C++ iostream classes wrapping the zlib compression library.
// Copyright (C) 2001 Deepak Bandyopadhyay, Lutz Kettner
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,