This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config.
| #!/bin/sh | |
| ## clear the output | |
| clear | |
| ## auth the sudo command | |
| sudo -p "Please enter you admin password: " whoami 1>/dev/null | |
| if [ "$(sudo whoami)" != 'root' ]; then | |
| echo "You entered an invalid password or you are not an admin/sudoer user!\n\nScript aborted" | |
| exit 1; |
| /* <i> Cloud */ | |
| html { | |
| min-height: 100%; | |
| background: linear-gradient(#b4bcbf, #fff); | |
| } | |
| .cloud { | |
| display: inline-block; | |
| background-color: #fff; |
| /** | |
| * box-shadow vs filter: drop-shadow 2 | |
| */ | |
| body { | |
| background: #ddd; | |
| font: 16px/1 sans-serif; | |
| margin: 50px; | |
| text-align: right; |
| { | |
| // save before running commands | |
| "save_first": true | |
| // if present, use this command instead of plain "git" | |
| // e.g. "/Users/kemayo/bin/git" or "C:\bin\git.exe" | |
| ,"git_command": false | |
| // point this the installation location of git-flow | |
| ,"git_flow_command": "/usr/local/bin/git-flow" |
This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config.
| <?php | |
| function output_file($file, $name, $mime_type='') | |
| { | |
| /* | |
| This function takes a path to a file to output ($file), | |
| the filename that the browser will see ($name) and | |
| the MIME type of the file ($mime_type, optional). | |
| If you want to do something on download abort/finish, |
| <?php | |
| // Disable libxml errors and allow user to fetch error information as needed | |
| libxml_use_internal_errors(true); | |
| class PSN_friends | |
| { | |
| public $log_file, $session, $frineds; | |
| function __construct() | |
| { |
| <?php | |
| /** | |
| * Return the value for a key in an array or a property in an object. | |
| * @param mixed $haystack | |
| * @param string $needle | |
| * @param mixed $default_value The value if key could not be found. | |
| * @return mixed | |
| */ | |
| function get_key ($haystack, $needle, $default_value = '') | |
| { |
| <?php | |
| /** | |
| * private getCoordinates() | |
| */ | |
| private function getCoordinates($address = false) | |
| { | |
| if (!$address) { | |
| return false; | |
| } |
| public function epoch($_value = "", $_format = "Y-m-d H:i:s") | |
| { | |
| // Description: This function tries to cope with as many numerical time and date | |
| // formats as possible. | |
| // Parameters: | |
| // $_value: The time and/or date string (dd-mm-yyy, yyy-mm-dd, hh:mm:ss etc). | |
| // $_format: The output format options (same as PHP "date" function). | |
| $epoch = 0; | |
| $pm = ''; |