Skip to content

Instantly share code, notes, and snippets.

@jaswanth03
jaswanth03 / Manual-ssl-cert-config-in server
Created September 12, 2019 07:42
Steps to configure SSL in server for a domain name in apache centos server
==========================
SETUP
==========================
// https://www.sslshopper.com/ssl-checker.html - to check whether the ssl is installed properly or not.
Pre-requisite - Apache(httpd)
// installs ssl module for apache
."yum install mod_ssl"
@jaswanth03
jaswanth03 / Free-ssl-installation-steps
Created September 12, 2019 07:39
Steps to get and install free SSL certs from https://zerossl.com/free-ssl
-----YORENT SSL--------
Your account ID is 59964833
----It is a step by step process so open the website and start doing the process step by step---
1) GO to the below website give the domain name as (yorent.in) and it asks to create ssl for (www.yorent.in) accept it.
https://zerossl.com/free-ssl
2) After mentioning the Domain name and clicking next it generates a CSR certificate - Download it.
3) After clicking on next It generates Account Key - Download it.
@jaswanth03
jaswanth03 / server-webmin-setup-centos
Created September 12, 2019 07:37
Steps to be fallowed while setting up a new webmin interface in server
Follow this link : https://www.rosehosting.com/blog/how-to-install-webmin-on-centos-7/
STEP1: download webmin
# wget http://prdownloads.sourceforge.net/webadmin/webmin-1.831-1.noarch.rpm
STEP2: install all dependencies
# yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty
STEp3: Once the dependencies are installed, you can install Webmin using the following command:
# rpm -U webmin-1.831-1.noarch.rpm
@jaswanth03
jaswanth03 / VPS-server-setup
Last active September 12, 2019 07:36
Steps to be fallowed while installing a new vps server in CENT-OS
// To check the OS of the server.
"cat /etc/os-release" (to check the operating system of the srever and version of it.)
// Enter into the server for the first time.
. Type in the given server IP:104.237.9.126 and server default password.(Opens up the server [root@USTEST ~])
// Change the default 'root' password to a different password.
// can be used to change the password at any point of time by just mentioning the user at the end insterd of root.
. set/reset root password
@jaswanth03
jaswanth03 / deployMs
Last active May 10, 2019 10:38
Steps to deploy microservices in server.
steps to deploy microservices:
-----------------------------
Local Machine:
-------------
git lab credentials
userName : upfrontnl
email: upfrontnl@gmail.com
pass: Upfront123#
@jaswanth03
jaswanth03 / toast-angular
Last active March 26, 2019 13:57
jquery-toast by Kamran Ahmed
https://www.npmjs.com/package/jquery-toast-plugin
https://kamranahmed.info/toast
// steps to follow before installing jquery toast plugin
1) npm install jquery-toast-plugin
// after running the above command include the css file location and js file location in the angular.json file.
2)"styles": [
"node_modules/jquery-toast-plugin/dist/jquery.toast.min.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css",
@jaswanth03
jaswanth03 / component generater
Created March 22, 2019 08:01
generating components modules and routing files in angulr cli
// remove the braces while entering component nnme and module name.
// to generate component
ng generate component [component name]
// to generate module with rooting file and module file.
ng generate module [module name] --routing
@jaswanth03
jaswanth03 / add-angular-material
Created March 22, 2019 05:34
steps to follow for adding angular material to angular.
// add this to angular by running it in teriminal
ng add @angular/material
2) select the theme you want to include in your file you can select custom one and build one also
3) // add all this in module file imports
BrowserAnimationsModule,
ReactiveFormsModule,
MatButtonModule,
MatFormFieldModule,
@jaswanth03
jaswanth03 / transactionRollback
Last active March 14, 2019 11:56
to rollback
$this->db->trans_start();
$this->db->trans_rollback();
$this->db->trans_complete();
@jaswanth03
jaswanth03 / db_debug
Last active March 14, 2019 12:12
application/config/database.php db_debug = FALSE
// to show the error message with 500 error
$db['default'] = array(
'db_debug' => (ENVIRONMENT !== 'production'),
);
// to catch the error messages in the php model failure condition.
$db['default'] = array(
'db_debug' => FALSE,
);