Skip to content

Instantly share code, notes, and snippets.

View kuba-orlik's full-sized avatar

Kuba Orlik kuba-orlik

  • Poznań, Poland
View GitHub Profile
@gsj987
gsj987 / init-ts.el
Last active December 11, 2024 18:33
Make eglot support tsx
(define-derived-mode typescriptreact-mode web-mode "TypescriptReact"
"A major mode for tsx.")
(use-package typescript-mode
:mode (("\\.ts\\'" . typescript-mode)
("\\.tsx\\'" . typescriptreact-mode)))
(use-package eglot
:ensure t
:defer 3
@lynt-smitka
lynt-smitka / fbclid-nginx.conf
Last active February 13, 2025 00:44
Remove fbclid argument from the URL in Nginx
http {
...
# redirect map in http block - remove fbclid argument from the end
map $request_uri $redirect_fbclid {
"~^(.*?)([?&]fbclid=[a-zA-Z0-9_-]+)$" $1;
}
...
@magnetikonline
magnetikonline / LineEndings.sublime-settings
Last active October 20, 2021 18:18
Sublime Text 3 - Display file line ending details in status bar.
{
// To show line endings type on status bar
"show_line_endings_on_status_bar": true,
// show an alert when the line ending is on the list
// eg: "alert_when_line_ending_is": ["Windows","Unix","CR"]
"alert_when_line_ending_is": ["Windows"],
// auto convert line endings on file open
"auto_convert_line_endings_to": "Unix"