Skip to content

Instantly share code, notes, and snippets.

View utkuturunc's full-sized avatar
🎯
Focusing

Utku Turunç utkuturunc

🎯
Focusing
View GitHub Profile
@utkuturunc
utkuturunc / script.sh
Last active November 5, 2019 16:02
Ugly script that lists all files imported from inside of the working directory
#!/usr/bin/env bash
folder=$(pwd)
files=$(find . -name "*.js" | grep -v node_modules | grep -v dist/ | grep -v build/)
for path in $files
do
levels=$(echo $path | sed 's;[^/];;g' | wc -c)
levels=$(($levels-2))
@utkuturunc
utkuturunc / readme.md
Created September 18, 2019 22:11
Tunnel for mssql
ssh -nNT -L local_port:db_host:db_port user@tunnel_ip -N
mssql-cli --username username@host --database db --password 'pass' --server 127.0.0.1,local_port