- Formas de se obter as credenciais de usuários e se passar por eles;
- Segunda posição no rank de riscos de 2017 da OWASP (most critical security risks to web applications)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpsAgent } from 'agentkeepalive'; | |
| import Axios, { AxiosInstance } from 'axios'; | |
| import http from 'http'; | |
| const KEEP_ALIVE_TIMEOUT = 10_000; | |
| const keepAliveAgent = new HttpsAgent({ | |
| maxSockets: 100, | |
| keepAlive: true, | |
| maxFreeSockets: 10, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch -D $(git branch --no-merged | paste -s -) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| kotlinc $1 -include-runtime -d main.jar | |
| java -jar main.jar < input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set runtimepath+=~/.vim_runtime | |
| "" To install vim ultimate: | |
| "" git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime \ | |
| "" && sh ~/.vim_runtime/install_awesome_vimrc.sh | |
| "" | |
| source ~/.vim_runtime/vimrcs/basic.vim | |
| source ~/.vim_runtime/vimrcs/filetypes.vim | |
| source ~/.vim_runtime/vimrcs/plugins_config.vim | |
| source ~/.vim_runtime/vimrcs/extended.vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Convert all the MKV files inside the current working directory to MP4. | |
| # | |
| for i in $(echo "*.$1"); do | |
| # copy with all audio channels | |
| #ffmpeg -i "$i" -c copy -map 0 -copyts "${i%.*}.mp4" | |
| # copy with subtitles | |
| ffmpeg -i "$i" -codec copy -c:s mov_text "${i%.*}.mp4" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { asText } from '../src/number'; | |
| describe("number", () => { | |
| describe("when an unsupported number is provided", () => { | |
| it('should raise an assertion error', () => { | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # remove exited containers: | |
| docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
| # remove unused images: | |
| docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
| # remove unused volumes: | |
| find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://herbertograca.com/2017/07/03/the-software-architecture-chronicles/ |