Skip to content

Instantly share code, notes, and snippets.

View leogopal's full-sized avatar
🔥
Working on a better, free-er web.

Leo Gopal leogopal

🔥
Working on a better, free-er web.
View GitHub Profile

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

[
{
"Project Type": [
"customize",
"design_and_develop",
"fix",
"install",
"consultation"
],
"Project Subject": [

Contributor Covenant Code of Conduct

Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

@leogopal
leogopal / how-i-work-template.md
Created March 19, 2020 21:19 — forked from jazzsequence/how-i-work-template.md
Template for How I Like to Work posts

How I work

This is my own interpretation of how I like to work, feedback welcome! Especially if my own view of how I think I like to work doesn't match your experience of how it seems I like to work!

When I work

@leogopal
leogopal / .gitignore
Created February 22, 2020 07:36
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 anything you want to ignore. You then need to tell git where your global gitignore file is.
#### Mac
git config --global core.excludesfile ~/.gitignore
#### Windows
git config --global core.excludesfile %USERPROFILE%\.gitignore
@leogopal
leogopal / reactions.rb
Created February 19, 2020 23:42 — forked from daybreaker/reactions.rb
Ruby script to check slack reaction counts
require 'slack-ruby-client' # first, make sure you do: gem install slack-ruby-client
require 'date'
# Add your Slack API token here
token = [YOUR TOKEN HERE]
Slack.configure do |config|
config.token = token
end
@leogopal
leogopal / .gitignore
Created February 12, 2020 22:34
WPEngine Recommended .gitignore No WP.
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
# wordpress specific
wp-config.php
@leogopal
leogopal / .gitignore
Last active February 12, 2020 22:33
WPEngine Recommended .gitignore with WordPress
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
# wordpress specific
wp-config.php
@leogopal
leogopal / .gitignore
Created February 12, 2020 22:32
WPEngine Recommended Git Ignores
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
# wordpress specific
wp-config.php
@leogopal
leogopal / config
Created February 12, 2020 20:41
SSH Config - Sample file to show staff the common options to add to your '~/.ssh/config' file. This is just a text file and should have the same perms as the other files in ~/.ssh, usually 600 (read and write by user only).
#### Example SSH config file
# Host = a list of domains, IPs and personalized aliases that use this config
# entry. These alias names follow "Host" and are space delimited.
# e.g. Host 192.168.1.1 example.com example1 myalias1
# Hostname = the IP or real hostname
# e.g. Hostname 192.168.1.1
# User = the username
# e.g. User jdoe
# Port = if this is a non standard port, i.e. not 22