Skip to content

Instantly share code, notes, and snippets.

View fr1sk's full-sized avatar
🤔

Marko Jovanovic fr1sk

🤔
View GitHub Profile
@SOHELAHMED7
SOHELAHMED7 / README.md
Last active September 14, 2023 14:55
Nestjs redis cache example
@fr1sk
fr1sk / TmuxCheatSheet.md
Last active March 29, 2019 14:00
Cheat Sheet of helpful Tmux commands

Tmux panes

CTRL-b, " - Split window horizontally (i.e. split and add a pane below).

CTRL-b, % - Split window vertically (i.e. split and add a pane to the right).

CTRL-b, UpArrow - Move to the pane above (I prefer to rebind this to CTRL-b, k to be similar to Vim).

CTRL-b, DownArrow - Move to the pane below (I prefer to rebind this to CTRL-b, j to be similar to Vim).

@ibraheem4
ibraheem4 / postgres-brew.md
Last active October 14, 2024 11:59 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@scottopell
scottopell / fix_exfat_drive.md
Last active November 15, 2024 19:04
Fix corrupted exFAT disk macOS/OSX

exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.

Disk Utility is unable to repair this at first, but the fix is this:

  1. Use diskutil list to find the right drive id.
  2. You want the id under the IDENTIFIER column, it should look like disk1s1
  3. Run sudo fsck_exfat -d <id from above>. eg sudo fsck_exfat -d disk1s3
  4. -d is debug so you'll see all your files output as they're processed.
  5. Answer YES if it gives you the prompt Main boot region needs to be updated. Yes/No?
@Likeyn
Likeyn / git-stats.sh
Last active December 21, 2023 15:31
Shows small fun statistics from a git repository
#!/bin/bash
# Shows small fun statistics from a git repository
# Init
WEB='web/';
DB='config/doctrine/schema.yml data/sql/dbdeploy/';
COMMITS=$(git --no-pager shortlog -ns | head -3);
FIXS=$(git --no-pager shortlog -nsi --grep=fix | head -3);
DATABASE=$(git --no-pager shortlog -ns -- $DB | head -1 | cut -f 2);
@henrik
henrik / gist:3181718
Created July 26, 2012 12:15
Fix "unsupported new OS, trying as if it were 10.6-10.7" from reattach-to-user-namespace on Mountain Lion (probably in tmux).
# Start by checking if they fixed it upstream:
brew update
brew upgrade reattach-to-user-namespace
# If it says it's already installed, they haven't fixed it upstream. So do this:
# Edit the recipe:
brew edit reattach-to-user-namespace