Skip to content

Commit

Permalink
some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jivoi committed Nov 3, 2017
1 parent c938334 commit 7f150e1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
22 changes: 22 additions & 0 deletions kali/mssql-tools-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh
mkdir mssql-tools && cd mssql-tools
wget https://raw.githubusercontent.com/Microsoft/mssql-docker/master/linux/mssql-tools/Dockerfile
docker build -t mssql-tools .
docker run --rm --name mssql-tools -it -v /root:/root mssql-tools /bin/bash

# /opt/mssql-tools/bin/sqlcmd -U admin -P 'P@ssw0rd' -S IP
# Print databases;
# SELECT name from sys.databases
# GO

# Print tables from database
# SELECT * FROM database.INFORMATION_SCHEMA.TABLES;
# GO

# Use DB
# USE database
# GO

# Print table
# SELECT * FROM table;
# GO
15 changes: 15 additions & 0 deletions kali/nodejs_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# How to install Node.js in Kali Linux

src=$(mktemp -d) && cd $src
apt-get install -y python g++ make checkinstall fakeroot
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd node-v*
./configure
fakeroot checkinstall -y --install=no --pkgversion $(echo $(pwd) | sed -n -re's/.+node-v(.+)$/\1/p') make -j$(($(nproc)+1)) install
# dpkg -i
# node -v

# https://github.com/npm/npm
# curl -L https://www.npmjs.com/install.sh | sh
# npm install -g sql-cli

0 comments on commit 7f150e1

Please sign in to comment.