Skip to content

Instantly share code, notes, and snippets.

View martignoni's full-sized avatar

Nicolas Martignoni martignoni

View GitHub Profile
@ericmerrill
ericmerrill / Mac Dev Setup.md
Last active August 23, 2023 22:24
Basic setup guide for Moodle on Mac

Apple Silicon Macs

If you have a Apple Silicon Macs, anywhere that says /usr/local should be replaced with /opt/homebrew.

Security Warning

This is not meant for a production environment, a system holding sensitive information, or anything else of the sort. This is meant for development environments only, and makes some security tradeoffs for simple development.

Intro

@sammarshallou
sammarshallou / install.php
Created June 4, 2019 16:39
How to have a Moodle block add itself to the dashboard page for everyone
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@drblue
drblue / fix_onedrive.sh
Last active April 16, 2024 21:54
Fix OneDrive for Mac CPU usage
#!/bin/bash
## Fix OneDrive for Mac CPU usage
##
## Seems this is still a problem 5 years later after I created this little gist.
## I have long since stopped using OneDrive (luckily), but according to
## comments below, I have added the new path for OfficeFileCache for macOS
## Mojave (10.14) and Catalina (10.15).
## Run this on macOS Mojave (10.14) and Catalina (10.15)
find ~/Library/Containers/ -type d -name OfficeFileCache -exec rm -r {} +