Skip to content

Instantly share code, notes, and snippets.

View danydodson's full-sized avatar
Working from home

danydodson danydodson

Working from home
View GitHub Profile
danydodson / gist:d0001de0d3479141b47c258d24365ed7
Created May 24, 2024 10:50
Open Files with Terminal Vim by default [mac, iterm]

If you want your terminal vim to open files you double click, follow the following steps (MacOS only):

  1. Open Automator
  2. Select Application
  3. Copy the attached file
  4. Save and set as default for opening files

Multiple files are opened in vim tabs. If there is already a vim instance running, files are opened in it.

Keybase proof

I hereby claim:

  • I am danydodson on github.
  • I am igore ( on keybase.
  • I have a public key ASCCqBENYZouBsa2-lyDCyNm_2hKsV3ht2m-F8fBkKapIAo

To claim this, I am signing this object:

"title": "Oil onkey Script telegram exchange group",
"url": ""
danydodson / userjs-base.js
Last active December 24, 2023 09:11
// Dany Dodson <>
danydodson /
Last active January 14, 2023 08:57
frontend checklist

Review checklist


  1. Does the code work?
  2. Description of the project status is included.
  3. Code is easily understand.
  4. Code is written following the coding standarts/guidelines (React in our case).
  5. Code is in sync with existing code patterns/technologies.
  6. DRY. Is the same code duplicated more than twice?
danydodson /
Last active November 15, 2022 05:57
vscode quick action

Open in Visual Studio Code

  • Open Automator
  • Quick Action
  • Set "Service receives selected" to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to the following
    for f in "$@"; do

open -a 'Visual Studio Code' "$@"

danydodson /
Last active November 15, 2022 05:53
disable macos #$!@
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
danydodson /
Last active November 15, 2022 05:53
curl github repo
# using curl on github
curl -LO --output-dir "$DOTFILES/iterm" | \
unzip "$DOTFILES"/iterm/ "iTerm2-shell-integration-main/utilities/*" -d "$DOTFILES/iterm"
danydodson /
Last active November 15, 2022 05:54
brew packages

Top brew packages

node: Platform built on V8 to build network applications

git: Distributed revision control system

wget: Internet file retriever

yarn: JavaScript package manager

danydodson / Create Gist.js
Last active November 15, 2022 05:51
ios scripable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: brown; icon-glyph: file-code;
// To use this script, you need to configure an OAuth App on GitHub.
// Follow the instructions on the link below to create your OAuth App.
// When you are asked to put in a redirect URL, you should put the URL for running this script in Scriptable. Assuming the name of this script is "Create Gist", the URL is scriptable:///run?scriptName=Create%20Gist