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
-- 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, |
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
#!/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, |