Skip to content

Instantly share code, notes, and snippets.

View avtomaton's full-sized avatar

Viktor Pogrebniak avtomaton

  • Independent
  • Toronto
View GitHub Profile
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`
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
@avtomaton
avtomaton / ec2-cuda-setup.bash
Last active June 17, 2020 21:10
amazon AMI CUDA setup
#!/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`
@avtomaton
avtomaton / ssh-amazon-scripts.bash
Created January 18, 2016 18:12
SSH access scripts generator
#!/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"
@avtomaton
avtomaton / walker.bash
Created January 21, 2016 16:14
simplest 1-velel bash directory walker
#!/bin/bash
for i in *; do
cd $i;
for f in *; do
echo $i/$f >> '../files.txt';
done;
cd ..;
done