Skip to content

Instantly share code, notes, and snippets.

View fbedussi's full-sized avatar

Francesco Bedussi fbedussi

View GitHub Profile
@fbedussi
fbedussi / gist:7f32e717aebef3cc1908084a7c44b8d2
Created December 30, 2025 22:54
Keybindings VS code 2025
// Place your key bindings in this file to override the defaults
[
{
"key": "alt+t",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+shift+c",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
@fbedussi
fbedussi / .gitconfig
Created December 30, 2025 22:49
gitconfig 2025
[user]
name = Francesco Bedussi
email = francesco@francescobedussi.it
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
tree = !git lg1
lg = log --graph --oneline --decorate --all --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lgb = log --graph --oneline --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
mgt = mergetool --tool bc3
import React from 'react'
import styled from 'styled-components'
import { Theme } from '@root/theme'
import { removeToast } from '@root/utils/toasts'
import CloseIcon from '../../assets/icons/close.svg'
const Wrapper = styled.div<{ theme: Theme }>`
position: fixed;
import * as React from 'react'
import { render } from 'react-dom'
import { ThemeProvider } from 'styled-components'
import Toast, { ToastVariant } from '@components/Toast/Toast'
import { SerializedError } from '@reduxjs/toolkit'
import { FetchBaseQueryError } from '@reduxjs/toolkit/dist/query'
import { theme } from '@root/theme'
import CallErrorAlert from '../components/CallErrorAlert/CallErrorAlert'
@fbedussi
fbedussi / cloudSettings
Last active October 13, 2021 14:51 — forked from gborelli/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-06T10:10:00.863Z","extensionVersion":"v3.2.5"}
@fbedussi
fbedussi / machine.js
Last active January 28, 2021 12:09
Generated by XState Viz: https://xstate.js.org/viz
const teloMachine = Machine(
{
id: 'telo',
initial: 'active',
context: {
appointmentType: 'new patient',
isRefractionistEnabled: true,
},
states: {
active: {
@fbedussi
fbedussi / .zshrc
Created September 20, 2020 09:48
zsh conf
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/fbedussi/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@fbedussi
fbedussi / timer.js
Last active May 1, 2020 13:46
Bangle timer
let counter = 0;
let setValue = 0;
let counterInterval;
let state;
const DEBOUNCE = 50;
function buzzAndBeep() {
return Bangle.buzz(1000, 1)
.then(() => Bangle.beep(200, 3000))
{
"workbench.iconTheme": "material-icon-theme",
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": false,
"files.insertFinalNewline": true,
"editor.tabSize": 2,
// Place your key bindings in this file to override the defaults
[
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "terminalFindWidgetFocused"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPreviousTerminalFocus",