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
SELECT dbms_metadata.get_ddl('VIEW', view_name) FROM user_views; |
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
kubectl get po --all-namespaces -o json | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | "kubectl delete po \(.metadata.name) -n \(.metadata.namespace)"' | xargs -n 1 bash -c |
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
create user <USER> identified by <PASSWorD>; | |
grant connect to <USER>; | |
grant create session, create table, resource, connect, create procedure, create sequence, create synonym, create trigger, create view, debug connect session, unlimited tablespace to <USER>; |
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 apt-get dist-upgrade firefox |
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
redis-cli -h <HOSTNAME> KEYS *mvidolin* | xargs redis-cli -h <HOSTNAME> DEL |
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
SELECT a.table_name, a.column_name, a.constraint_name, c.owner, | |
c.r_owner, c_pk.table_name r_table_name, c_pk.constraint_name r_pk | |
FROM all_cons_columns a | |
JOIN all_constraints c ON a.owner = c.owner AND a.constraint_name = c.constraint_name | |
JOIN all_constraints c_pk ON c.r_owner = c_pk.owner AND c.r_constraint_name = c_pk.constraint_name | |
WHERE c.constraint_type = 'R' AND A.COLUMN_NAME = '<COLUMN_NAME>' and c.owner = '<OWNER_NAME>' | |
; |
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
Significado de cada campo do Cron | |
A princípio o Cron pode parecer algo muito bizarro, porém, cada campo possui um significado bem especificado. Abaixo é listado o que cada campo significa junto com seus valores esperados: | |
A B C D E F | |
A: Segundos (0 – 59). | |
B: Minutos (0 – 59). | |
C: Horas (0 – 23). | |
D: Dia (1 – 31). | |
E: Mês (1 – 12). | |
F: Dia da semana (0 – 6). |
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
java -jar /opt/ci/liquibase.jar --driver=oracle.jdbc.OracleDriver --classpath=/opt/ci/ojdbc14-10.2.0.1.0.jar --changeLogFile="db.changelog.xml" --url=<url>:<port>:<sid> --username=<user> --password=<pass> --logLevel=debug clearCheckSums |
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
ibus-daemon -rd |
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
# Login | |
docker login <server url> -u <user> -p <pass> | |
# Push (example Harbor) | |
docker push <server>/<project in harbor>/<image name>>:<tag> |
NewerOlder