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/bash | |
| # Linux user management script | |
| # to list all user on linux environment (listed in /etc/passwd) | |
| getent passwd | |
| # to list all groups on linux environment (listed in /etc/group) | |
| getent group | |
| # to add a new user |
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/bash | |
| sudo rm -rf /var/lib/dpkg/info/*.* | |
| sudo apt-get autoremove | |
| sudo apt-get autoclean | |
| sudo apt-get update | |
| sudo apt-get upgrade |
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
| -- enable extensions | |
| -- full-text search on postgresql | |
| CREATE EXTENSION unaccent; | |
| -- languages supported | |
| CREATE TEXT SEARCH CONFIGURATION fr ( COPY = french ); | |
| ALTER TEXT SEARCH CONFIGURATION fr ALTER MAPPING | |
| FOR hword, hword_part, word WITH unaccent, french_stem; | |
| CREATE TEXT SEARCH CONFIGURATION en ( COPY = english ); |
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/bash | |
| # from http://ubuntuserverguide.com/2012/06/how-to-installing-nginx-with-php5-and-mysql-support-on-ubuntu-server-12-04-lts.html | |
| PHP_SCRIPT=/usr/sbin/php-fastcgi | |
| FASTCGI_USER=www-data | |
| FASTCGI_GROUP=www-data | |
| PID_DIR=/var/run/php-fastcgi | |
| PID_FILE=/var/run/php-fastcgi/php-fastcgi.pid | |
| RET_VAL=0 | |
| case "$1" in |
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 sh | |
| EMAIL = $1 | |
| ssh-keygen -t rsa -b 4096 -C $EMAIL | |
| eval "$(ssh-agent -s)" | |
| ssh-add -k ~/.ssh/id_rsa |
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
| ### Written: 2017-06-13 | |
| ### Updated: - | |
| ### Get, verify and unpack, delete and move the distribution package (12.0) | |
| wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2 | |
| wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2.sha256 | |
| sha256sum -c nextcloud-12.0.0.tar.bz2.sha256 < nextcloud-12.0.0.tar.bz2.sha256 | |
| tar xvf nextcloud-12.0.0.tar.bz2 && rm nextcloud-12.0.0.tar.bz2 | |
| sudo mv nextcloud /var/www/ |
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
| ### Written: 2017-06-13 | |
| ### Updated: - | |
| ### Get, verify and unpack, delete and move the distribution package (12.0) | |
| wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2 | |
| wget https://download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2.sha256 | |
| sha256sum -c nextcloud-12.0.0.tar.bz2.sha256 < nextcloud-12.0.0.tar.bz2.sha256 | |
| tar xvf nextcloud-12.0.0.tar.bz2 && rm nextcloud-12.0.0.tar.bz2 | |
| sudo mv nextcloud /var/www/html |
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
| # Install Postgres | |
| http://apt.postgresql.org/pub/repos/apt/ 9.4-pgdg main | |
| wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get install postgresql-9.4 | |
| # Install redis | |
| curl -O http://download.redis.io/releases/redis-3.2.9.tar.gz | |
| tar xzf redis-3.2.9.tar.gz |
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
Show hidden characters
| // Place your settings in the file "User/Preferences.sublime-settings", which | |
| // overrides the settings in here. | |
| // | |
| // Settings may also be placed in file type specific options files, for | |
| // example, in Packages/Python/Python.sublime-settings for python files. | |
| { | |
| // Sets the colors used within the text area | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| // Note that the font_face and font_size are overriden in the platform |
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
| # install git | |
| sudo apt get install git | |
| # install elasticsearch | |
| sudo apt-get install build-essential libssl-dev | |
| wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| echo "deb http://packages.elastic.co/elasticsearch/2.x/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-2.x.list | |
| sudo apt-get update && sudo apt-get install elasticsearch | |
| # install java |