Skip to content

Instantly share code, notes, and snippets.

View Jason-time's full-sized avatar
:octocat:

Jason Time Jason-time

:octocat:
  • Korea
View GitHub Profile
@kenu
kenu / gist:971d4354f09bd2490c7a69c69f1cb988
Created December 19, 2020 14:02
extract youtube list
var items = document.querySelectorAll('[id=dismissable]')
items.forEach(item => {
var data = {
title: item.children[1].children[0].children[0].innerText,
link: item.children[1].children[0].children[0].children[1].href,
meta: item.children[1].children[0].children[1].innerText
};
console.log(JSON.stringify(data));
});
package me.whiteship.livestudyupdator;
import org.kohsuke.github.GHIssue;
import org.kohsuke.github.GHIssueComment;
import org.kohsuke.github.GHRepository;
import org.kohsuke.github.GitHub;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Comparator;
@carlosmcevilly
carlosmcevilly / gist:2221249
Last active April 3, 2025 12:47
fix git commit with wrong email address in git config, before pushing
If:
- you add and commit with the wrong email address in git, and
- your remote has a hook set up to prevent you from pushing with the bad address
Then you need to amend the author of your commit before push can succeed:
1. fix your email address in git config:
$ git config user.name "Your Name"