Skip to content

Instantly share code, notes, and snippets.

View luukverhoeven's full-sized avatar
🚀
To Infinity, And Beyond!

Luuk Verhoeven luukverhoeven

🚀
To Infinity, And Beyond!
View GitHub Profile
@luukverhoeven
luukverhoeven / handy_bash.sh
Last active April 20, 2022 07:58
A list of handy bash commands
# Bash Notes
# Silver search
ag -G "/settings.php" courses
ag -G "/version.php" format_grid /home/
# Search by type
cd /; sudo find . -depth -type d -name .gnupg
# Search plugin Moodle the fast way
@luukverhoeven
luukverhoeven / moodle.sh
Created April 22, 2018 08:29
Moodle tool for your local machine
#!/bin/bash
# Author: Luuk Verhoeven - MoodleFreak
# Version: 1.0
# Should be linked as a alias in your bashrc or zshrc
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
magenta=`tput setaf 5`
reset=`tput sgr0`
@luukverhoeven
luukverhoeven / laravel.sh
Created April 22, 2018 08:31
Laravel bash tool for your local machine
#!/bin/bash
# Author: Luuk Verhoeven - MoodleFreak
# Version: 1.0
# Should be linked as a alias in your bashrc or zshrc
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
magenta=`tput setaf 5`
reset=`tput sgr0`
@luukverhoeven
luukverhoeven / moodle_cli.sh
Last active July 20, 2018 11:55
Moodle CLI
# Moodle CLI help
# Clear cache from Cli
sudo -u www-data php admin/cli/purge_caches.php
# Upgrade from CLI
sudo -u www-data php admin/cli/upgrade.php --non-interactive
# Run cron
sudo -u www-data php admin/cli/cron.php
@luukverhoeven
luukverhoeven / nmap-scanning.sh
Created April 22, 2018 08:54
Scanning with nmap
# Scanning
# ----------------
# Get open ports
# Get banners
# Get service versions
# Ping Sweep fast scan / Discovery
nmap -sP 192.168.178.1-254
# no results try
nmap -sL 192.168.178.1
@luukverhoeven
luukverhoeven / arduino_wallE3.ino
Last active April 22, 2018 08:59
Arduino robot code v3
/**
Wall E robot car avoid objects
@Version: 3.0.0
@Since 22-nov-2016
@Author : Luuk Verhoeven
*/
#include <Servo.h>
#include <NewPing.h>
@luukverhoeven
luukverhoeven / phpstorm.vmoptions
Last active April 19, 2024 10:22
My Phpstorm vmoptions + idea.properties
-ea
-server
-Xms512m
-Xmx2g
-XX:ParallelGCThreads=8
-XX:PermSize=350m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=240m
-XX:LargePageSizeInBytes=256m
-XX:+UseConcMarkSweepGC
@luukverhoeven
luukverhoeven / moodle-privacy-test.php
Last active April 3, 2023 11:36
Moodle privacy testing tool
<?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
<?php
# handy Moodle snippets
# Config catch all mails.
$CFG->divertallemailsto = 'debug@ldesign.nl';
# Force debugging.
@ini_set('display_errors', '1');
$CFG->debug = 32767;
$CFG->debugdisplay = true;
@luukverhoeven
luukverhoeven / block-myoverview.css
Created July 6, 2018 11:30
Styling block-myoverview
.block-myoverview .btn-group {
float: left;
margin-left: 25px;
}
.block-myoverview .pagination ul {
float: left;
margin-left: 5px;
}