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
SSH(Entails to when a client is communicating to a server) | |
SECURE SHELL | |
PROROCOL TO COMMUNINCATE WITH OTHER COMPUTERS AND SIMILAR TO (https,http,ftp) | |
Used to do just about anything in a remote computer and mostly used via the terminal/commandLine | |
Traffic is Enccrypted | |
Can also be used via GUI eg in WINSCP | |
Can also be used in ftp..file zilla |
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
# Viewing your Posgtres Clusters | |
sudo pg_lsclusters | |
# create a second postgres cluster | |
sudo pg_createcluster 10 replica1 | |
#checking the status of the cluster | |
sudo pg_ctlcluster 10 replica1 status | |
sudo systemctl status postgresql@10-main |
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
<div id="wrapper"> | |
<div id="left"> | |
<div id="signin"> | |
<div class="logo"> | |
<img src="https://image.ibb.co/hW1YHq/login-logo.png" alt="Sluralpright" /> | |
</div> | |
<form> | |
<div> | |
<label>Email or username</label> | |
<input type="text" class="text-input" /> |
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
Private and Public Keys | |
Gaining access to a remote server | |
1)It is SSH-Secure Shell Protocol to communicate with other computers .It is similar to Protocals like https,hhtp and ftp) | |
2)Do just anything in the remote Computer (Make files,,,etc) | |
3)Traffic is Encrypted while using ssh..Used Mostly in Terminal/Commandline..Can also be used in GUI EG SCP...ALSO WITH FTP CLIENTS | |
Like filezilla |
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
void main() { | |
//Instantiating a class | |
User userOne=User('caleb', 24); | |
//calling an attribute/property of the class | |
print(userOne.username); | |
print(userOne.age); | |
User userTwo = User('mercy',23); |
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
void main() { | |
/*Map is a set of key value pairs similar to | |
* object literals in javascript and dictionaries in | |
* python | |
* | |
*/ | |
Map student ={ | |
'name':"Mbugua Caleb","age":"24" | |
}; |
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
(a)Internet is a global network of computers. | |
(b)Each Commputer/Router has an IP address (which is unique to it)Remeber the concept of public and private IP address..(in a local | |
network computers in the same network each have a unique private IP address) | |
(c)Computers talk to each other using the TCP/IP protocal. | |
(d)HTTP handles web traffic (request/response) | |
(e)DNS is used to Map IP addresses to domain names. |
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
-- What is the result? | |
SELECT MAX(id) FROM your_table; | |
-- Then run... | |
-- This should be higher than the last result. | |
SELECT nextval('your_table_id_seq'); | |
-- If it's not higher... run this set the sequence last to your highest id. | |
-- (wise to run a quick pg_dump first...) |
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
#Strings and String Methods. | |
using System; | |
namespace csharp_one | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
//Strings | |
package com.caleb; | |
public class Main { | |
public static void main(String[] args) { | |
String hello =" CALEB" + "MBUGUA!! "; | |
//Concat strings | |
//String is a class therefore it has methods we canbe able to access. | |
System.out.println(hello.toLowerCase()); |
OlderNewer