ssh root@SERVER_IP_ADDRESS
wget https://dl.eff.org/certbot-auto
| # ----------------------------------------------------------------- | |
| # | |
| # By default all files are ignored. You'll need to whitelist | |
| # any mu-plugins, plugins, or themes you want to include in the repo. | |
| # | |
| # To ignore uncommitted changes in a file that is already tracked, use | |
| # git update-index --assume-unchanged | |
| # | |
| # To stop tracking a file that is currently tracked, use | |
| # git rm --cached |
| /** | |
| * Save the image on the server. | |
| */ | |
| function save_image( $base64_img, $title ) { | |
| // Upload dir. | |
| $upload_dir = wp_upload_dir(); | |
| $upload_path = str_replace( '/', DIRECTORY_SEPARATOR, $upload_dir['path'] ) . DIRECTORY_SEPARATOR; | |
| $img = str_replace( 'data:image/jpeg;base64,', '', $base64_img ); |
| function distance(lat1, lon1, lat2, lon2, unit) { | |
| if ((lat1 == lat2) && (lon1 == lon2)) { | |
| return 0; | |
| } | |
| else { | |
| var radlat1 = Math.PI * lat1/180; | |
| var radlat2 = Math.PI * lat2/180; | |
| var theta = lon1-lon2; | |
| var radtheta = Math.PI * theta/180; | |
| var dist = Math.sin(radlat1) * Math.sin(radlat2) + Math.cos(radlat1) * Math.cos(radlat2) * Math.cos(radtheta); |
| "headers": [ | |
| { | |
| "source": "/build/app/**", | |
| "headers": [ | |
| { | |
| "key": "Link", | |
| "value": "public, max-age=31536000" | |
| } | |
| ] | |
| }, |
| /* eslint-disable camelcase, comma-dangle */ | |
| const Twit = require('twit'); | |
| const Future = require('fluture'); | |
| const { Either, Reader } = require('ramda-fantasy'); | |
| const logError = x => console.error(x); // eslint-disable-line no-console | |
| const log = x => console.log(x); // eslint-disable-line no-console | |
| // getBlocks :: TwitterClient -> Future | |
| // get all of your blocks |
| #Remove .html from urls | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^([^\.]+)$ $1.html [NC,L] | |
| # Is it a file? serve it, is it not a file? serve index.html | |
| RewriteRule ^index\.html$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . index.html [L] |
| .toolbar-ios { | |
| height: 44px + $cordova-ios-statusbar-padding; | |
| padding-top: $cordova-ios-statusbar-padding; | |
| } | |
| .toolbar-title-ios { | |
| padding-top: $cordova-ios-statusbar-padding; | |
| } |
| function wp43566_activity_dont_save( $activity_object ) { | |
| $exclude = array( | |
| 'joined_group', | |
| 'activity_update', | |
| 'new_member', | |
| 'created_group', | |
| 'updated_profile', | |
| 'new_avatar', | |
| 'new_event', | |
| 'friendship_accepted', |