See Amazon tutorial: Getting Started with Amazon EC2 Linux Instances
See Amazon tutorial: Installing a LAMP Web Server on Amazon Linux
See Amazon tutorial: Getting Started with Amazon EC2 Linux Instances
See Amazon tutorial: Installing a LAMP Web Server on Amazon Linux
| function iframeURLChange(iframe, callback) { | |
| var lastDispatched = null; | |
| var dispatchChange = function () { | |
| var newHref = iframe.contentWindow.location.href; | |
| if (newHref !== lastDispatched) { | |
| callback(newHref); | |
| lastDispatched = newHref; | |
| } |
| private function findNearestLocation(Request $request) | |
| { | |
| $location = DB::table('locations') | |
| ->select('name', 'latitude', 'longitude', 'region', DB::raw(sprintf( | |
| '(6371 * acos(cos(radians(%1$.7f)) * cos(radians(latitude)) * cos(radians(longitude) - radians(%2$.7f)) + sin(radians(%1$.7f)) * sin(radians(latitude)))) AS distance', | |
| $request->input('latitude'), | |
| $request->input('longitude') | |
| ))) | |
| ->having('distance', '<', 50) | |
| ->orderBy('distance', 'asc') |
| RewriteEngine on | |
| # Disable Directory listing | |
| Options -Indexes | |
| # Redirect Trailing Slashes If Not A Folder... | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} (.+)/$ | |
| RewriteRule ^ %1 [L,R=301] |
| export function decode(querystring: string): object { | |
| function parseValue(value: string): any { | |
| if (value === 'TRUE') return true; | |
| if (value === 'FALSE') return false; | |
| return isNaN(Number(value)) ? value : Number(value); | |
| } | |
| function dec(list: any[], isArray = false): object { | |
| let obj: any = isArray ? [] : {}; |
| # Node Js | |
| curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - | |
| sudo yum install nodejs | |
| node --version | |
| npm --version | |
| # Redis |
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |