Skip to content

Instantly share code, notes, and snippets.

View nickdbush's full-sized avatar

Nick Bush nickdbush

View GitHub Profile
@nickdbush
nickdbush / bookmarklet.js
Created December 16, 2020 01:55
Often videos on the Learn page at the University of Edinburgh are teeny-tiny for a reason which escapes most of us. Create a bookmark with the location set to the contents of bookmarklet.js and if you click it on a Learn page, it will maximise the space given to the videos. Alternatively, open up DevTools and paste it into the command line.
javascript: function resize() {
document.querySelectorAll(".kalturawrapper").forEach((wrapper) => {
wrapper.parentElement.style.width = "100%";
wrapper.parentElement.style.height = "unset";
wrapper.parentElement.style.maxWidth = "1000px";
wrapper.parentElement.style.maxHeight = "unset";
wrapper.style.width = "100%";
wrapper.style.height = "unset";
wrapper.style.maxWidth = "unset";
wrapper.style.maxHeight = "unset";
@nickdbush
nickdbush / README.md
Last active March 14, 2024 08:52
Superdesk installation instructions (Docker)

Archive only

I haven't looked at Superdesk in close to two years now (I no longer work at Sourcefabric) and I have little to no recollection of how to set it up. I'm leaving this gist online mainly for archival reasons and because there's a lot of useful information in the comments that I don't want to disappear from the internet. I hope you get it up and running one way or another, and if you do, please pop your solution here/make a new gist and link it here for others!

How to install Superdesk using Docker

  1. Install Docker
  2. Copy and paste docker-compose.yml in this gist into a blank folder (call it something like superdesk/)
  3. Open the folder in a terminal
  4. Run docker-compose up