# Get IP of a network interface
`ip addr show docker0 | grep 'inet'`
# sshfs - mount directory through SSH
sudo sshfs -o allow_other,default_permissions,nonempty <user>@<machine>:<path_origin> <local_path>
# Git commit in the past
GIT_AUTHOR_DATE="2023-10-24T18:00:00 -0300" GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE git commit
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
| /** | |
| * LICENSED UNDER THE MIT LICENSE | |
| * | |
| * Copyright (c) 2023 Maicon Mauricio <maicon.dev@protonmail.com>. | |
| * | |
| * See https://gist.github.com/maiconandsilva/212332ad20ccb5450b7754610fcea281 | |
| * See https://stackoverflow.com/a/76577940/15016163 | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining | |
| * a copy of this software and associated documentation files (the |
- Install reposurgeon
- Initialize the configuration files
repotool initialize '$(CVS_MODULE)'
- Rename configuration files (remove '$(CVS_MODULE).' from name)
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
| version: "3.9" | |
| services: | |
| db: | |
| build: | |
| context: . | |
| # shm_size: 2gb | |
| restart: unless-stopped | |
| ports: | |
| - $DB_PORT:5432 |
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/env bash | |
| OLD_APP="${1///}" # Path Old App | |
| NEW_APP="${2///}" | |
| # first the sources | |
| cp -vrf "$OLD_APP/.git" "$NEW_APP" | |
| cp -rf "$OLD_APP"/src/groovy/* "$NEW_APP/src/main/groovy" | |
| cp -rf "$OLD_APP"/src/java/* "$NEW_APP/src/main/groovy" | |
| cp -rf "$OLD_APP"/grails-app/* "$NEW_APP/grails-app" |
Regras que permitem o acesso de qualquer IP à porta 80 (HTTP) e de qualquer ip dentro da subrede da rede local à porta 22 (SSH).
Executar comando ufw como root.
- Configurar máquina virtual com adaptador de rede em modo bridge na mesma interface do host.
Máquina virtual > settings > network > Attached to (Bridged Adapter)
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
| // Compiled by Igor Shults | |
| // Last Updated: July 23, 2020 | |
| GRAILS GROOVY SOURCE | |
| 4.1.0 3.0.5 https://github.com/grails/grails-core/blob/v4.1.0/build.gradle | |
| 4.0.4 2.5.6 | |
| 4.0.3 2.5.6 | |
| 4.0.2 2.5.6 | |
| 4.0.1 2.5.6 | |
| 4.0.0 2.5.6 https://github.com/grails/grails-core/blob/v4.0.0/build.gradle |
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/env python3 | |
| """ | |
| # #NET-CLARO-WIFI Login Skip Ads | |
| You should add a keyboard shortcut to run the script, so when the time runs out it's easier to re-enable internet access without having to watch ads. | |
| ## Requirements | |
| - Chrome Drive must be in the system path |
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
| from models.customers import Customers | |
| from models.isolated.customer_personal_info import CustomerPersonalInfo | |
| from string import ascii_letters, digits | |
| from random import choice, choices | |
| from helpers import store_key_id | |
| from models.orders import Orders | |
| from models.orders import OrderLines | |
| from datetime import datetime | |
| import random |
NewerOlder