Skip to content

Instantly share code, notes, and snippets.

@jjsaunier
jjsaunier / Dockerfile
Last active August 14, 2018 18:56
PPM under PHAR
FROM php-cgi #custom
COPY api.phar /api.phar
EXPOSE 8888
CMD ["/api.phar", "start", "-c", "ppm.json"]
@sixlive
sixlive / gistlog.yml
Last active February 10, 2020 18:14
My API Response "Standard"
published: true
@calebporzio
calebporzio / PreviewOfUpcomingPackage.php
Last active April 16, 2024 06:26
A model trait that allows child models to use parent table names and relationship keys.
<?php
namespace App\Abilities;
use Illuminate\Support\Str;
use ReflectionClass;
/**
* Note: This is a preview of an upcoming package from Tighten.
**/
@wayneashleyberry
wayneashleyberry / UpgradeTimestamps.php
Created April 20, 2016 10:03
Laravel Artisan command to upgrade timestamp columns for MySQL 5.7 strict mode.
<?php
namespace App\Console\Commands;
use DB;
use Illuminate\Console\Command;
class UpgradeTimestamps extends Command
{
/**
@CMCDragonkai
CMCDragonkai / angularjs_directive_attribute_explanation.md
Last active November 29, 2023 15:35
JS: AngularJS Directive Attribute Binding Explanation

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@larsar
larsar / shared_folder_centos_virtualbox.txt
Created January 27, 2012 08:04
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot