Skip to content

Instantly share code, notes, and snippets.

View JaydotMurf's full-sized avatar

millionaire_murf JaydotMurf

View GitHub Profile
@WebDevSimplified
WebDevSimplified / bootstrap-breakpoint.css
Last active November 23, 2023 07:08
This stylesheet adds text describing the current Bootstrap Breakpoint in the top right corner of the screen.
View bootstrap-breakpoint.css
body {
margin-top: 40px; /* This margin just makes the text easier to read. You can remove it if you want since it can mess with your other styles. */
}
body::before {
content: "XS";
color: red;
font-size: 2rem;
font-weight: bold;
position: fixed;
@luismts
luismts / GitCommitBestPractices.md
Last active December 10, 2023 10:56
Git Tips and Git Commit Best Practices
View GitCommitBestPractices.md

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

@npearce
npearce / install-docker.md
Last active December 5, 2023 13:30
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command
View install-docker.md

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@DrSensor
DrSensor / Advanced Markdown Tricks.md
Last active December 7, 2023 20:16
Advanced Markdown Tricks
View Advanced Markdown Tricks.md

Repository

What Will I Learn?

In general, you will learn some markdown tricks combined with standard HTML tags. In more details what you will learn:

  • Hide-show content
  • Writing codeblocks inside codeblocks
  • Combining and using italic, bold, superscript, subscript, and/or strikethrough
  • Quoting long sentence (using nested blockquotes)
@OlegGorj
OlegGorj / ssh-key-for-ansible-playbook.md
Created January 13, 2018 18:34
Specifying ssh key in ansible playbook file
View ssh-key-for-ansible-playbook.md

The variable name is ansible_ssh_private_key_file .

One should set it at 'vars' level:

  • in the inventory file:
myHost ansible_ssh_private_key_file=~/.ssh/mykey1.pem
myOtherHost ansible_ssh_private_key_file=~/.ssh/mykey2.pem
@princebot
princebot / install_wormhole.bat
Created July 29, 2017 17:44
Install Python magic-wormhole on Windows.
View install_wormhole.bat
::
:: This script installs wormhole (https://github.com/warner/magic-wormhole) and
:: its prerequisites. Run this as an administrator.
::
:: Install chocolatey.
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: Install Python 3.
choco install -y python
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active December 6, 2023 19:27
How to add a collapsible section in markdown.
View markdown-details-collapsible.md

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active December 10, 2023 14:26
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k