This file contains 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 rebase -i HEAD~2 | |
-> pick to edit :wq save it | |
git commit --amend --author="Thiago Fonseca Meneses <thiago@email>" | |
git rebase --continue | |
git push --force | |
# git to a new repo | |
cd | |
git checkout -b XXXX-branch | |
git remote add gitlab git@new.git |
This file contains 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
ssh-keygen -t ed25519 -C "<email>" | |
eval "$(ssh-agent -s)" | |
cat /home/thiago/.ssh/id_ed25519.pub | |
ssh -T git@github.com |
This file contains 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
1# | |
mkdir my-git-project | |
cd my-git-project | |
git init | |
git commit --allow-empty -m"Initialize repo to showcase gitlab-runner locally." | |
#2 | |
Example .gitlab-ci.yml | |
image: alpine | |
test: |
This file contains 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
wsl –shutdown | |
cd C:\Users\thiago\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState | |
diskpart | |
select vdisk file="C:\Users\thiago\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\ext4.vhdx" | |
compact vdisk | |
exit |
This file contains 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 remote --v | |
git remote rename origin old-origin | |
git remote add origin NEW.git |
This file contains 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
df -h | |
umount /dev/mapper/cs_compute2-home | |
lsof /home | |
fuser -mv /home | |
kill 3009 3011 3080 3082 | |
fuser -mv /home | |
cd ~ | |
pwd | |
fuser -mv /home | |
umount /dev/mapper/cs_compute2-home |
This file contains 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
openstack image list | |
openstack image save --file softex_20211215.raw 16b867a6-f1fb-45aa-ab34-ea06b138d4a1 | |
openstack image create --disk-format qcow2 --container-format bare --public --file ./softex_20211215.raw softex-v20211215 |
This file contains 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
How to capture All incoming HTTP GET traffic (or) requests | |
tcpdump -i any -s 0 -A 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420' | |
How to capture only HTTP POST requests Incoming to port 80 ( Apache/NGINX) | |
tcpdump -i <INTF> -s 0 -A 'tcp dst port 80 and tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504F5354' |
This file contains 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
sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log" |
NewerOlder