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 | |
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; } |
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
SELECT AUTO_INCREMENT | |
FROM information_schema.tables | |
WHERE table_name = 'table_name' | |
AND table_schema = DATABASE( ) ; | |
--- or --- | |
$result = mysql_query("SHOW TABLE STATUS LIKE 'table_name'"); |
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
Show hidden characters
// Settings in here override those in "Default/Preferences.sublime-settings", | |
// and are overridden in turn by file type specific settings. | |
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"caret_style": "phase", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme", | |
"font_face": "Courier New", | |
"font_size": 10, |
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 { |
OlderNewer