This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set backspace=2 " backspace in insert mode works like normal editor | |
| set shiftwidth=2 " indent by 2 spaces when auto-indenting | |
| set softtabstop=2 " indent by 2 spaces when hitting tab | |
| syntax on " syntax highlighting | |
| filetype indent on " activates indenting for files | |
| set autoindent " auto indenting | |
| set number " line numbers | |
| colorscheme desert " colorscheme desert | |
| set nobackup " get rid of anoying ~file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "[html]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[javascript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[json]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Simple log | |
| function logme($data, $group = 'default') | |
| { | |
| $type = strtolower(gettype($data)); | |
| $message = ''; | |
| if (in_array($type, ['object', 'array', 'resource', 'resource (closed)'])) { | |
| $message = print_r($data, true); | |
| } elseif (in_array($type, ['boolean', 'null', 'unknown type'])) { | |
| $message = var_export($data, true); | |
| } else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "ignacio/commandlineme", | |
| "description": "Command line scripts with PHP", | |
| "type": "project", | |
| "require": { | |
| "aws/aws-sdk-php": "^3.184", | |
| "guzzlehttp/guzzle": "^7.3", | |
| "illuminate/database": "^8.47", | |
| "illuminate/http": "^8.63", | |
| "laravel/helpers": "^1.4", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $curl_info = curl_version(); | |
| echo "CURL Info\n"; | |
| print_r($curl_info); | |
| $ch = curl_init('https://www.howsmyssl.com/a/check'); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
| $data = curl_exec($ch); | |
| curl_close($ch); | |
| $json = json_decode($data); |
NewerOlder