Skip to content

Instantly share code, notes, and snippets.

View zhuoqun-chen's full-sized avatar
🚀
Let's Go!

Zhuoqun(Jack) Chen zhuoqun-chen

🚀
Let's Go!
View GitHub Profile
@iuliandita
iuliandita / alacritty.toml
Last active April 16, 2025 01:20
Alacritty TOML config file, with all defaults present (commented out), in the proper order. Color scheme is Catpuccin Mocha.
# alacritty.toml
# commented lines are the defaults
# man 5 alacritty (>0.13) for full config manual
#import = [
#"~/.config/alacritty/catpuccin-mocha.toml",
#"~/.config/alacritty/keybindings.toml",
#]
[shell]
@CaptainVincent
CaptainVincent / README.md
Last active May 8, 2025 10:12
Improve your vscode quickinput-widget

Customize your quickinput-widget

This is a small tool designed to emulate the Sublime style Command Palette as follows.

Screenshot

It requires the use of a specific extension to load the js file from this gist.

I'm using the APC extension, and the usage is as follows.

# Don't print a new line at the start of the prompt
add_newline = false
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
symbol = "➜" # The "symbol" segment is being set to "➜"
error_symbol = "✗"
use_symbol_for_status = true
# Disable the package module, hiding it from the prompt completely
@imami
imami / anydesk-enable-remote-access.md
Last active January 8, 2025 10:46
AnyDesk - How Enable Remote Access from ubuntu/debian terminal

###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.

Note:

Here are the commands might be usefull in this purpose:

  • anydesk --get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk --get-id : To get the ID that your system can be accessed by.
  • anydesk --service : To start anydesk service if not already running (for Linux).
  • anydesk --restart-service : To restart anydesk service
  • anydesk --stop-service : To stop anydesk service
@ryo-ARAKI
ryo-ARAKI / starship.toml
Last active May 4, 2025 13:01
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
@kriscard
kriscard / gist:36025e0e7209ebbb4d98aab2777cc3ab
Created June 17, 2019 08:50
Example of Spaceship Prompt config
#
# Spaceship ZSH Theme
#
# Author: Denys Dovhan, denysdovhan.com
# License: MIT
# https://github.com/denysdovhan/spaceship-zsh-theme
# ------------------------------------------------------------------------------
# CONFIGURATION
# The default configuration that can be overridden in .zshrc
@urey-hiker
urey-hiker / .tmux.conf
Last active August 2, 2023 19:01
urey-hiker's tmux configuration
# remap prefix from 'C-b' to 'C-x'
#unbind C-b
#set-option -g prefix C-x
#bind-key C-x send-prefix
# split panes using | and -
bind | split-window -h
bind _ split-window -v
unbind '"'
unbind %
#rebind C-b => C-a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
@csukuangfj
csukuangfj / QGraphicsSceneTest.cpp
Last active April 9, 2025 10:20 — forked from benjbaron/QGraphicsSceneTest.cpp
Qt QGraphicsScene click, select, move, resize, delete QGraphicsItems
// Copyright 2017. All Rights Reserved.
// Author: [email protected] (Fangjun Kuang)
#include <QtGui>
#include <QGraphicsRectItem>
#include <QGraphicsView>
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
class CustomItem : public QGraphicsEllipseItem
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 15, 2025 16:10
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example