Skip to content

Instantly share code, notes, and snippets.

View MrZyr0's full-sized avatar

Julien SEIXAS MrZyr0

View GitHub Profile
@MrZyr0
MrZyr0 / autoScrollerPresentation.js
Created August 27, 2021 16:20
A simple js script to present websites beautifully
// Add here all scroll value you want (each scroll steps). Scroll manually and use pageYOffset to setup it
// If empty, the script will automaticly scroll by 90% of the window height
const scrollOffsets = []
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function a() {
const scrollElementHeight = Math.max(document.body.scrollHeight, document.body.offsetHeight,
@MrZyr0
MrZyr0 / Git-edit-commits.sh
Created June 22, 2022 07:48
Use `git filter-branch` to do some processing on all commits of a branch
#!/bin/bash
git filter-branch --env-filter '
WRONG_EMAIL="[email protected]"
NEW_NAME="John Doe"
NEW_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"