Skip to content

Instantly share code, notes, and snippets.

Dileepa Ameresekere doopz

Block or report user

Report or block doopz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@doopz
doopz / Laravel_Debug.md
Created Aug 11, 2019
Laravel debugging
View Laravel_Debug.md
  • Show SQL

Add the following to the boot method in app/Providers/AppServiceProvider.php

    public function boot()
    {
        \DB::listen(function ($query) {
            logger($query->sql, [
                'bindings' => $query->bindings,
@doopz
doopz / Install Odoo 12 Instructions.md
Last active Oct 19, 2019
Install Odoo 12 on Ubuntu 18.04 with Nginx and Letscrypt
View Install Odoo 12 Instructions.md

Install Odoo 12 Instructions

Update OS

sudo apt update && sudo apt upgrade
sudo apt autoremove

Install Postgress

@doopz
doopz / README-Template.md
Created Jul 15, 2019 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@doopz
doopz / obfuscate_email_address_basic_example.txt
Last active Feb 1, 2017
basic obfuscating an email address for the web
View obfuscate_email_address_basic_example.txt
* Obfuscating is not going to stop everyone but goes some way to protect your email address from some bots.
* This is a basic implementation which works for me.
* There are 3 parts to it which are as follows:
// css
.obfuscate {
unicode-bidi: bidi-override;
direction: rtl;
}
You can’t perform that action at this time.