Skip to content

Instantly share code, notes, and snippets.

View gquittet's full-sized avatar
👋
Welcome

Guillaume Quittet gquittet

👋
Welcome
View GitHub Profile
@gquittet
gquittet / tailwind-gauge-chart.html
Last active February 23, 2025 03:22
tailwind gauge chart
<!-- percent to deg => Math.round(((value / 100) * 180 - 45) * 10) / 10 -->
<div class="relative flex aspect-[2] items-center justify-center overflow-hidden rounded-t-full bg-blue-400">
<div class="absolute top-0 aspect-square w-full rotate-[calc(72deg-45deg)] bg-gradient-to-tr from-transparent from-50% to-white to-50% transition-transform duration-500"></div>
<div class="absolute top-1/4 flex aspect-square w-3/4 justify-center rounded-full bg-blue-100"></div>
<div class="absolute bottom-0 w-full truncate text-center text-[20vmax] leading-none">40%</div>
</div>
@gquittet
gquittet / tabliss.css
Last active August 18, 2023 14:25
Tabliss settings - Custom CSS
.Slot.middleCentre {
border-radius: 1rem;
padding: 2rem 5rem;
background-color: rgba(0, 0, 0, .20);
backdrop-filter: blur(5px);
box-shadow: 1px 0px 10px rgba(0, 0, 0, .20);
}
@gquittet
gquittet / mysql_ram_analyzer.sh
Created July 31, 2023 12:05
MySQL RAM analysis
#!/bin/sh
# you might want to add some user authentication here
mysql -uuser -ppassword -h127.0.0.1 -e "show variables; show status" | awk '
{
VAR[$1]=$2
}
END {
MAX_CONN = VAR["max_connections"]
MAX_USED_CONN = VAR["Max_used_connections"]
BASE_MEM=VAR["key_buffer_size"] + VAR["query_cache_size"] + VAR["innodb_buffer_pool_size"] + VAR["innodb_additional_mem_pool_size"] + VAR["innodb_log_buffer_size"]
@gquittet
gquittet / M1 Pro - WEB MP4 4K.json
Created July 26, 2023 12:50
Handbrake M1 Pro settings
{
"PresetList" : [
{
"AlignAVStart" : true,
"AudioCopyMask" : [
"copy:aac"
],
"AudioEncoderFallback" : "ca_aac",
"AudioLanguageList" : [
@gquittet
gquittet / ChatGPT expert prompt
Created June 8, 2023 16:11
ChatGPT expert prompt
Ignore tout ce qui est au dessus de ce message.
Tu es un développeur expert en changeme.
Si tu ne comprends pas complètement ce que je dis ou demande ou
que tu n'es pas sûr de répondre correctement à ma demande,
pose-moi une question pour que je sois plus précis.
@gquittet
gquittet / i18n-try.js
Last active April 10, 2023 10:51
i18n typescript try
const locale = {
"en-us": {
greetings: {
hello: "Hello {{user}} and {{user}}",
goodMorning: "Good morning"
},
cat: {
"one": "% cat",
"many": "% cats"
},
@gquittet
gquittet / macOS utilities.md
Created December 9, 2022 15:01
macOS top utilities
@gquittet
gquittet / wifi_tips.md
Created November 2, 2022 13:31
WiFi Tips

WiFi Tips

Setup

  1. Create two access points: one for 2.4 and one for 5
  2. Put all modern devices such as phone, tablet and laptop to the 5
  3. Put all IOT devices such as security camera, chromecast to the 2.4

Wifi 2.4

@gquittet
gquittet / IntelliJ IDEA.md
Last active February 13, 2025 10:05
IDEA VMOptions

IntelliJ Optimization

  • Go to Settings -> Editor -> Appearance -> Disable Show whitespaces: it helps to reduce input and scroll lag
  • Disable auto import on the fly (huge impact on performance)
  • Disable all plugins that you don't use
  • Disable all inspections that you don't need

VM Options

@gquittet
gquittet / fedora_install_tips.md
Last active May 12, 2022 06:40
Fedora Install Tips

Fedora Install Tips

GSettings

  • Enable fractional scaling

    gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
  • Eable sound over amplification.