Skip to content

Instantly share code, notes, and snippets.

View marcosvidolin's full-sized avatar
🎯
Always learning

Marcos Vidolin 👾 marcosvidolin

🎯
Always learning
View GitHub Profile
@marcosvidolin
marcosvidolin / update-application.sh
Last active June 8, 2018 13:00
How to update a especific application? Firefox example
sudo apt-get dist-upgrade firefox
@marcosvidolin
marcosvidolin / create_user.sql
Created August 3, 2018 16:31
Create a Oracle User & Grants
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>;
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
@marcosvidolin
marcosvidolin / list_views.sql
Last active August 9, 2019 01:40
Oracle - Get views DDL
SELECT dbms_metadata.get_ddl('VIEW', view_name) FROM user_views;