Skip to content

Instantly share code, notes, and snippets.

View agriyakhetarpal's full-sized avatar
🍉

Agriya Khetarpal agriyakhetarpal

🍉
View GitHub Profile
@rsteube
rsteube / github-dashboard.js
Created December 20, 2024 15:12
greasemonkey script to replace github dashboard with notification list
// ==UserScript==
// @name Github Dashboard
// @license MIT
// @match https://github.com/
// @match https://github.com/dashboard
// ==/UserScript==
(function () {
'use strict';
@jimmywarting
jimmywarting / readme.md
Last active December 9, 2025 17:33
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@csm10495
csm10495 / getStackFrame.py
Created October 15, 2016 05:29
A really speedy way to get the current stack frame in Python
'''
Brief:
This script demonstrates how to get the current stack frame in a way faster than using
inspect.stack()... which is really slow (like ~450 times slower than this solution in most cases)
If the fast solution won't work, will fall back to an inspect.stack() solution.
Author:
Charles Machalow
'''
@bskinn
bskinn / intersphinx_mappings.txt
Last active May 27, 2025 13:25
Various intersphinx mappings
# The entries in this file are checked regularly for validity via the Github Action
# sited at github.com/bskinn/intersphinx-gist.
# Please feel free to post an issue at that repo if any of these mappings don't work for you,
# or if you're having trouble constructing a mapping for a project not listed here.
Python 3 [latest]: ('https://docs.python.org/3/', None)
Python 3 [3.x]: ('https://docs.python.org/3.9/', None)
attrs [stable]: ('https://www.attrs.org/en/stable/', None)
Django [dev]: ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/')
Flask [2.2.x]: ('https://flask.palletsprojects.com/en/2.2.x/', None)
@subfuzion
subfuzion / global-gitignore.md
Last active December 8, 2025 14:22
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.