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 | |
# 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 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 | |
# Install dev tools | |
echo "Installing linux tools..." | |
sudo -S apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \ | |
apt-transport-https \ | |
ca-certificates \ | |
build-essential \ | |
software-properties-common \ | |
sysfsutils rename unzip\ |
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 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 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
Disable-NetAdapterBinding -InterfaceAlias "Ethernet" -ComponentID "ms_tcpip6" | |
#Use Enable-NetAdapterBinding again to re enable |
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
#List existing Hosts | |
ls WSMan:\localhost\Client\TrustedHosts | |
#Add new Host | |
winrm set winrm/config/client '@{TrustedHosts="HostName"}' |
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
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 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-WmiObject Win32_Product | Sort-Object Name | Select Name,version,Vendor |export-csv myprogramlist.csv |
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
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 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
Follow these steps | |
============ | |
1) Create a folder on local disk Eg: C:\Users\keerthip\Documents\Dropbox | |
2) Create a Drive Letter Mapping eg:(H:) to the folder path in windows with following command | |
subst H: C:\Users\keerthip\Documents\Dropbox | |
3) Install Dropbox desktop software in advanced Mode. | |
Select the new local drive H: and sync either selective folders or all folder to local drive ( which is original folder path) | |
4) Wait till content is fully synced from web account | |
5) Pause Syncing and Exit Dropbox | |
6) Delete local folder drive mapping with following command |
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
<# 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 |