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
none /cygdrive cygdrive binary,nouser,noacl,posix=0 0 0
d:/home /home ntfs binary,nouser,noacl,posix=0 0 0
@MVoz
MVoz / wsl.conf
Created May 7, 2018 19:54 — forked from cwilhit/wsl.conf
"#Let’s enable extra metadata options by default
[automount]
enabled = true
root = /windir/
options = "metadata,umask=22,fmask=11"
mountFsTab = false
#Let’s enable DNS – even though these are turned on by default, we’ll specify here just to be explicit.
[network]
generateHosts = true
@MVoz
MVoz / build-all-ruby.bat
Created April 30, 2018 07:12 — forked from koron/build-all-ruby.bat
WindowsのMSVCで32bitと64bitのrubyをコンパイル&インストールするバッチ。 使い方はRubyのソース内のトップディレクトリにコピーしてダブルクリックするだけ。 インストール場所はルートディレクトリを指定してバージョンとアーキテクチャ種別を加味したサブディレクトリになる。 VC用の環境設定ファイル(VS_ROOT)とインストールルート(INSTALL_ROOT)の位置は決め打ちになってるので要注意。
@ECHO OFF
GOTO :MAIN
:SETTINGS
SET VS_ROOT=C:\Program Files (x86)\Microsoft Visual Studio 10.0
SET INSTALL_ROOT=D:\Ruby
EXIT /B
:BASENAME
SET BASENAME=%~nx1
@MVoz
MVoz / mexopts.bat
Created April 27, 2018 22:56 — forked from dgleich/mexopts.bat
Mex opts file for mingw64 for C and C++
@echo off
rem MSSDK71OPTS.BAT
rem
rem Compile and link options used for building MEX-files
rem using the Microsoft Windows Software Development Kit.
rem
rem $Revision: 1.1.6.2 $ $Date: 2011/03/09 05:35:27 $
rem Copyright 2010 The MathWorks, Inc.
rem
rem StorageVersion: 1.0