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
| sudo adduser --system --home=/opt/etherpad --group etherpad |
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
| eval "$(ssh-agent -s)" |
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
| https://www.ianlewis.org/en/reversing-django-admin-urls | |
| https://github.com/jsocol/django-adminplus | |
| https://github.com/frankwiles/django-admin-views | |
| http://www.pabloleanomartinet.com/adding-custom-admin-pages-django/ |
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
| " Place in ~/.config/nvim | |
| " vim-bootstrap | |
| "***************************************************************************** | |
| "" Vim-PLug core | |
| "***************************************************************************** | |
| if has('vim_starting') | |
| set nocompatible " Be iMproved | |
| endif |
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
| systemctl stop mysql.service | |
| /usr/bin/mysql_safe --skip-grant-tables | |
| mysql -u root | |
| use mysql; | |
| update user set authentication_string=PASSWORD("**NEW-PASSWORD**") where User='root'; | |
| flush privileges; | |
| quit; | |
| systemctl start mysql.service | |
| # Test new Password | |
| mysql -u root -h localhost -p |
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 python | |
| # Original code https://andy-carter.com/blog/automating-git-commit-messages-with-git-hooks | |
| # Create hooks directory mkdir -p ~/.git/hooks | |
| # Config global hook path git config --global core.hooksPath ~/.git/hooks/ | |
| # save as prepare-commit-msg | |
| __author__ = "Alex Arce" | |
| __email__ = "alexander.arce@pm.me" | |
| __license__ = "GPL" | |
| __version__ = "1.0" | |
| __credits__ = "Frank Hofmann " |
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
| DROP SCHEMA public CASCADE; | |
| CREATE SCHEMA public; |
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
| CREATE OR REPLACE FUNCTION drop_objects() | |
| RETURNS VOID AS $$ | |
| DECLARE | |
| rd_object RECORD; | |
| v_idx_statement VARCHAR(500); | |
| BEGIN | |
| ---1. Dropping all stored functions |
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
| SELECT pg_catalog.set_config('search_path', 'public', false); |
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
| git submodule foreach '[ "$path" == "submodule-to-exclude" ] || git pull origin master' |