Skip to content

Instantly share code, notes, and snippets.

View emmysteven's full-sized avatar
👨‍💻
Working from home

Emmy Steven emmysteven

👨‍💻
Working from home
View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active June 21, 2024 07:01
Git Commit message Emoji
@troyfontaine
troyfontaine / 1-setup.md
Last active June 19, 2024 20:13
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

@eliasdabbas
eliasdabbas / serp_heatmap.py
Last active February 2, 2024 22:58
Create a heatmap of SERPs, using a table with columns: "keyword", "rank", and "domain"
import plotly.graph_objects as go
import pandas as pd
def serp_heatmap(df, num_domains=10, select_domain=None):
df = df.rename(columns={'domain': 'displayLink',
'searchTerms': 'keyword'})
top_domains = df['displayLink'].value_counts()[:num_domains].index.tolist()
top_domains = df['displayLink'].value_counts()[:num_domains].index.tolist()
top_df = df[df['displayLink'].isin(top_domains) & df['displayLink'].ne('')]
@emmysteven
emmysteven / ServiceResponse.java
Created November 18, 2023 19:48
ServiceResponse
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;
import org.springframework.validation.ObjectError;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Data