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
<?php | |
/** | |
* run in script directory: | |
* php -S 127.0.0.1:1337 | |
*/ | |
?> | |
<?php header('X-XSS-Protection: 0'); ?> | |
<!DOCTYPE html> | |
<html> | |
<head> |
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
# Run this on a DC | |
function Get-UserLogonInfo { | |
param( | |
[Parameter(Mandatory)] | |
[string]$Username, | |
[Parameter()] | |
[int]$DaysAgo | |
) | |
# By default we search within the past 7 days |
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
# MUST BE AN ARRAY OF STRINGS | |
# EVEN IF YOU HAVE A SINGLE PATH TO ADD, SURROUND IT IN '@( )' IN ORDER TO MAKE IT AN ARRAY | |
$files = @("C:\testing\SecondFileToAdd.txt") | |
# MUST BE AN ARRAY OF STRINGS | |
$folders = @("C:\testing\toAdd", "C:\testing\anotherToAdd") | |
# PATH TO ZIP FILE | |
$myZipPath = "C:\testing\zip\Zip.zip" |
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
<template> | |
<div> | |
<v-layout row wrap justify-center mb-5> | |
<v-flex xs10 sm10 md10 lg10> | |
<v-card ref='map_container' id='map-container'> | |
<v-card-title class='justify-center'> | |
<h3>Click Marker For More Info</h3> | |
</v-card-title> | |
<div id='map-card' ref='map_card' :style="{ height: mapHeight + 'px' }"></div> | |
</v-card> |
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
function Get-Connected { | |
try { | |
if(-not (Get-Module VMware.PowerCLI)){ | |
Write-Host "You need the PowerCLI module!" -f yellow | |
Write-Host "We will install it for you, please click 'Yes To All' if prompted!" -f green | |
Install-Module VMware.PowerCLI -Cofirm:$false -Force | |
} | |
if(-not (Get-Module CredentialManager)){ | |
Write-Host "You need the Credential Manager module!" -f yellow |
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
<template> | |
<v-dialog v-model="show" hide-overlay fullscreen transition="dialog-bottom-transition"> | |
<v-card> | |
<v-card-actions pa-0> | |
<v-spacer/> | |
<v-btn dark small color="red" @click="show = false">Close</v-btn> | |
<v-spacer/> | |
</v-card-actions> | |
<v-container pt-0> | |
<v-layout> |
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
const CopyPlugin = require('copy-webpack-plugin') | |
module.exports = { | |
configureWebpack: { | |
entry: ['babel-polyfill', './src/main.js'], | |
plugins: [ | |
new CopyPlugin([{ | |
from: 'CNAME', | |
to: 'CNAME', | |
toType: 'file', |
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
import Vue from 'vue'; | |
import * as mdbVue from 'mdbvue'; | |
import 'bootstrap-css-only/css/bootstrap.min.css'; | |
import 'mdbvue/build/css/mdb.css'; | |
Object.keys(mdbVue).forEach(name => { | |
Vue.component(name, mdbVue[name]); | |
}); | |
export default Vue; |
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
[...Array(8 + 1).keys()].slice(1) | |
// [1,2,3,4,5,6,7,8] |
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
const express = require('express'); | |
const app = express(); | |
const chalk = require('chalk'); | |
// eslint-disable-next-line no-console | |
const log = console.log; | |
const port = 8889; | |