Skip to content

Instantly share code, notes, and snippets.

View renatogabrielbr's full-sized avatar
🎯
Focusing

Renato Gabriel renatogabrielbr

🎯
Focusing
  • Rio de Janeiro, Brazil
View GitHub Profile
#!/bin/sh -eux
# Delete all Linux headers
dpkg --list \
| awk '{ print $2 }' \
| grep 'linux-headers' \
| xargs apt-get -y purge;
# Remove specific Linux kernels, such as linux-image-3.11.0-15-generic but
# keeps the current kernel and does not touch the virtual packages,
@renatogabrielbr
renatogabrielbr / change_table_view_field.sql
Last active February 17, 2021 22:41
pgsql on change field change view PGSQL 12.5
-- Use it for change columns without lost or have to create again views.
-- How to use at the end
-- Refer: https://stackoverflow.com/questions/3243863/problem-with-postgres-alter-table/49000321
-- Table for save
CREATE TABLE public.deps_saved_ddl
(
deps_id serial NOT NULL,
deps_view_schema character varying(255),
deps_view_name character varying(255),
deps_ddl_to_run text,