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
1) Go to path [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpnva] | |
2) There might be some junk characters in the Display name before the word "Cisco....". Delete them | |
3) the display name should read like "DisplayName"="Cisco AnyConnect VPN Virtual Miniport Adapter for Windows x64" |
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
Disable-NetAdapterBinding -InterfaceAlias "Ethernet" -ComponentID "ms_tcpip6" | |
#Use Enable-NetAdapterBinding again to re enable |
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
function TCPSocketListener ([string]$IPAddress , [int]$Port ,[int] $MinstoListen) | |
{ | |
Write-Host ("Starting TCP Socket Listener on $IPAddress..") | |
try { | |
$listener = new-object System.Net.Sockets.TcpListener([System.Net.IPAddress]::Parse($IPAddress), $Port) | |
$listener.start() |
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
<# Take General Parameters from User #> | |
param([string] $ServerName=(Read-Host -prompt "Please Enter Server Name"),[string] $UserName=(Read-Host -prompt "Please Enter Your User Name"),[string] $Password=(Read-Host -prompt "Please Enter Your Password")) | |
function Job(){ | |
cls | |
#Local Firewall | |
$fw = New-Object -ComObject hnetcfg.fwpolicy2 | |
#Delete Existing Rules |
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
#List existing Hosts | |
ls WSMan:\localhost\Client\TrustedHosts | |
#Add new Host | |
winrm set winrm/config/client '@{TrustedHosts="HostName"}' |
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
#!/bin/bash | |
# install CUDA Toolkit v8.0 | |
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network)) | |
CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb" | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG} | |
sudo dpkg -i ${CUDA_REPO_PKG} | |
sudo apt-get update | |
sudo apt-get -y install cuda |
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
# run on win computer / r version | |
setwd("C:/Users/pavan/RLibrary/") # or any other existing temp directory | |
packages <- installed.packages()[,"Package"] | |
save(packages, file="Rpackages") | |
# run on ubuntu computer / r version | |
setwd("/RLibrary") # or any other existing temp directory | |
load("Rpackages") | |
for (p in setdiff(packages, installed.packages()[,"Package"])) |
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
1)Generate SSL Certificate with one of these options | |
-CA Authority(e.g:Versign) | |
-Active Directory Certificate Services | |
-Self Signed(Not to be used in Production) | |
Code : cd 'C:\Program Files (x86)\Windows Kits\8.0\bin\x64\' | |
makecert -r -pe -n "CN=3dmxvm-solar.cloudapp.net " -b 01/01/2012 -e 01/01/2022 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 | |
2) Export Certificate in .pfx format to store into Trusted Root Store of Client Machine | |
3) Enable WinRm Trusted Source IP addresses |
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
# Save file as ~/.ssh/config | |
# Add permissions chmod 600 ~/.ssh/config | |
# Optional permissions chmod $USER ~/.ssh/config | |
##default for all hosts## | |
Host * | |
ForwardAgent No | |
ForwardX11 no | |
Compression yes |
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
"""gunicorn WSGI server configuration.""" | |
from multiprocessing import cpu_count | |
from os import environ | |
def max_workers(): | |
return cpu_count() * 2 + 1 | |
# Config Properties | |
bind = '0.0.0.0:' + environ.get('PORT', '8080') | |
max_requests = 1000 |
OlderNewer