Skip to content

Instantly share code, notes, and snippets.

View lalitaalaalitah's full-sized avatar
💭
॥ विश्वं जुहोमि मयि केवलसंविदग्नौ ॥

lalitaalaalitah lalitaalaalitah

💭
॥ विश्वं जुहोमि मयि केवलसंविदग्नौ ॥
View GitHub Profile
@lalitaalaalitah
lalitaalaalitah / tabssafari2firefox.scpt
Created July 6, 2024 07:35 — forked from amanuel/tabssafari2firefox.scpt
Move Safari Tabs to Firefox (preserves windows)
tell application "Firefox"
activate
set safariWindows to getSafariWindows() of me
repeat with w in safariWindows
set newTabURLs to takeSafariTabURLs(w) of me
repeat with tabURL in newTabURLs
open location tabURL
delay 0.5
end repeat
tell application "System Events" to keystroke "n" using command down
@lalitaalaalitah
lalitaalaalitah / [macos] "Open folder with wezterm" from finder context menu
Created May 26, 2024 19:58
[macos] "Open folder with wezterm" from finder context menu #4627
TakenFrom : [macos] "Open folder with wezterm" from finder context menu #4627 : https://github.com/wez/wezterm/discussions/4627
ghry5
Nov 30, 2023
Was missing the simple functionality to have an option in the context menu to open a folder directly in wezterm from finder. Its actually super easy to set up:
@lalitaalaalitah
lalitaalaalitah / vscode-macos-context-menu.md
Created May 26, 2024 19:55 — forked from idleberg/vscode-macos-context-menu.md
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
@lalitaalaalitah
lalitaalaalitah / private_fork.md
Created March 17, 2024 20:15 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@lalitaalaalitah
lalitaalaalitah / .gitignore
Last active September 19, 2024 15:11
How to install perl and use latexindent in VS Code LaTeX Workshop
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
@lalitaalaalitah
lalitaalaalitah / fix_virtualenv
Created January 6, 2020 03:01 — forked from tevino/fix_virtualenv
Fix python virtualenv after python update
#!/usr/bin/env bash
ENV_PATH="$(dirname "$(dirname "$(which pip)")")"
SYSTEM_VIRTUALENV="$(which -a virtualenv|tail -1)"
BAD_ENV_PATHS="/usr/local"
echo "Ensure the root of the broken virtualenv:"
echo " $ENV_PATH"