Bash script i personally use to setup a new server initially.
Fire the following command:
wget -qO https://git.io/voICQ && sudo bash
module.exports = function(grunt) { | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
clean: ['dist'], | |
copy: { | |
generated: { | |
src: 'src/index.html', | |
dest: 'dist/index.html' |
add_action( 'init', 'disable_emoji', 1 ); | |
function disable_emoji() { | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | |
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | |
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); | |
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); | |
add_filter( 'tiny_mce_plugins', 'disable_tinymce_emoji' ); |
location ~* \.(jpe?g|gif|png)$ { | |
try_files $uri @photon; | |
} | |
location @photon { | |
rewrite ^(.*)-([0-9]+)x([0-9]+)\.(jpe?g|gif|png)$ http://i0.wp.com/$host$1.$4?resize=$2,$3; | |
rewrite . http://i0.wp.com/$host$request_uri; | |
} |
function register_watermarked_size() { | |
add_image_size( 'watermarked', 550, 550, true ); // This is what should be uploaded | |
} | |
add_action( 'init', 'register_watermarked_size' ); | |
class Watermark_Image { | |
// The attachment meta array | |
public $meta = array(); |
/** | |
* Sample CSS customizations for The Events Calendar and related plugins. | |
* | |
* Contents: 1. Tribe Bar Customizations | |
* 2. General Customizations for All Views | |
* 3. Month View Customizations | |
* 4. List View Customizations | |
* 5. Single Event Page Customizations | |
* | |
* Usage: This file can be used "as is" - simply save it as "tribe-events.css" within |
// Gulp 4 | |
var gulp = require('gulp'); | |
var using = require('gulp-using'); | |
var grep = require('gulp-grep'); | |
var changed = require('gulp-changed'); | |
var del = require('del'); | |
var coffee = require('gulp-coffee'); | |
var less = require('gulp-less'); | |
var coffeelint = require('gulp-coffeelint'); | |
var sourcemaps = require('gulp-sourcemaps'); |
#!/bin/sh | |
NGINX_VER=1.7.7 | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential zlib1g-dev libpcre3 libpcre3-dev libbz2-dev libssl-dev tar unzip openssl | |
mkdir -p dev/nginx | |
cd dev/nginx | |
curl -O http://nginx.org/download/nginx-${NGINX_VER}.tar.gz |
<div id="bgimgweather"> | |
<?php | |
$url = 'http://w1.weather.gov/xml/current_obs/KSYR.xml'; | |
$xml = simplexml_load_file($url); | |
$currentweather = $xml->weather; | |
//$currentweather = "Light Rain"; | |
?> | |
</div> |