ssh root@SERVER_IP_ADDRESS
wget https://dl.eff.org/certbot-auto
/* 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', |
/** | |
* Adds moderater filter to groups loop | |
* | |
* @return void | |
*/ | |
function otc_group_moderate_option_filter() { | |
?> | |
<option value="moderate"><?php _e( 'Moderate' ); ?></option> | |
<?php | |
} |
function bp_add_test_activity() { | |
for ( $k = 0 ; $k < 10; $k++ ) { | |
$args = array( | |
'action' => 'test', | |
'content' => 'This is a test activity', | |
'component' => 'activity', | |
'type' => 'activity_update', | |
); | |
bp_activity_add( $args ); |
<?php | |
/** | |
* Taskbot_Example. | |
* | |
* @author modemlooper | |
*/ | |
// Exit if accessed directly. | |
if ( ! defined( 'ABSPATH' ) ) { |
<?php | |
/* --- Exit if accessed directly --- */ | |
if ( !defined( 'ABSPATH' ) ) exit; | |
/* --- Check if member is a friend --- */ | |
function bp_displayed_user_is_friend() { | |
global $bp; | |
if ( bp_is_active('friends') ) { |