Skip to content

Instantly share code, notes, and snippets.

@channaveer
channaveer / README.md
Created Apr 5, 2021 — forked from oodavid/README.md
Deploy your site with git
View README.md

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
channaveer / Test Driven Laravel from Scratch.md
Created Sep 16, 2020 — forked from Pen-y-Fan/Test Driven Laravel from Scratch.md
Test Driven Laravel from Scratch by Adam Wathan
View Test Driven Laravel from Scratch.md

Test Driven Laravel from Scratch

https://vimeo.com/151390908 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
channaveer / pdf-invoice.html
Last active Apr 13, 2021
Invoice Sample HTML
View pdf-invoice.html
<!DOCTYPE html>
<html lang="en">
<head>
<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>
<style>
body{
@channaveer
channaveer / deployment_guide.md
Created Apr 3, 2020 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
View deployment_guide.md
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;
View bradvin.social.share.urls.txt
https://wa.me/{phone_number}/?text={urlencodedtext}
http://compose.mail.yahoo.com/?to={email_address}&subject={title}&body={url}
http://digg.com/submit?url={url}
http://pinterest.com/pin/create/link/?url={url}
http://service.weibo.com/share/share.php?url={url}&appkey=&title={title}&pic=&ralateUid=
http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={url}
http://surfingbird.ru/share?url={url}&description={text}&screenshot={image}&title={title}
http://vk.com/share.php?url={url}&title={title}&comment={text}
http://widget.renren.com/dialog/share?resourceUrl={url}&srcUrl={url}&title={title}&description={text}
http://www.addthis.com/bookmark.php?url={url}
@channaveer
channaveer / php.json
Created Aug 15, 2019
VSCODE PHP Snippets
View php.json
{
"Custom For Loop": {
"prefix": "feach",
"body": [
"foreach ($1 as $2) {",
"\t$3",
"}"
],
"description": "Custom For Loop"
},