Skip to content

Instantly share code, notes, and snippets.

@upepo-mwindaji
upepo-mwindaji / git-author-change.sh
Created October 5, 2025 09:35
git author change
#!/bin/bash
# Script to change git author for all commits
# Usage: ./change-git-author.sh
set -e
echo "================================================"
echo "Git Author Change Script"
echo "================================================"
@upepo-mwindaji
upepo-mwindaji / image-scatterplot-vega-lite.json
Created February 26, 2024 08:02
image scatterplot vega lite
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A scatterplot showing images at data points based on dynamic metrics and dimensions, with text labels.",
"layer": [
{
"mark": {
"type": "image",
"width": 50,
"height": 50,
"align": "center"
@upepo-mwindaji
upepo-mwindaji / iframe nginx
Last active September 12, 2023 21:08
allow iframe in nginx config
# ssh into server
ssh user@sub.domain.tld -i ~/.ssh/config
# go to conf
/etc/nginx/conf.d/sub.domain.tld.conf
# update CSP
vim sub.domain.tld.conf
# add this line
add_header Content-Security-Policy "frame-ancestors sub.domain.tld";
# restart nginx
sudo systemctl restart nginx