This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nvm-exec | |
# match version | |
set ver "$argv[1]" | |
if not test "$ver" | |
echo "Version is missing" | |
return 1 | |
end | |
# logic from nvm command to parse version | |
_nvm_list | string match --entire --regex -- (_nvm_version_match $ver) | read ver __ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires the GitHub Copilot CLI from GitHub Next | |
# https://www.npmjs.com/package/@githubnext/github-copilot-cli#installation-and-setup | |
# This needs to be set up as a function in your fish config. You can use `funced -s q` to do this. | |
# Options: | |
# q -g --git: Use github-copilot-cli git-assist | |
# q -h --gh: Use github-copilot-cli gh-assist | |
# Defaults to using what-the-shell (general command assist) if neither option is provided | |
# Completions for your Fish config: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Open YouTube App | |
// @version 1.0.4 | |
// @author asportnoy | |
// @match *://*.youtube.com/* | |
// @downloadURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-youtube-app.user.js | |
// @updateURL https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/raw/open-youtube-app.user.js | |
// @homepage https://gist.github.com/asportnoy/628b820184297f5fe296c1a5b79c8000/ | |
// @inject-into content | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const API_TOKEN = "YOUR_TOKEN_HERE"; // https://github.com/settings/tokens | No scopes required | |
// Map certain keywords to certain usernames | |
// user keywords do not require a prefix | |
// user/repo keywords must have either a prefix or an issue/pr | |
const SAVED_USERS: { [key: string]: string } = { | |
userKeyword: "username", | |
userRepoKeyword: "username/reponame" | |
}; |