Skip to content

Instantly share code, notes, and snippets.

@MVoz
MVoz / windows_ts.md
Created November 13, 2018 05:25 — forked from joxz/windows_ts.md
Windows Troubleshooting

Windows WLAN Trace

netsh wlan set tracing mode=yes
netsh wlan set tracing mode=no

Once a trace has been completed, a report is compiled at C:\windows\tracing\wireless and viewable in the Windows performance monitor.

ETW network traces

@MVoz
MVoz / Speech recognition
Created October 4, 2018 17:09 — forked from johan-bjareholt/Speech recognition
Speech recognition on linux using Google Speech API
#!/bin/bash
# Record from mic
arecord -d 3 -f cd -t wav -r 16000 -c 1 -D pulse test.wav
# Get record volume
sox test.wav -n stats -s 16 2>&1 | grep 'Max level' | awk '{print $3}'
# Convert to flac for smaller footprint
flac -f test.wav
# Google speech recognition
LANG=en-us
@MVoz
MVoz / instructions and how-to
Created August 10, 2018 21:36 — forked from tariqmislam/instructions and how-to
Setting Up Hadoop 0.20.2 on Windows 7 With Cygwin
=================================================================
SETTING UP SSHD AS A SERVICE FOR RUNNING HADOOP DAEMONS ON WINDOWS 7
=================================================================
Steps:
1. Download 'setup.exe' from Cygwin website
2. Right-click on 'setup.exe'
3. Leave settings as they are, click through until you come to the plugin selection window
3.1 - Make sure that the installation directory is 'C:\cygwin'
@MVoz
MVoz / cuda_9.0_cudnn_7.0.sh
Created August 8, 2018 18:51 — forked from ashokpant/cuda_9.0_cudnn_7.0.sh
Install CUDA Toolkit v9.0 and cuDNN v7.0 on Ubuntu 16.04
#!/bin/bash
# install CUDA Toolkit v9.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb)
CUDA_REPO_PKG="cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64-deb"
wget https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get -y install cuda-9-0
@MVoz
MVoz / userDBs.txt
Created August 3, 2018 12:45 — forked from tkmru/userDBs.txt
PEiD's userDB.txt
UserDB.txt URLs (use your own flavor):
http://www.sysreveal.com/tag/userdb-txt/
http://handlers.sans.org/jclausing/userdb.txt
https://github.com/cuckoobox/cuckoo/blob/master/data/peutils/UserDB.TXT
http://research.pandasecurity.com/blogs/images/userdb.txt
@MVoz
MVoz / README
Created July 16, 2018 10:46 — forked from gdamjan/README
Customize ubuntu live image
# first, get the iso from http://releases.ubuntu.com/
# make working dir hierarchy in /tmp (you'll need enough ram for this)
sudo mkdir -p /tmp/custom/{_squash,_work,iso,newiso,newlive,project}
sudo mount -o loop ~/Downloads/ubuntu-15.10-desktop-amd64.iso /tmp/custom/iso
sudo mount -t squashfs /tmp/custom/iso/casper/filesystem.squashfs /tmp/custom/_squash
sudo mount -t overlay overlay -onoatime,lowerdir=/tmp/custom/_squash,upperdir=/tmp/custom/project,workdir=/tmp/custom/_work /tmp/custom/newlive
# customize the live fs with systemd-nspawn (a better chroot)
sudo systemd-nspawn --bind-ro=/etc/resolv.conf:/run/resolvconf/resolv.conf --setenv=RUNLEVEL=1 -D /tmp/custom/newlive
@MVoz
MVoz / ForceIPv4.md
Created July 12, 2018 16:31
Снижение приоритета (предпочитаемости) IPv6 - Force IPv4

echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4

apt-get -o Acquire::ForceIPv4=true update

Acquire::ForceIPv4 and Acquire::ForceIPv6

apt.conf to write Acquire::ForceIPv4 "true";

host security.debian.org

@MVoz
MVoz / msmpi on Linux.md
Last active May 13, 2018 16:43
msmpi on Linux
none /cygdrive cygdrive binary,nouser,noacl,posix=0 0 0
d:/home /home ntfs binary,nouser,noacl,posix=0 0 0
@MVoz
MVoz / FindLZMA.cmake.md
Last active May 12, 2018 16:19
FindLZMA.cmake not faund

если возникает такая ошибка

By not providing "FindLZMA.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "LZMA", but CMake did not find one.

Could not find a package configuration file provided by "LZMA" with any of the following names:

LZMAConfig.cmake