-
Pentesting tools and useful commands
GTFOBins — list of Unix binaries that can be used to bypass local security restrictions in misconfigured systems. Kali OS Select Network Repositories Default: echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" | sudo tee /etc/apt/sources.list More stable: echo "deb http://http.kali.org/kali kali-last-snapshot main contrib non-free" | sudo tee /etc/apt/sources.list Install all tools: sudo apt install -y… -
Generating free ssl certificate for website on Windows
Free certificate can be generated here: https://zerossl.com/ If you need to convert CRT to PFX, download openssl here: https://indy.fulgan.com/SSL/ Something like "openssl-1.0.2q-x64_86-win64.zip" will work. If you have separate crt for CA, join it with main certificate in text editor and name new file bundle.crt Copy all certificates to openssl folder. Open folder in terminal and… -
Configure clean MacBook
Programs to install: Visual Studio Code Figma Brew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" Iterm brew install --cask iterm2 Zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" Spectacle Notion -
Unity Collaborate
In Unity you can create a team and work together at one project. Just go to Unity Organizations Page and create new team. Then you can create new project or open existing one. Go to Window > General > Services. At the top right corner click "Сollab" and make your first commit. Now you can… -
Copy file to local folder from docker container
Check containerId, by runing this command: sudo docker ps In order to copy a file from a container to the local computer, use following command: docker cp :/file_path_inside_container /local_path You can check full path to file inside the container with this command: readlink -f file.ext -
Git configuration and first push
Navigate to the local project directory and create a git repository: git init To add all files to next commit, run following: git add . To check git status, use this: git status Run command to make your first commit: git commit -m "Your comment" Setup link to your github repository and push changes: git… -
Useful angular commands
Create a new angular project ng new Update application and it's dependencies ng update For development, start the app at localhost:4200 ng serve --open Generate new component ng generate component [component name] Install in-memory Web API npm install angular-in-memory-web-api --save Publish Angular to Azure -
MS SQL insert in the middle and reset auto increment
In case you need to insert something in the middle and need to set autoincremented column to some particular values, you can do the following: Set Identity_Insert [TableName] On -- Turn off identity insert for your Table ----------------------------------- Insert TableName (pkCol, [OtherColumns]) Values(pkValue, [OtherValues]) ----------------------------------- Set Identity_Insert [TableName] Off -- Turn off identity insert for… -
SQL query for today’s date minus year, month, day or minute
To add or subtract some date/time you can use MS SQL function: DATEADD(datepart, number, date) Let's say you need to add five months to current date, use this: SELECT * FROM YourTable WHERE YourDate < DATEADD(month, 5, GETDATE()) I used function GETDATE() for getting current DateTime. If you need to subtract some time, just add… -
Changing the folder where screenshots placed on Mac
By default all your screenshots are saving on desktop, but you can change this location to any other folder on your Mac. First of all, start the terminal. I personally prefer iTerm, but you can use default one that is installed on every Mac. Choose the folder where you want to place screenshots and enter…
Loading posts...