Skip to content

Instantly share code, notes, and snippets.

@heryvandoro
heryvandoro / currency_lis.php
Created September 13, 2019 05:49 — forked from techguydev/currency_lis.php
Currency list for Laravel seeder
<?php
$currencies = array('code' =>
array('code' =>'AFN' , 'name' => 'Afghani', 'symbol' => '؋' ),
array('code' =>'ALL' , 'name' => 'Lek', 'symbol' => 'Lek' ),
array('code' =>'ANG' , 'name' => 'Netherlands Antillian Guilder', 'symbol' => 'ƒ' ),
array('code' =>'ARS' , 'name' => 'Argentine Peso', 'symbol' => '$' ),
array('code' =>'AUD' , 'name' => 'Australian Dollar', 'symbol' => '$' ),
array('code' =>'AWG' , 'name' => 'Aruban Guilder', 'symbol' => 'ƒ' ),
array('code' =>'AZN' , 'name' => 'Azerbaijanian Manat', 'symbol' => 'ман' ),
array('code' =>'BAM' , 'name' => 'Convertible Marks', 'symbol' => 'KM' ),
@silasrm
silasrm / gist:3da655045b899a858eae4f4463755f5c
Last active January 31, 2023 16:03 — forked from maccath/gist:3981205
Split PDF to individual pages using FPDI and FPDF
<?php
/**
* Split PDF file
*
* <p>Split all of the pages from a larger PDF files into
* single-page PDF files.</p>
*
* @package FPDF required http://www.fpdf.org/
* @package FPDI required http://www.setasign.de/products/pdf-php-solutions/fpdi/
@maztch
maztch / bitbucket-webhook.php
Last active September 7, 2021 00:49
A simple php script for deploy using bitbucket webhook
<?php
//edit with your data
$repo_dir = '~/repository.git';
$web_root_dir = '~/project';
$post_script = '~/project/scripts/post_deploy.sh';
$onbranch = 'master';
// A simple php script for deploy using bitbucket webhook
// Remember to use the correct user:group permisions and ssh keys for apache user!!
// Dirs used here must exists on server and have owner permisions to www-data