Skip to content

Instantly share code, notes, and snippets.

View rafaeloledo's full-sized avatar
🎯
Focusing

Rafael Ledo rafaeloledo

🎯
Focusing
View GitHub Profile
@CapMousse
CapMousse / ocr.sh
Created July 20, 2024 20:07
Screenshot OCR for text extraction on Hyprland
#!/bin/bash
# Dependencies: tesseract-ocr imagemagick wl-clipboard hyprshot
die(){
notify-send "$1"
exit 1
}
cleanup(){
[[ -n $1 ]] && rm -r "$1"
}
@nate-moo
nate-moo / Discord Full Screen sharing under wayland.md
Last active April 2, 2024 22:55
Screensharing full screen on discord under wayland

warning: Very cursed

image

things required:

  • wf-recorder
  • mpv
  • wayland
@Iftakharpy
Iftakharpy / help-postgresql.md
Last active January 10, 2025 20:22
Note of necessary commands to set up postgresql on linux

Installation

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql postgresql-contrib

postgresql.conf file

ls /etc/postgresql//main/

" Wez's VIM colors for Dark background
" vim:ts=2:sw=2:et:
hi clear
if exists("syntax on")
syntax reset
endif
let g:colors_name = "wez"
let &background="dark"
@seanh
seanh / netrw.md
Last active May 4, 2025 12:34
Netrw Cheatsheet (Vim's Built-in Directory Browser)

Netrw Cheatsheet (Vim's File Browser)

See also:

  • vinegar.vim, which makes - open netrw in the directory of the current file, with the cursor on the current file (and pressing - again goes up a directory). Vinegar also hides a bunch of junk that's normally at the top of netrw windows, changes the default order of files, and hides files that match wildignore.

    With vinegar, . in netrw opens Vim's command line with the path to the file under the cursor at the end of the command. ! does the same but also prepends ! at the start of the command. y. copies the absolute path of the file under the cursor. ~ goes to your home dir. Ctrl+6 goes back to the file (buffer) that you had open before you opened netrw.

To launch netrw:

@justincbagley
justincbagley / How_to_Convert_Markdown_to_PDF.md
Last active March 27, 2025 03:38
How To Convert Markdown to PDF

How to convert markdown to PDF:

This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.

Using Pandoc:

$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf
@matthewjberger
matthewjberger / instructions.md
Last active May 10, 2025 01:24
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@RebeccaWhit3
RebeccaWhit3 / Complete List of Environment Variables in Windows 10.md
Last active April 26, 2025 18:31
Complete List of Environment Variables in Windows 10

Full List of Environment Variables in Windows 10

![information][6] Information

[Environment variables][7] are a set of dynamic named values that can affect the way running processes will behave on a computer. The variables can be used both in scripts and on the command line. Environment variables makes it easy when certain standard directories and parameters need to be referenced but where the actual locations or names can vary from computer to computer.

This tutorial will show you a complete list of environment variables that can be used to reference standard directories and parameters in Windows 10.

![Note][8] Note

@t-mart
t-mart / netrw quick reference.md
Last active May 10, 2025 03:53
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
@lucas-tulio
lucas-tulio / sublime-keymap.json
Created March 17, 2015 17:16
Sublime Text 2 keyboard shortcuts on Linux using ABNT2 keyboard
[
{ "keys": ["ctrl+."], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
{ "keys": ["ctrl+;"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+;"], "command": "toggle_comment", "args": { "block": true } }
]