Skip to content

Instantly share code, notes, and snippets.

View patevs's full-sized avatar
🥝

Pat patevs

🥝
View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active March 13, 2025 19:16
Git Commit message Emoji
@kasperpeulen
kasperpeulen / README.md
Last active October 9, 2024 21:44
How to pretty-print JSON using Dart.
@bakana808
bakana808 / gist:a9e07c1f0bfe193f47fe
Last active March 15, 2022 06:38
GitHub For Windows "Open with Git Bash" Context Menu Script

GitHub For Windows "Open with Git Bash" Context Menu Script

Here's instructions to add a "Open with Git Bash" option to your context menu using the Git Bash that comes with GitHub for Windows.

Here's the registry script to add the option in. Because the installation paths for GitHub for Windows varies from user to user, I will go over which lines to change so that this script works for you.

Copy this script into your favorite text editor.

Windows Registry Editor Version 5.00
@fernandezpablo85
fernandezpablo85 / git-maven-howto.md
Last active September 22, 2024 11:36
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone [email protected]:ORGANIZATION/PROJECT.git my-repository

Cd into it

@roachhd
roachhd / README.md
Last active March 10, 2025 11:50
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active February 25, 2025 00:57
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@Kartones
Kartones / postgres-cheatsheet.md
Last active March 14, 2025 09:32
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@9to5IT
9to5IT / Script_Template.ps1
Last active November 3, 2024 18:13
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>