Skip to content

Instantly share code, notes, and snippets.

View aziyan99's full-sized avatar
🖥️
Near From Keyboard

Raja Azian aziyan99

🖥️
Near From Keyboard
View GitHub Profile
@aziyan99
aziyan99 / export-csv-moodle.php
Created December 28, 2022 09:45 — forked from kralo/export-csv-moodle.php
Example boilerplate for csv export from moodle
<?php
/**
* Example for howto to serve a csv file for download in Moodle using the /lib/csvlib.class.php
* Very handy for exporting various data. This example demonstrates csv data export from within a moodle plugin
*
* This file is public domain where applicable,
* else GNU LGPL
*/
require_once '../../config.php'; // to include $CFG, for example
require_once ($CFG->libdir . '/csvlib.class.php');
@aziyan99
aziyan99 / cut_silence.py
Created June 4, 2022 05:36 — forked from vivekhaldar/cut_silence.py
Python script to cut out silent parts from a video. Uses moviepy.
#!/usr/bin/env python
#
# Based on a script by Donald Feury
# https://gitlab.com/dak425/scripts/-/blob/master/trim_silenceV2
# https://youtu.be/ak52RXKfDw8
import math
import sys
import subprocess
import os
@aziyan99
aziyan99 / MoodleValetDriver.php
Created May 18, 2022 04:46 — forked from sandeepgill/MoodleValetDriver.php
Laravel Valet Moodle driver
<?php
class MoodleValetDriver extends BasicValetDriver
{
protected $isStyleUri = false;
protected $baseUri = '';
protected $moodleStaticScripts = [
'styles.php',
'javascript.php',
'jquery.php',