Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
View simpleweathercss
#weather2 {
background: #6f9dbe;
background: -webkit-gradient(linear, left top, left bottom, from(#adc7db), to(#6f9dbe));
background: -moz-linear-gradient(top, #b2bcc8, #adc7db);
width: 185px;
padding: 5px 10px;
overflow: hidden;
border: 1px solid #6591b3;
View simpleweatherheader
<script src="" charset="utf-8"></script>
<script src="<?php echo esc_url( home_url( '/' ) ); ?>/jquery.simpleWeather.js" charset="utf-8"></script>
<script type="text/javascript">
$(function() {
location: 'london, united kingdom',
unit: 'c',
success: function(weather) {
html = '<h2>'', '+weather.region+'</h2>';
View custom-dash-logo
View dash-header-logo
View dash-widget-outline
add_action( 'wp_dashboard_setup', 'register_my_dashboard_widget' );
function register_my_dashboard_widget() {
'My Dashboard Widget',
View restrict-admin-access.php
order deny,allow
allow from
deny from all
View enable-core-auto-updates.php
# Enable all core updates, including minor and major:
define( 'WP_AUTO_UPDATE_CORE', true );
View restrict-wp-login-access.php
<Files wp-login.php>
order deny,allow
Deny from all
# allow access from my IP address
allow from
View auto-theme-updates.php
add_filter( 'auto_update_theme', '__return_true' );
View block-ip-address.php
order allow,deny
deny from 456.123.8.9
allow from all
You can’t perform that action at this time.