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 documents with specific name from collection ***/ | |
db.getCollection('TableName1').find({Name:"Type1"}) | |
/*** Get all documents from specific collection ***/ | |
db.getCollection('TableName1').find({}) | |
/*** Update one documemt field via upsert ***/ | |
db.TableName1.update({Name:{$eq:"Type1"}}, | |
{$set:{Id:"UPDATED1-1"}}, | |
{upsert:true}) |
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
curl -i https://localhost:443/loginconfig -1 -H "Cache-Control:no-cache" -H "Authorization:Basic cGFpcjAyOmRpY2ZlY2plZ2RqaGdmZWhqZmppYWNlZWFnYWNoYmFoYWNhaWo=" -H "Accept:*/*" -X GET --connect-timeout 3 -k |
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 https = require('https'); | |
var fs = require('fs'); | |
var auth = require('basic-auth'); | |
var cookie = require('cookie'); | |
var signed = require('cookie-signature'); | |
const csvconv = require('csvtojson'); | |
const { parse } = require('json2csv'); | |
const express = require('express'); | |
const routing = express(); |
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 https = require('https'); | |
var fs = require('fs'); | |
var auth = require('basic-auth'); | |
var cookie = require('cookie'); | |
var signed = require('cookie-signature'); | |
const express = require('express'); | |
const routing = express(); | |
const error = '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Error</title><head><body><pre>Cannot load page: [GET]</pre></body></html>'; | |
const initialpage = '<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Data Loaded</title><head><body><hr/><i>User Data Loaded</i><hr/></body></html>'; |
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
$execobf = [ScriptBlock]{ | |
[string[]]$config = @("$(Resolve-Path .)","A.Module.Name.dll"); | |
[int]$obflvl = $(Read-Host "Enter an obfuscation option [0-4]"); #0 - Level0 obf. debuggable, 1 - Level1 obf. debuggable-noil, 2 - Level2 obf. not debuggable, 3 - Level3 obf. not mergable, 4 - Level4 obf. not usable | |
$ops = @' | |
PHByb2plY3Qgb3V0cHV0RGlyPSJ7T1VURElSfSIgYmFzZURpcj0ie0JBU0VESVJ9IiBkZWJ1Zz0idHJ1ZSIgeG1sbnM9Imh0dHA6Ly9jb25mdXNlci5jb2RlcGxleC5jb20iPg0KICA8bW9kdWxlIHBhdGg9IntNT0RVTEV9Ij4NCiAgPHJ1bGUgcGF0dGVybj0idHJ1ZSIgaW5oZXJpdD0iZmFsc2UiIC8+DQogIDwvbW9kdWxl | |
Pg0KPC9wcm9qZWN0Pg==; | |
PHByb2plY3Qgb3V0cHV0RGlyPSJ7T1VURElSfSIgYmFzZURpcj0ie0JBU0VESVJ9IiBkZWJ1Zz0idHJ1ZSIgeG1sbnM9Imh0dHA6Ly9jb25mdXNlci5jb2RlcGxleC5jb20iPg0KICA8bW9kdWxlIHBhdGg9IntNT0RVTEV9Ij4NCiAgICA8cnVsZSBwYXR0ZXJuPSJ0cnVlIiBpbmhlcml0PSJmYWxzZSI+DQogICAgICA8cHJv | |
dGVjdGlvbiBpZD0iYW50aSBpbGRhc20iLz4NCiAgICA8L3J1bGU+DQogIDwvbW9kdWxlPg0KPC9wcm9qZWN0Pg==; | |
PHByb2plY3Qgb3V0cHV0RGlyPSJ7T1VURElSfSIgYmFzZURpcj0ie0JBU0VESVJ9IiB4bWxucz0iaHR0cDovL2NvbmZ1c2VyLmNvZGVwbG |
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
angular.module("MainContent",[]).controller("ProfileController", | |
function($scope,$http){ | |
$scope.searchData = [{ | |
"name":"Customer 1", | |
"description":"Default description" | |
}, | |
{ | |
"name":"Customer 2", | |
"description":"Description 2" |
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
<# | |
# | |
# | |
# The scripts below (ranked fastest to slowest) are used to create a dummy file of | |
# varying sizes and of different contents. Null/Numeric/Binary data. | |
# | |
# | |
#> | |
# 1 - Using FileStreams |
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
#!/bin/bash | |
# Samples for Node set 1.. | |
# ^(app\.js)|^(app\.[a-zA-Z0-9]+\.js) | |
ls | grep -E "app.[a-zA-Z0-9]+|app[0-9]{1,3}.js" | |
# ^(node_)[a-z0-9]+(.tmp) | |
ls | grep -E "node_[a-zA-Z0-9]+.tmp" | |
# %APPDATA%\npm-cache\_logs |
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
rm "$HOME\Documents\outps.txt" | |
echo "Home Dir is ---> $HOME" >> "$HOME\Documents\outps.txt" | |
echo "Default Path is --> $PWD" >> "$HOME\Documents\outps.txt" | |
echo "Version is --> $BASH_VERSION (not running in ps)" >> "$HOME\Documents\outps.txt" | |
echo "Term type is --> $TERM (not running in ps)" >> "$HOME\Documents\outps.txt" | |
cat "$HOME\Documents\outps.txt" | |
powershell.exe cat "$HOME\Documents\outps.txt" | |
########################################################################################### | |
function ret1st() { | |
return "Last command was: "+$$; |
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
f=v=>(d=v.map(c=>eval([...c].map(p=>p|0).join`+`)),d[0]==d[1]) |