Skip to content

Instantly share code, notes, and snippets.

View deqyra's full-sized avatar
💽
the difference between url and irl is u and i

François Brachais deqyra

💽
the difference between url and irl is u and i
View GitHub Profile
@deqyra
deqyra / .gitconfig
Created April 23, 2024 11:00
Git config file
[diff]
noprefix = false
[core]
pager = less -x1,5
sshCommand = C:/windows/system32/openssh/ssh.exe
whitespace = -trailing-space,-indent-with-non-tab,-tab-in-indent
editor = "C:\\\\Program\\ Files\\\\Sublime\\ Text\\\\subl.exe -w"
[credential]
helper = manager-core
[includeIf "gitdir/i:C:/path/to/somewhere/**"]
@deqyra
deqyra / .clang-format
Last active April 23, 2024 10:56
Clang-format file
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
@deqyra
deqyra / Microsoft.PowerShell_profile.ps1
Created March 15, 2024 15:40
PowerShell profile script
# Required variables for Oh-my-posh setup
$OMPExe = "$($env:LocalAppData)\Programs\oh-my-posh\bin\oh-my-posh.exe"
$OMPTheme = "$($env:UserProfile)\Documents\PowerShell\emodipt-custom.omp.json"
# Required variables for VC++ env setup
$VsEdition = 'Enterprise'
$InstalledVsVersions = @(2019, 2022)
@deqyra
deqyra / Tile PDF pages for booklet printing.jsx
Created January 10, 2024 11:49
InDesign script: Tile PDF pages for booklet printing
/**
* Import a PDF file and tile its pages onto an InDesign document.
* The document is duplex-print-ready, and the printed pages can be
* folded in half into a single booklet or several book signatures.
*
* How to install:
* - Launch InDesign
* - Open the Scripts window (Ctrl+Alt+F11)
* - Right-click the "User" folder and select "Reveal in explorer"
* - Place this script inside the folder