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
tag=firewall action=deny | |
| stats count values(dst) by src | |
| eventstats avg(count) as avg_count | |
| eval standard_deviation=count/avg_count | |
| fields - count, avg_count | |
| search standard_deviation > 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
stats count by user fqdn | |
| eventstats sum(count) as count_by_user by user | |
| eval percent=count/count_by_user | |
| table user, fqdn, percent, count, count_by_user | |
| sort - percent | |
| search count_by_user > 100 |
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
import argparse | |
import sys | |
class Command(object): | |
def __init__(self): | |
self._argument_parser = argparse.ArgumentParser() | |
def main(self, args): | |
self._main(self._argument_parser.parse_args(args)) |
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
defaults write com.google.Chrome AppleLanguages '(en-US)' |
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
| search * | |
| lookup user_agents http_user_agent as user_agent | |
| replace "unknown" with "" in ua_device, ua_os_major, ua_os_minor | |
| replace "Windows*" with "Windows" in ua_os_family | |
| eval user_agent=ua_os_family + " - " + ua_family | |
| regex user_agent!="(unknown|PhantomJS)" | |
| eventstats dc(address) as total | |
| stats dc(address) as count by user_agent, total | |
| eval percentage=(count * 100/total) | |
| table percentage user_agent |
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
// Generated by CoffeeScript 1.4.0 | |
(function() { | |
var NamedParameters, exports; | |
NamedParameters = (function() { | |
var _assert, _clone; | |
function NamedParameters(m) { | |
this.map = _clone(m); | |
this.coerce_all = 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
import 'reflect-metadata'; | |
let _contractDictMetadataKey = 'contractDict'; | |
let ApplyContracts = () => { | |
return (target, key) => { | |
let originalMethod = target[key]; | |
let contractDict = Reflect.getOwnMetadata(_contractDictMetadataKey, target, key); |
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
/* | |
* Webpack config | |
*/ | |
/* Use file-loader for images. */ | |
{ | |
test: /\.(gif|ico|jpg|png|svg)$/, | |
loader: 'file' | |
} |
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
const cleanUp = async () => { | |
const response = await fetch('https://prerender.io/api/cached-pages?page=0&pageSize=100'); | |
const itemList = await response.json(); | |
const csrfToken = document.cookie.replace(/^.*XSRF-TOKEN=/, '').replace(/;.*$/, ''); | |
const promiseList = itemList.map(item => fetch(`https://prerender.io/api/remove-cached-url?url=${encodeURIComponent(item.url)}`, { | |
method: 'DELETE', | |
headers: { |
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
@Injectable() | |
export class ComponentInjector { | |
constructor( | |
private _injector: Injector, | |
private _applicationRef: ApplicationRef, | |
private _componentFactoryResolver: ComponentFactoryResolver) { | |
} |
OlderNewer