// jQuery
$(document).ready(function() {
// code
})
This file contains hidden or 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
'use strict'; | |
// 1. Create the file: {projectRoot}/test.js | |
// 2. Install dependencies: npm i glob why-is-node-running | |
// 3. Run the tests: node --expose-internals test.js | |
const whyIsNodeRunning = require('why-is-node-running'); | |
const glob = require('glob'); | |
const Mocha = require('mocha'); |
This file contains hidden or 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
// Just paste this into the console on http://www.jshint.com/docs/options/ | |
(function() { | |
var i, row, link, span, extraCol, checkbox, value; | |
var rows = document.querySelectorAll('table.options tr'); | |
var links = document.querySelectorAll('table.options a'); | |
// add checkboxes | |
for (var i = 0; i < rows.length; i++) { | |
row = rows[i]; |
This file contains hidden or 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
var fs = require('fs'); | |
var path = require('path'); | |
/** | |
* Finds the pathname of the parent module's package descriptor file. If the | |
* directory is undefined (the default case), then it is set to the directory | |
* name of the parent module's filename. If no package.json file is found, then | |
* the parent directories are recursively searched until the file is found or | |
* the root directory is reached. Returns the pathname if found or null if not. | |
*/ |
This file contains hidden or 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
git init --bare my-repo.git | |
git config core.sharedRepository group | |
chown -R user.group my-repo.git |
This file contains hidden or 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 UPDATE_TIME | |
FROM information_schema.tables | |
WHERE TABLE_SCHEMA = 'dbname' | |
AND TABLE_NAME = 'tabname' |
This file contains hidden or 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
'ListUsers.vbs | |
On Error Resume Next | |
Set objDomain = GetObject("WinNT://YourDomain") | |
WScript.echo "Domain : " + objDomain.name | |
For each objDomainItem in objDomain | |
if objDomainItem.Class = "User" then | |
WScript.echo objDomainItem.Name + " : Full Name: " + objDomainItem.FullName |
This file contains hidden or 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
' Get OU | |
' | |
strOU = "OU=Users,DC=domain,DC=com" | |
' Create connection to AD | |
' | |
Set objConnection = CreateObject("ADODB.Connection") | |
objConnection.Open "Provider=ADsDSOObject;" | |
' Create command |