Skip to content

Instantly share code, notes, and snippets.

@Longhanks
Longhanks / 30-metric-aliases.conf
Created April 17, 2023 09:46
/etc/fonts/conf.d/30-metric-aliases.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
</its:rules>
<description>Set substitutions for similar/metric-compatible families</description>
<!--
function ExaL {
exa --long --group --classify --time-style=long-iso --all --all $args
}
New-Alias -Name l -Value ExaL
function ExaLA {
exa --long --group --classify --time-style=long-iso --all $args
}
New-Alias -Name la -Value ExaLA
@Longhanks
Longhanks / CMakeUserPresets.json
Created March 20, 2023 11:41
CMakeUserPresets.json
{
"version": 3,
"configurePresets": [
{
"name": "x64-Debug-win32-color",
"displayName": "x64-Debug-color",
"inherits": "x64-Debug-win32",
"environment": {
"CMAKE_CXX_COMPILER_LAUNCHER": "C:/Users/aschulz/Projects/MSVCColorizer/build-x64-Release/MSVCColorizer.exe",
"CLICOLOR_FORCE": "1"
@Longhanks
Longhanks / vscode-cpp-launch.json
Last active April 27, 2023 06:51
vscode-cpp-launch-json
// -*- jsonc -*-
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug current target (Linux)",
"type": "cppdbg",
@Longhanks
Longhanks / vscode-cpp-tasks.json
Last active March 24, 2023 07:44
vscode-cpp-tasks-json
// -*- jsonc -*-
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cmake configure",
"type": "cmake",
"command": "configure",
@Longhanks
Longhanks / vscode-cpp-settings.json
Last active February 21, 2023 08:17
vscode-cpp-settings-json
{
"VsCodeTaskButtons.tasks": [
{
"label": "$(debug-configure) cmake",
"task": "cmake configure",
"tooltip": "cmake configure"
},
{
"label": "$(symbol-property) Build",
"task": "build current target",
target_compile_definitions(${PROJECT_NAME} PRIVATE
QT_NO_CAST_TO_ASCII
QT_NO_CAST_FROM_ASCII
QT_NO_URL_CAST_FROM_STRING
QT_NO_CAST_FROM_BYTEARRAY
QT_USE_QSTRINGBUILDER
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
QT_NO_KEYWORDS
QT_NO_FOREACH
)
<scheme name="IntelliJ Light copy" version="142" parent_scheme="Default">
<metaInfo>
<property name="created">2022-01-02T21:16:55</property>
<property name="ide">CLion</property>
<property name="ideVersion">2021.3.0.0</property>
<property name="modified">2022-01-02T21:16:59</property>
<property name="originalScheme">IntelliJ Light copy</property>
</metaInfo>
<colors>
<option name="CARET_ROW_COLOR" value="fcfaed" />
-Wno-unused-variable,-Wno-infinite-recursion,-Werror=implicit-function-declaration,-Wshadow,-Wno-shadow-field-in-constructor-modified,-Wno-shadow-ivar,-Wuninitialized,-Wunused-label,-Wunused-lambda-capture
pinentry-program /usr/bin/pinentry-tty