Skip to content

Instantly share code, notes, and snippets.

<?php
// data fields for POST request
$fields = array(
"token" => "2c4b4545a9b80dbac64f490f48cceca4",
"firstname" => "firstname",
"lastname" => "lastname",
"cardnumber" => "4321432143214321",
"cardmonth" => "03",
"cardyear" => "2020",
@chrislim1914
chrislim1914 / gist:fb5625741fc9c52c1c1d5611f4e5589d
Created January 23, 2019 08:03 — forked from wlbr/gist:1685405
Create a git repo with a central repository server.

##Create a git repo with a central repository server.

Step 1: Connect to server, create a new, empty directory there and initialize an empty repository.

$ ssh server.com
Last login ...
Welcome to server.com!
> mkdir myrepo.git 
> cd myrepo.git

> git --bare init

@chrislim1914
chrislim1914 / 1README.md
Created October 11, 2018 03:33 — forked from joseluisq/1README.md
Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.

Lumen 5 HTTP Exception Handlers with JSON support.

Configure PHP Lumen 5 HTTP Exception Handlers with common JSON responses.

image

Setup

Copy (replace) only the attached files to their respective directories. app/Exceptions/Handler.php and app/Http/Middleware/Authenticate.php

@chrislim1914
chrislim1914 / create-thumbnail.php
Created October 5, 2018 07:16 — forked from pqina/create-thumbnail.php
Create thumbnails with PHP
<?
// Link image type to correct image loader and saver
// - makes it easier to add additional types later on
// - makes the function easier to read
const IMAGE_HANDLERS = [
IMAGETYPE_JPEG => [
'load' => 'imagecreatefromjpeg',
'save' => 'imagejpeg',
'quality' => 100
0x2d0F1c20fcd85bB8CC4309F1a0165ae8aC208c26
var path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src') + '/app/index.js',
output: {
path: path.resolve(__dirname, 'dist') + '/app',
filename: 'bundle.js',
publicPath: '/app/'
},