Skip to content

Instantly share code, notes, and snippets.

View gccore's full-sized avatar

Ghasem Ramezani gccore

View GitHub Profile
@gccore
gccore / SysInfo.txt
Created September 11, 2024 17:34
My System Information
System:
Kernel: 6.10.9-arch1-2 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
clocksource: tsc avail: acpi_pm parameters: BOOT_IMAGE=/vmlinuz-linux
root=UUID=4280d21f-f726-4a6b-9c82-5df1cdec000f rw loglevel=3
nvidia_drm.modeset=1 splash quiet plymouth.nolog
Desktop: KDE Plasma v: 6.1.5 tk: Qt v: N/A info: frameworks v: 6.5.0
wm: kwin_wayland with: krunner vt: 1 dm: SDDM Distro: Arch Linux
Machine:
Type: Laptop System: HP product: Victus by HP Gaming Laptop 16-r1xxx
v: Type1ProductConfigId serial: <superuser required> Chassis: type: 10
# dashed separator size
function afmagic_dashes {
# check either virtualenv or condaenv variables
local python_env_dir="${VIRTUAL_ENV:-$CONDA_DEFAULT_ENV}"
local python_env="${python_env_dir##*/}"
# if there is a python virtual environment and it is displayed in
# the prompt, account for it when returning the number of dashes
if [[ -n "$python_env" && "$PS1" = *\(${python_env}\)* ]]; then
echo $(( COLUMNS - ${#python_env} - 3 ))
@gccore
gccore / SFArabicRounded-Regular.ttf
Last active October 3, 2023 11:01
Testing Fonts
�pFFTM�p=��<GDEF�����(�GPOS���΀�GSUB��v��4�OS/2��Y�x`cmap�}�D�gasp��� glyfe
Y�2�(head`^�6hheaB �4$hmtx�w��lloca��,pmaxp�X namek�~4� post�}��L�KO���_<����(���9�r xM�� ��9� x��@� �3��3��N�� C� APPL@ �����@H� di�o�D�����k�������>s��
> [-
Ty = �=�|�t�t�I����u���svq�}.m������������a�/�
\�]Z'���������"��1]�_1]1]III�X�X�������]�] :] :]�=�=�I�I�]�]�4��2��E]�]y]] g�]�_����]�]��������P������zz��ZQA*]�]�cDd�0�W�V;������5�1]�]���������������������]1]1]1]1]1]1]1]1]IIIIIII�X�X�X�X�X�X�X�X�X����������������������������]�]�] :] :]�=�IE]E]E]E]E]E]�]�]�]
=�]y]y]y]�]�]�]�]�]�]]]]]�]�]�]�]�]a=I�_�_�_�_�������������������������]��E�4����]�]]]�n�_�|���3� h�-�����S��L���d������X���QA*]�]z]�dq��W�V;�] :]�IZ' ga=1
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Anotherblue">
<style name="Text" foreground="#b2b2b2" background="#1818b2"/>
<style name="Link" foreground="#60b2ff"/>
<style name="Selection" foreground="#fcfcfc" background="#232627"/>
<style name="LineNumber" foreground="#b2b2b2"/>
<style name="SearchResult" background="#4415d0"/>
<style name="SearchResultAlt1" foreground="#000033" background="#b6ccff"/>
<style name="SearchResultAlt2" foreground="#330000" background="#ffb6cc"/>
<style name="SearchResultContainingFunction" foreground="#000000" background="#ffffff"/>
@gccore
gccore / ghasem_style.xml
Created April 22, 2023 21:30
My QtCreator Style
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="GhasemStyle">
<style name="Text" foreground="#fcfcfc" background="#232627"/>
<style name="Link" foreground="#60b2ff"/>
<style name="Selection" foreground="#232627" background="#fcfcfc"/>
<style name="LineNumber" foreground="#c6c3c6"/>
<style name="SearchResult" background="#4415d0"/>
<style name="SearchResultAlt1" foreground="#000033" background="#b6ccff"/>
<style name="SearchResultAlt2" foreground="#330000" background="#ffb6cc"/>
<style name="SearchResultContainingFunction" foreground="#000000" background="#ffffff"/>
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="AnotherWhite (copy)">
<style name="Text" foreground="#c6c3c6" background="#000000"/>
<style name="Link" foreground="#60b2ff"/>
<style name="Selection" foreground="#ffffff" background="#43ace8"/>
<style name="LineNumber" foreground="#c6c3c6"/>
<style name="SearchResult" background="#4415d0"/>
<style name="SearchResultAlt1" foreground="#000033" background="#b6ccff"/>
<style name="SearchResultAlt2" foreground="#330000" background="#ffb6cc"/>
<style name="SearchResultContainingFunction" foreground="#000000" background="#ffffff"/>
@gccore
gccore / nobody_likes_it.xml
Created April 2, 2023 13:10
Nobody likes it
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="AnotherWhite">
<style name="Text" foreground="#ffff50" background="#120e41"/>
<style name="Link" foreground="#60b2ff"/>
<style name="Selection" foreground="#ffffff" background="#43ace8"/>
<style name="LineNumber" foreground="#ffffff"/>
<style name="SearchResult" background="#baae08"/>
<style name="SearchResultAlt1" foreground="#000033" background="#b6ccff"/>
<style name="SearchResultAlt2" foreground="#330000" background="#ffb6cc"/>
<style name="SearchResultContainingFunction" foreground="#000000" background="#ffffff"/>
@gccore
gccore / main.cc
Created February 18, 2023 12:39
ReadWrite Qt
/*
CMakeLists.txt:
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
project(ReadWrite LANGUAGES CXX)
find_package(Qt5Core REQUIRED)
find_package(Threads REQUIRED)
add_executable(${PROJECT_NAME} main.cc)
@gccore
gccore / CMakeLists.txt
Last active July 30, 2022 21:13
Discord Game SDK CMake
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
project(TestingDiscordSDK LANGUAGES CXX)
set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_BUILD_RPATH "$ORIGIN/lib;$ORIGIN/../lib;$ORIGIN")
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib;$ORIGIN/../lib;$ORIGIN")
set(discord_sdk_dir /tmp/Something/discord_game_sdk)
#
@gccore
gccore / GCCoreGrayscale.xml
Last active August 7, 2022 12:38
My QtCreator's Theme
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="Grayscale (Ghasem)">
<style name="Text" foreground="#000000" background="#fdf6e3"/>
<style name="Link" foreground="#0000ff"/>
<style name="Selection" foreground="#ffffff" background="#43ace8"/>
<style name="LineNumber" foreground="#676767"/>
<style name="SearchResult" background="#ffef0b"/>
<style name="SearchResultAlt1" foreground="#000033" background="#b6ccff"/>
<style name="SearchResultAlt2" foreground="#330000" background="#ffb6cc"/>
<style name="SearchResultContainingFunction" foreground="#000000" background="#ffffff"/>