Skip to content

Instantly share code, notes, and snippets.

channaveer /
Created Apr 5, 2021 — forked from oodavid/
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
    • apache's home directory is /var/www/
channaveer / Test Driven Laravel from
Created Sep 16, 2020 — forked from Pen-y-Fan/Test Driven Laravel from
Test Driven Laravel from Scratch by Adam Wathan
View Test Driven Laravel from

Test Driven Laravel from Scratch by Adam Wathan 26 min ~2015.

One of the biggest hurdles in getting started with test driven development with a brand new application is knowing exactly what test to write first. In this screencast, I walk through using outside-in TDD to drive out a feature from scratch in a brand new untouched Laravel application.

Notes & disclaimer

  • The purpose of these notes are to follow the above tutorial, making detailed notes of each step.
channaveer / pdf-invoice.html
Last active Apr 13, 2021
Invoice Sample HTML
View pdf-invoice.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Some Random Title</title>
channaveer /
Created Apr 3, 2020 — forked from vicgonvt/
Deployment Guide for Ubuntu Server from Scratch with Laravel
View gist:23a4f3966f1343aa2a54646665d1749a
html {
line-height: 1.15;
-webkit-text-size-adjust: 100%;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
body {
margin: 0;
padding: 0;
font-size: 14px;
channaveer / php.json
Created Aug 15, 2019
View php.json
"Custom For Loop": {
"prefix": "feach",
"body": [
"foreach ($1 as $2) {",
"description": "Custom For Loop"