Skip to content

Instantly share code, notes, and snippets.

View dennisnderitu254's full-sized avatar
💻
ALX SE

Dennis Nderitu Kinyanjui dennisnderitu254

💻
ALX SE
View GitHub Profile
@dennisnderitu254
dennisnderitu254 / terminal.txt
Created June 17, 2024 13:17 — forked from joulgs/terminal.txt
How install libssl1.1 on ubuntu 22.04
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
@dennisnderitu254
dennisnderitu254 / Code.md
Created November 14, 2023 16:05
TechnicalQuestions

Question 13:

Create a function that takes a Roman numeral as its argument and returns its value as a numeric decimal integer. You don't need to validate the form of the Roman numeral.

Modern Roman numerals are written by expressing each decimal digit of the number to be encoded separately, starting with the leftmost digit and skipping any 0s. So 1990 is rendered "MCMXC" (1000 = M, 900 = CM, 90 = XC) and 2008 is rendered "MMVIII" (2000 = MM, 8 = VIII). The Roman numeral for 1666, "MDCLXVI", uses each letter in descending order.

Example: solution('XXI'); // should return 21

Help:

Host Web01
HostName 100.25.220.119
User ubuntu
IdentityFile ~/.ssh/id_rsa
PubkeyAuthentication yes
PasswordAuthentication no
ServerAliveInterval 60
ServerAliveCountMax 3
@dennisnderitu254
dennisnderitu254 / self-taught-beginner.md
Created September 18, 2023 09:23 — forked from gowizzard1/self-taught-beginner.md
Comprehensive Step-by-Step Guide & Resources for Aspiring Self-Taught Software Engineers

Here are numerous self-taught resources available online for beginners in software engineering. Here's a step-by-step guide for someone starting out, complete with resources:

1. Foundations

@dennisnderitu254
dennisnderitu254 / task0.md
Created August 28, 2023 13:39
Installing a redis instance

Install a redis instance

nderitu@ndech:~/redis-6.0.10$ src/redis-cli ping
PONG
nderitu@ndech:~/redis-6.0.10$ src/redis-cli
127.0.0.1:6379> set Holberton School
OK
127.0.0.1:6379> get Holberton 
"School"
@dennisnderitu254
dennisnderitu254 / escrowdemo.md
Created August 28, 2023 09:05
Final Project - Escrow Systems Design

An escrow system is designed to facilitate secure transactions between parties by holding funds or assets in a neutral account until certain conditions are met.

I looked at a similar system and borrowed some inspiration from it - https://www.escrow.com/

This is my perspective on how I would go about designing it.

  1. User Registration and Verification: Users (buyers, sellers, and the escrow service) register on the platform with verified information, such as email, phone number, and payment details.
@dennisnderitu254
dennisnderitu254 / Buttons_Template.js
Created September 23, 2020 05:10 — forked from Anshul0305/Buttons_Template.js
Facebook Code Snippets
{
"facebook":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"What do you want to do next?",
"buttons":[
{
"type":"web_url",
@dennisnderitu254
dennisnderitu254 / css-media-queries-cheat-sheet.css
Created August 24, 2020 09:25 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@dennisnderitu254
dennisnderitu254 / css-media-queries-cheat-sheet.css
Created August 24, 2020 09:25 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
--------------------- SETUP -----------------------
1. Download Python 3.5
2. Update Path variables on Windows Path.
3. Install Cmder and run as Admin
4. Install Pycharm
5. $easy_install django
6. $easy_install virtualenv
7. django-admin startproject Santosh // Santosh is project name
8. Never edit manage.py, NEVER!