winrs -r:<REMOTEHOST> cmd.exe
Spawns a cmd.exe shell per remote connection which is nice, because you don't need to do a full RDP Connection
REM Source: https://stackoverflow.com/a/4507364 | |
set wsc = CreateObject("WScript.Shell") | |
Do | |
WScript.Sleep (60*1000) | |
wsc.SendKeys ("{SCROLLLOCK 2}") | |
Loop |
USE [DB_NAME] | |
GO | |
/****** Object: StoredProcedure [dbo].[W3_APP_GEN_Doctrine] Script Date: 03.09.2019 09:18:59 | |
FOUND HERE: https://stackoverflow.com/a/35901836 | |
Updates I did: | |
- Save some lines, because SQL Server Terminates at some number of lines | |
- Added timestamp type |
/<sheetProtection algorithmName="SHA-512" hashValue=".*" saltValue=".*" spinCount="\d+" sheet="\d+" objects="\d+" scenarios="\d+"\/>/ |
// SOURCE https://stackoverflow.com/questions/16616722/sending-all-javascript-console-output-into-a-dom-element | |
var baseLogFunction = console.log; | |
console.log = function(){ | |
baseLogFunction.apply(console, arguments); | |
var args = Array.prototype.slice.call(arguments); | |
for(var i=0;i<args.length;i++){ | |
var node = createLogNode(args[i]); |
<?php | |
$it = new RecursiveIteratorIterator( new RecursiveDirectoryIterator('.')); | |
$regx = new RegexIterator($it, '/^.*\.php$/i', // only matched text will be returned | |
RecursiveRegexIterator::GET_MATCH); | |
foreach ($regx as $file) { | |
$file = $file[0]; | |
exec('php -l ' . $file); //check the syntax here | |
} |
/** | |
* @file wordclock.ino | |
* @author telegnom ([email protected]) | |
* @date 2019-02-23 | |
* @version 1.1 | |
* | |
* @brief firmware for the c3e wordclock | |
* | |
* requires the time.h and timezone.h libraries | |
* https://github.com/PaulStoffregen/Time/ |