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
$challenge = Read-Host "Are you sure you want to delete Teams Cache (Y/N)?" | |
$challenge = $challenge.ToUpper() | |
if ($challenge -eq "N"){ | |
Stop-Process -Id $PID | |
}elseif ($challenge -eq "Y"){ | |
Write-Host "Stopping Teams Process" -ForegroundColor Yellow | |
try{ | |
Get-Process -ProcessName Teams | Stop-Process -Force | |
Start-Sleep -Seconds 3 | |
Write-Host "Teams Process Sucessfully Stopped" -ForegroundColor Green |
This file has been truncated, but you can view the full 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
public Object generate(Object[] references) { | |
return new GeneratedIteratorForCodegenStage3(references); | |
} | |
/*wsc_codegenStageId*/ | |
final class GeneratedIteratorForCodegenStage3 extends org.apache.spark.sql.execution.BufferedRowIterator { | |
private Object[] references; | |
private scala.collection.Iterator[] inputs; | |
private scala.collection.Iterator inputadapter_input_0; | |
private org.apache.spark.sql.execution.joins.UnsafeHashedRelation bhj_relation_0; |
This file has been truncated, but you can view the full 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
public Object generate(Object[] references) { | |
return new GeneratedIteratorForCodegenStage3(references); | |
} | |
/*wsc_codegenStageId*/ | |
final class GeneratedIteratorForCodegenStage3 extends org.apache.spark.sql.execution.BufferedRowIterator { | |
private Object[] references; | |
private scala.collection.Iterator[] inputs; | |
private scala.collection.Iterator inputadapter_input_0; | |
private org.apache.spark.sql.execution.joins.UnsafeHashedRelation bhj_relation_0; |
This file has been truncated, but you can view the full 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
public Object generate(Object[] references) { | |
return new GeneratedIteratorForCodegenStage3(references); | |
} | |
/*wsc_codegenStageId*/ | |
final class GeneratedIteratorForCodegenStage3 extends org.apache.spark.sql.execution.BufferedRowIterator { | |
private Object[] references; | |
private scala.collection.Iterator[] inputs; | |
private scala.collection.Iterator inputadapter_input_0; | |
private org.apache.spark.sql.execution.joins.UnsafeHashedRelation bhj_relation_0; |
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
package com.execution | |
import java.lang.Thread.UncaughtExceptionHandler | |
import java.util.concurrent.TimeUnit | |
import com.typesafe.scalalogging.StrictLogging | |
import org.apache.spark.sql.SparkSession | |
object RunExecutionSample extends StrictLogging { |
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 | |
########################################## | |
# Generate Filter tool: | |
# https://www.wireshark.org/tools/string-cf.html | |
# | |
# GET Filter: | |
# tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420 | |
# POST Filter: | |
# tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354 && tcp[((tcp[12:1] & 0xf0) >> 2) + 4:1] = 0x20 |
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 httplib | |
import json | |
from string import Template | |
import urllib | |
import time | |
put_headers = {"Content-type": "application/json", | |
"Authorization": "Basic YWRtaW46YWRtaW4="} | |
get_headers = {"Authorization": "Basic YWRtaW46YWRtaW4="} |
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
#!/usr/bin/env python | |
import psutil, time | |
max_time_from_start = 86400 | |
parent_pid = 1 | |
process_name = 'java' | |
string_in_cmd_args = 'workspace' | |
for process in psutil.process_iter(): | |
try: |
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 httplib | |
import json | |
from string import Template | |
import time | |
request_template = '{"vhost": "/","name": "$name","pattern": "$pattern","apply-to": "all","definition": {"ha-mode": "nodes","ha-params": ["$node_name"],"ha-sync-mode": "automatic", "queue-master-locator": "min-masters"},"priority": 10}' | |
post_headers = {"Content-type": "application/json", |
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
object TestApp extends App { | |
val temp = Temp("a", "b", List(1, 2, 3, 4)) | |
val psetUtils: PsetUtils = new PsetUtils(classOf[Temp]) | |
println("line 1: " + psetUtils.toMap(temp, List("a", "c"))) | |
println("line 2: " + psetUtils.toMap(temp, List("a"))) | |
println("line 3: " + psetUtils.toMap(temp, List("b"))) | |
println("line 4: " + psetUtils.toMap(temp, List("c"))) | |
println("line 5: " + psetUtils.toMap(temp, List("c", "a", "b"))) | |
} |