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
sudo apt-get install git autotools libfuse-dev libssl-dev libxml2-dev libcurl4-gnutls-dev | |
git clone https://github.com/s3fs-fuse/s3fs-fuse | |
cd s3fs-fuse | |
./autogen.sh | |
./configure | |
make | |
sudo make install | |
cd .. | |
sudo mkdir /etc/s3 | |
me=`whoami` |
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
Set WshShell = CreateObject("WScript.Shell") | |
regKey = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | |
DigitalProductId = WshShell.RegRead(regKey & "DigitalProductId") | |
Win8ProductName = "Windows Product Name: " & WshShell.RegRead(regKey & "ProductName") & vbNewLine | |
Win8ProductID = "Windows Product ID: " & WshShell.RegRead(regKey & "ProductID") & vbNewLine | |
Win8ProductKey = ConvertToKey(DigitalProductId) | |
strProductKey ="Windows 8 Key: " & Win8ProductKey | |
Win8ProductID = Win8ProductName & Win8ProductID & strProductKey |
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 | |
NVIDIA_DRIVER_VERSION=352.63 | |
NVIDIA_CUDA_VERSION=7.5 | |
NVIDIA_CUDA_FULL_VERSION=7.5.18 | |
sudo yum update -y | |
sudo yum groupinstall -y "Development tools" | |
sudo yum install kernel-devel-`uname -r` |
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 | |
postfix="0" | |
username=ec2-user | |
if [ $# -lt 2 ]; then | |
echo "Usage: $0 <IP> <key file> [<postfix> [<username>]]" | |
exit 1 | |
else | |
if [[ ! $1 =~ ^([0-9]{1,3}\.){3}[0-9]{1,3}$ ]]; then | |
echo "IP \"$1\" has incorrect format" |
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 | |
for i in *; do | |
cd $i; | |
for f in *; do | |
echo $i/$f >> '../files.txt'; | |
done; | |
cd ..; | |
done |