This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
/* Smooth Scroll Anchor Links */ | |
$(document).on('click', 'a[href*="#"]', function (e) { | |
e.preventDefault(); | |
var target = this.hash; | |
var $target = $(target); | |
$('html, body').stop().animate({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function ($) { | |
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); | |
/* Smooth Scroll Anchor Links */ | |
$(document).on('click', 'a[href*="#"]', function (e) { | |
e.preventDefault(); | |
var target = this.hash; | |
var $target = $(target); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Copy the Content Below this line - DO NOT INCLUDE THE <?php ABOVE */ | |
function cf_login_obscure() { | |
return "Something didn't work out right!"; | |
} | |
add_filter( 'login_errors', 'cf_login_obscure' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Copy the Content Below this line - DO NOT INCLUDE THE <?php ABOVE */ | |
/** | |
* Add Google Analytics tracking code | |
*/ | |
function cf_google_analytics_tracking() { ?> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# WARNING: Only run this script once per server. | |
#### | |
## Creating SFTP Users - Initial Setup for New Server | |
#### | |
#### | |
## Gist: https://gist.github.com/NichlasB/e938cddb7876fd74af09dc00ca537a2c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# WARNING: This script must be run manually to create a new SFTP user. Remember to change the new user's password. | |
# NOTICE: Make sure first instance of PasswordAuthentication is set to "no" $ sudo nano /etc/ssh/sshd_config | |
# REQUIREMENT: Make sure bindfs is installed $ sudo apt-get -y install bindfs | |
#### | |
## Gist: https://gist.github.com/NichlasB/9b9c79ff8e31f48ad19f652b71baf8f6 | |
## Resource: https://easyengine.io/docs/chroot-sftp-easyengine/ | |
## Resource: https://www.howtoforge.com/restricting-users-to-sftp-plus-setting-up-chrooted-ssh-sftp-debian-squeeze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Copy the Content Below this line - DO NOT INCLUDE THE <?php ABOVE */ | |
// Add snippet to functions.php file | |
function cf_new_admin_account() { | |
$user = 'admin'; | |
$pass = 'password'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** BROWSER SCROLLBAR **/ | |
/* Scrollbar Styling */ | |
::-webkit-scrollbar { | |
width: 11px; | |
} | |
/* The new scrollbar will have a flat appearance with the set background color */ | |
::-webkit-scrollbar-track { | |
background-color: #FFD600; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* password-reset-link-duration.php | |
*/ | |
add_filter( 'password_reset_expiration', 'cf_password_reset_link_expiration', 99, 1 ); | |
function cf_password_reset_link_expiration($seconds){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
/** | |
* exclude-blog-categories.php | |
*/ | |
function cf_exclude_chosen_categories( $query ) { |
OlderNewer