Skip to content

Instantly share code, notes, and snippets.


Arjay Angeles yajra

View GitHub Profile
View DataProcessor.php
namespace Yajra\DataTables\Processors;
use Illuminate\Support\Arr;
use Yajra\DataTables\Utilities\Helper;
class DataProcessor
yajra / DataTable.vue
Last active Oct 22, 2020
VueJS DataTables Snippets with Delete Button Component
View DataTable.vue
<th v-for="column in parameters.columns" v-html="title(column)"></th>
<tfoot v-if="footer">
<th v-for="column in parameters.columns" v-html="column.footer"></th>
yajra / .env
Last active Aug 12, 2019
Laravel DataTables Editor Snippets
View .env
yajra /
Created Aug 24, 2017 — forked from noelboss/
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like or and pull or export it to a production server. Or you use a service like my to act upon a Web-Hook that's triggered that service.

yajra /
Last active Oct 8, 2020
Install wkhtmltopdf 0.12.4 (with patched qt)
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/
ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
yajra / axios-401-response-interceptor.js
Last active Dec 30, 2020
Axios 401 response interceptor.
View axios-401-response-interceptor.js
// Add a 401 response interceptor
window.axios.interceptors.response.use(function (response) {
return response;
}, function (error) {
if (401 === error.response.status) {
title: "Session Expired",
text: "Your session has expired. Would you like to be redirected to the login page?",
type: "warning",
showCancelButton: true,
yajra /
Created Dec 15, 2016 — forked from brandonb927/
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see
# Alot of these configs have been taken from the various places
# on the web, most from here
yajra /
Created Jun 2, 2016 — forked from gido/
install Oracle PHP Extension (oracle OCI8) - instantclient for Mac OS 10.8 - homebrew environnement


This procedure is tested on Mac OS X 10.8 with Developpers tools installed (xCode).

PHP 5.4 installed with Homebrew.

Update: I wrote a blog post about this.


Download the following files from Oracle website (yes, you need to create an account and accept terms):

yajra / elasticsearch-on-homestead.txt
Created Mar 14, 2016 — forked from lukaswhite/elasticsearch-on-homestead.txt
Installing Elasticsearch on Laravel Homestead
View elasticsearch-on-homestead.txt
# Install Java
sudo apt-get install openjdk-7-jre-headless -y
# Download & install the Public Signing Key
wget -qO - | sudo apt-key add -
# Add the following to /etc/apt/sources.list
deb stable main
# Update Aptitude
yajra /
Created Jan 20, 2016 — forked from r-sal/
PHPExcel Notes and code snippets


Creating a new PHPExcel Object.

    $this->PHPExcel = new PHPExcel();

Working with sheets

Creating a new sheet:

You can’t perform that action at this time.