Log in to your Managed Hosting Server via SSH
Add these two lines to .bashrc:
#!/usr/bin/osascript | |
-- calendar from which to ignore events | |
set TASKS_CALENDAR to "Toodledo iCal" | |
-- the current timestamp | |
set now to (current date) | |
-- midnight this morning | |
set today to now - (time of now) | |
-- midnight tomorrow morning | |
set tomorrow to (today) + (24 * 60 * 60) | |
-- list of output lines |
<?php | |
/** | |
* post-process.php | |
* make sure to include post-process.php in your functions.php. Use this in functions.php: | |
* | |
* get_template_part('post-process'); | |
* | |
*/ | |
function do_insert() { | |
if( 'POST' == $_SERVER['REQUEST_METHOD'] |
if (grandtotalrecord.quantity() == 1 && grandtotalrecord.unit() == "Pauschal") | |
""; | |
else | |
grandtotalrecord.quantity(); |
<?php | |
function themename_customize_register($wp_customize){ | |
$wp_customize->add_section('themename_color_scheme', array( | |
'title' => __('Color Scheme', 'themename'), | |
'priority' => 120, | |
)); | |
// ============================= |
@import "compass/css3/shared"; | |
// NOTE: | |
// All mixins for the 2009 spec have been written assuming they'll be fed property values that | |
// correspond to the standard spec. Some mixins can be fed values from the 2009 spec, but don't | |
// rely on it. The `legacy-order` mixin will increment the value fed to it because the 2009 | |
// `box-ordinal-group` property begins indexing at 1, while the modern `order` property begins | |
// indexing at 0. | |
// if `true`, the 2009 properties will be emitted as part of the normal mixin call |
// ========================================================= | |
// Gulp Task: browsersync | |
// NOTE: Using gulp v4 | |
// Description: Sync sass, typescript, html, and browser | |
// using external config or add modify src | |
// npm install --save-dev browser-sync gulp-typescript gulpjs/gulp.git#4.0 gulp-load-plugins | |
// Options: node-sass gulp-sass || gulp-ruby-sass | |
// ========================================================= | |
var config = require('../config.js'); | |
var browserSync = require('browser-sync').create(); |
""" | |
Url: https://gist.github.com/wassname/1393c4a57cfcbf03641dbc31886123b8 | |
""" | |
import unicodedata | |
import string | |
valid_filename_chars = "-_.() %s%s" % (string.ascii_letters, string.digits) | |
char_limit = 255 | |
def clean_filename(filename, whitelist=valid_filename_chars, replace=' '): |
<?php | |
/** | |
* How to Allow Non-Admin Users to Access WordPress Customizer. Published on the qSandbox - https://qsandbox.com/675 | |
* <a href="https://qsandbox.com/?utm_source=qs_blog_code&utm_medium=p675" title="Free Test/Staging WordPress site by qSandbox.com">Free Test/Staging WordPress site by qSandbox.com</a> | |
* @param array $all_caps | |
* @param array $cap | |
* @param array $args | |
* @return array array | |
* @see https://codex.wordpress.org/Plugin_API/Filter_Reference/user_has_cap |