- Ubuntu 16.04.3 x64
- 2 GB Memory / 60 GB Disk
- 200 GB block storage volume
get ip-address from digital ocean
| <?php | |
| // bootstrap.php | |
| // Include Composer Autoload (relative to project root). | |
| use Doctrine\ORM\Tools\Setup; | |
| use Doctrine\ORM\EntityManager; | |
| date_default_timezone_set('America/Lima'); | |
| require_once "vendor/autoload.php"; |
| <?php | |
| /** | |
| * @author Esser Jan | |
| * @license MIT | |
| * @example InternationalBankAccountNumber::createFromString($someString) | |
| * @example InternationalBankAccountNumber::createFromString($someString)->toFormattedString() // space separated | |
| * @example InternationalBankAccountNumber::createFromString($someString)->toFormattedString('-', 4, true) // IBAN prefixed - separated | |
| */ | |
| class InternationalBankAccountNumber | |
| { |
| <?php | |
| // MySQL schema | |
| /* | |
| CREATE TABLE `test` ( | |
| `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
| `text` text, | |
| `blob` blob, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
| <?php | |
| $data = (object)array( | |
| "html" => "<foo bar=\"baz\"/> &", | |
| "arabic" => "العربية al-ʿarabiyyah, IPA: [æl ʕɑrɑˈbijjɐ], or عربي ʿarabī", | |
| "hebrew" => "עִבְרִית, Ivrit", | |
| "chinese" => "汉语/漢語 Hanyu; 华语/華語 Huáyǔ; 中文 Zhōngwén", | |
| "korean" => "한국어/조선말", | |
| "japanese" => "日本語 Nihongo", | |
| "umlauts" => "äüöãáàß", |
| <?php | |
| // This file demonstrates file upload to an S3 bucket. This is for using file upload via a | |
| // link compared to actually having the image file content. If you are doing it via image | |
| // file upload, like getting the file from $_FILE, refer to this: | |
| // https://gist.github.com/keithweaver/70eb06d98b008113ce97f6148fbea83d | |
| // | |
| // You must setup your bucket to have the proper permissions. To learn how to do this | |
| // refer to: | |
| // https://github.com/keithweaver/python-aws-s3 | |
| // https://www.youtube.com/watch?v=v33Kl-Kx30o |
| <?php | |
| // This file demonstrates file upload to an S3 bucket. This is for using file upload via a | |
| // file compared to just having the link. If you are doing it via link, refer to this: | |
| // https://gist.github.com/keithweaver/08c1ab13b0cc47d0b8528f4bc318b49a | |
| // | |
| // You must setup your bucket to have the proper permissions. To learn how to do this | |
| // refer to: | |
| // https://github.com/keithweaver/python-aws-s3 | |
| // https://www.youtube.com/watch?v=v33Kl-Kx30o | |
| import { app } from 'electron'; | |
| /** | |
| * Startup protocol/app schema registration | |
| * | |
| * @param {string} protocol Startup protocol/app schema to register ("://" must not be included) | |
| * | |
| * process.argv[1] will contain the full protocol/app schema through which the app has been started; | |
| * data can be sent to renderer windows through webContents.send() and ipcRenderer or other means. | |
| * |
| <?php | |
| /** | |
| * QR Code + Logo Generator | |
| * | |
| * http://labs.nticompassinc.com | |
| */ | |
| $data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com'; | |
| $size = isset($_GET['size']) ? $_GET['size'] : '200x200'; | |
| $logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE; |
| # From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |