Skip to content

Instantly share code, notes, and snippets.

View dgtlmonk's full-sized avatar
💭
We first make our habits, and then our habits make us.

dgtlmonk dgtlmonk

💭
We first make our habits, and then our habits make us.
View GitHub Profile
@dgtlmonk
dgtlmonk / scribd2pdf.js
Created December 26, 2022 14:23 — forked from dbuezas/scribd2pdf.js
loads all jpegs and makes a pdf with them
load = async (url) => {
var head= document.getElementsByTagName('head')[0];
var script= document.createElement('script');
script.type= 'text/javascript';
script.src= url;
return new Promise(resolve => {
script.addEventListener('load', resolve);
head.appendChild(script);
});
@dgtlmonk
dgtlmonk / git-pushing-multiple.rst
Created April 18, 2021 09:30 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@dgtlmonk
dgtlmonk / master-javascript-interview.md
Created February 27, 2020 17:44 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series