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
@echo off | |
forfiles /p "\\server\Redirect" /m "Folder Name" /s /c "cmd /c del @file /Q" |
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
$(document).ready(function(){ | |
$('textarea').ckeditor({ | |
contentsCss: '/css/ckeditor_custom.css', //external CSS to set body{margin:0;} | |
uiColor: '#FFFFFF', | |
scayt_autoStartup: true, //spellcheck auto-enabled | |
autoGrow_onStartup: true, | |
enterMode: CKEDITOR.ENTER_BR, //I hate this but our users request it | |
removePlugins: 'elementspath, resize', | |
extraPlugins: 'autogrow,confighelper', //confighelper allows HTML5-like placeholder text | |
extraAllowedContent: 'img[alt,dir,id,lang,longdesc,!src,title]{*}(*)', //needed to allow image pasting without an image button |
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 | |
// import (and instantiate) the required 3rd party autoload class for all required classes | |
require_once('./path_to/PHPExcel.php'); | |
// Call a member method that automatically guesses and assigns cell properties (Date, Number, Text, etc.) | |
PHPExcel_Cell::setValueBinder( new PHPExcel_Cell_AdvancedValueBinder() ); | |
class ExcelHelper { |
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
Func PostMessage($hWnd, $msg, $wParm, $lParm) | |
Return DllCall("user32.dll", "int", "PostMessage", _ | |
"hwnd", $hWnd, _ | |
"int", $msg, _ | |
"int", $wParm, _ | |
"int", $lParm) | |
EndFunc ;==>PostMessage | |
$programManager = WinGetHandle("Program Manager"); | |
PostMessage($programManager, 0x111, 28755, 0); Show/Hide desktop icons (0x0111 is defined as $WM_COMMAND in GUIConstants.au3) |
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 | |
$username = 'your_wp_username'; | |
$password = 'your_wp_password'; | |
$blogURI = 'http://www.example.com/wordpress/'; | |
$ignored_categories = array('Blogroll'); //store categories to ignore in an array for easier blocking | |
$blogAPI = $blogURI . 'xmlrpc.php'; | |
$data = array(); | |
$publish = false; |
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
@echo off | |
cls | |
rundll32.exe powrprof.dll,SetSuspendState Sleep | |
exit |
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
REM runs a "One-Time Backup" to specific target drive from batch file | |
REM ...create your own backup schedule instead of Microsoft's "Windows Server Backup" forced schedules | |
WBADMIN START SYSTEMSTATEBACKUP -backupTarget:e: -quiet |
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 | |
/** | |
* Convert RGB colors array into HSL array | |
* | |
* @param array $ RGB colors set | |
* @return array HSL set | |
*/ | |
function rgb_to_hsl($color){ | |
list($r, $g, $b) = is_array($color) ? $color : hex_to_rgb($color); |
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 | |
/* | |
Plugin Name: Theme and Plugin Auto-Update | |
Description: Forces automatic updates of installed plugins and themes. Be sure to have backups running! | |
Version: 1.0 | |
Author: Brendon Kozlowski | |
Author URI: http://www.bytekick.com | |
License: MIT | |
*/ |
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 | |
header('Content-Type: text/html; charset=utf-8'); | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Test Image Preview Pre-Upload</title> | |
<style type="text/css"> | |
form div.upload label { font-weight:bold; display:block; margin-bottom:0.25em; } | |
img.file-preview { border:3px solid #000; } |
OlderNewer