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
@digitaljhelms
digitaljhelms / gist:4287848
Last active June 28, 2024 13:53
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@danpoltawski
danpoltawski / simplified_behat_for_tim_hunt.md
Last active March 22, 2023 17:20
Simplified behat for Tim Hunt

Simplified behat for Tim Hunt.

Disclaimers:

  • I'm hoping this will help you understand so you can help us improve our documentation.
  • This is simplified version, i'm ignoring some details which are unimportant for discusing this.

What Behat requires.

@kralo
kralo / export-csv-moodle.php
Created August 13, 2014 08:45
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');
@smonn
smonn / README.md
Last active July 9, 2023 14:01
How to install git-flow in Windows

How to install git-flow in Windows

When it says "Run command", copy and paste the command part into a CLI, such as Powershell or the command prompt (make sure Git is in the path).

  1. Make sure Git is installed.
  2. From http://gnuwin32.sourceforge.net/packages/util-linux-ng.htm, download the binaries and dependencies zip-files.
  3. Extract them and copy the contents of the bin-folders into your Git installation's bin folder, for example C:\Program Files (x86)\Git\bin. To find out where it is run where.exe git.
  4. Set root directory to where you want to clone git-flow.
  5. Run git clone --recursive git://github.com/nvie/gitflow.git
@auremoser
auremoser / README.md
Created May 28, 2015 08:08
Github Issue Template

This template is my ideal format for issues submitted to a github repository.

@ricca509
ricca509 / chrome-web-security.sh
Last active August 10, 2023 08:25
Chrome: Disable web security [OSX]
// OSX
open -na Google\ Chrome --args --disable-web-security --user-data-dir="/tmp/chrome_dev"
@wojteklu
wojteklu / clean_code.md
Last active June 29, 2024 08:22
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@sandeepgill
sandeepgill / MoodleValetDriver.php
Last active May 26, 2024 12:07
Laravel Valet Moodle driver
<?php
class MoodleValetDriver extends BasicValetDriver
{
protected $isStyleUri = false;
protected $baseUri = '';
protected $moodleStaticScripts = [
'styles.php',
'javascript.php',
'jquery.php',
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active June 22, 2024 03:19
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.