Skip to content

Instantly share code, notes, and snippets.

View mohokh67's full-sized avatar
πŸ’­
Working hard, typing slow 😎😎

MoHo mohokh67

πŸ’­
Working hard, typing slow 😎😎
View GitHub Profile
@mohokh67
mohokh67 / user.js
Created February 27, 2026 13:59
Betterfox user.js file
//
/* You may copy+paste this file and use it as it is.
*
* If you make changes to your about:config while the program is running, the
* changes will be overwritten by the user.js when the application restarts.
*
* To make lasting changes to preferences, you will have to edit the user.js.
*/
/****************************************************************************
@mohokh67
mohokh67 / brew_packages.md
Last active February 27, 2026 14:01
Brew packages

CLI

atuin
awscli
direnv
exiftool
fzf
go
htop
jandedobbeleer/oh-my-posh/oh-my-posh
@mohokh67
mohokh67 / dev.md
Last active October 13, 2025 10:41
Dev Tools and packages I use
@mohokh67
mohokh67 / tools_i_use.md
Last active March 4, 2026 09:03
Tools I use

All tools and apps I use (mostly)

πŸ’²Paid πŸ†“ Free ⭐️ Favourite πŸ”“ Open source πŸ‘½ Care for Privacy?

@mohokh67
mohokh67 / undo-recent-commits.md
Last active June 1, 2021 16:53
Undo recent commits while keeping the changes

Find the commit hash you want to go back to by git log --oneline and then

git reset <commit_hash>

git reset without a --hard or --soft moves your HEAD to point to the specified commit, without changing any files.

@mohokh67
mohokh67 / git-push-fix.md
Last active December 10, 2020 11:43
Git push the current branch and set the remote as upstream

If you see the bellow error for the first time when you try to push your new branch which has not been pushed:

git push                 

fatal: The current branch new-branch has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin new-branch
@mohokh67
mohokh67 / timestamp-formatter.md
Created June 1, 2020 14:26
Get YYYY-MM-DD HH-MM-SS in JavaScript
const formatedTimestamp = ()=> {
  const d = new Date()
  const date = d.toISOString().split('T')[0];
  const time = d.toTimeString().split(' ')[0].replace(/:/g, '-');
  return `${date} ${time}`
}
@mohokh67
mohokh67 / git-remove-all-branches-except-master.md
Created January 14, 2020 11:11
Git: Remove all branches except master

Git

Remove all local branches except master

This example will show how to remove all Git branches in local except master branch

git branch | grep -v "master" | xargs git branch -D
@mohokh67
mohokh67 / vscode-settings.md
Last active April 17, 2025 11:25
Install italic and customizable font for vscode

Link to Youtube video: https://youtu.be/QxcRmsGHcWY

Manual steps:

  • Download and install Victor Mono font
  • Update VSCode setting as bellow:
    • font size, line height and font weight are optional and you can update them as you prefer
{
  "editor.fontSize": 13,
  "editor.lineHeight": 24,
alias c='clear'
alias gs='git status'
alias pull='git pull'
alias push='git push'
alias master='git checkout master'
alias commit='git commit -m'
alias ll='ls -la'
alias ls='ls --color=auto'