Skip to content

Instantly share code, notes, and snippets.

View majorsaaam's full-sized avatar
🏠
Working from home

Sam M majorsaaam

🏠
Working from home
  • Itaú Unibanco S.A.
  • Rio de Janeiro, RJ - Brazil
View GitHub Profile
@felsenhower
felsenhower / texstudio+latexmk+output-directory.md
Last active November 21, 2025 15:43
Setting up TeXstudio with latexmk and a build directory

Setting up TeXstudio with latexmk and a build directory

It's annoying that LaTeX creates so many auxiliary files and TeXstudio offers no possibility to delete them automatically on program exit.

I also want to use latexmk, since it caches results and therefore builds very quickly, since it doesn't always have to compile everything.

This is a workaround to configure TeXstudio so that latexmk writes to a build directory.

@acamino
acamino / README.md
Last active August 30, 2025 22:21
Shortcuts to Improve Your Bash & Zsh Productivity

Shortcut — Action

  • CTRL + A — Move to the beginning of the line
  • CTRL + E — Move to the end of the line
  • CTRL + [left arrow] — Move one word backward (on some systems this is ALT + B)
  • CTRL + [right arrow] — Move one word forward (on some systems this is ALT + F)
  • CTRL + U — (bash) Clear the characters on the line before the current cursor position
  • CTRL + U —(zsh) If you're using the zsh, this will clear the entire line
  • CTRL + K — Clear the characters on the line after the current cursor position
  • ESC + [backspace] — Delete the word in front of the cursor
@adamrecsko
adamrecsko / highlight.pipe.ts
Created May 1, 2016 20:28
Angular2 text highlight pipe
import {PipeTransform, Pipe} from 'angular2/core';
@Pipe({ name: 'highlight' })
export class HighLightPipe implements PipeTransform {
transform(text: string, [search]): string {
return search ? text.replace(new RegExp(search, 'i'), `<span class="highlight">${search}</span>`) : text;
}
}
/** Usage:
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active December 14, 2025 12:28
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
ACTION
AD_HOC_CODE_SIGNING_ALLOWED
ALTERNATE_GROUP
ALTERNATE_MODE
ALTERNATE_OWNER
ALWAYS_SEARCH_USER_PATHS
ALWAYS_USE_SEPARATE_HEADERMAPS
APPLE_INTERNAL_DEVELOPER_DIR
APPLE_INTERNAL_DIR
APPLE_INTERNAL_DOCUMENTATION_DIR