Skip to content

Instantly share code, notes, and snippets.

View ramlaxman's full-sized avatar
🎯
Focusing on Excellence in Cloud and Python

Mayur S. Patil (मयूर पाटील) ramlaxman

🎯
Focusing on Excellence in Cloud and Python
View GitHub Profile
@ramlaxman
ramlaxman / shell.c
Last active June 1, 2023 12:05 — forked from Krush206/README.md
A basic command interpreter. (For teaching purposes.)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
void my_system(char **);
int my_builtins(char *);
int main(void)
{
@ramlaxman
ramlaxman / Openstack installation on CentOS 7.md
Created December 6, 2019 18:01
Openstack installation on CentOS 7

Host: Windows 10 Hypervisor: Oracle VBox Guest: CentOS 7

  • RAM: 5 GB
  • HDD: 40 GB
  • Network Mode in VBox: Adapter 1: NAT Adapter 2: Host Only Network -> Virtualbox network.
@ramlaxman
ramlaxman / links.md
Last active September 25, 2019 18:32
Links for singing
@ramlaxman
ramlaxman / ACM ICPC Advice.md
Last active July 18, 2021 15:05
ACM ICPC Advice

Interesting Discussion as well as Guidance

Some pointers from my side:

ACM ICPC

Concentrate on your Regional: It helps having a fixed goal to focus on. This means acquainting yourself with past years' problems etc. And hopefully, there's a steady or gradual trend in problem style, and its not the case that one year you have amazing problems, the next you have weak test data etc.

Geolocation
# show hosts
# show domains
# add hosts
github.com
# use hosts-hosts/resolve
# show hosts
# run 1
# show hosts
# use freegeoip
@ramlaxman
ramlaxman / The Technical Interview Cheat Sheet.md
Last active April 3, 2019 03:55 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

Array

Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
@ramlaxman
ramlaxman / Ansible Summary.md
Last active December 23, 2020 09:02
Ansible Summary.md

Ansible

It's an automation language, engine and orchestration tool developed by Red hat written in Python using YAML format for writing instructional scripts, affectionately known as "Ansible playbook".

It has an automation engine that runs Ansible playbooks. Cloud provider is present in the ecosystem (AWS, Azure, Google, DigitalOcean, OVH, etc…).

Pros

  • It is an agent-less tools In most scenarios, it use ssh as a transport layer. In some way you can use it as 'bash on steroids'
  • It is very easy to start. If you are familiar with ssh concept - you already know Ansible (ALMOST).
@ramlaxman
ramlaxman / Python-tips.md
Last active November 22, 2018 05:01
Python-tips.md

Introduction

  • Lists, strings, and tuples are ordered collections that are very similar in general structure but have specific differences that must be understood for them to be used properly.

  • Sets and dictionaries are unordered collections.

  • To make sets and dict ordered, we need to use: Frozensets and Ordered Dictionary.

  • The possible state values for a boolean object are True and False with standard boolean operators,and, or, and not.

# to open multiple files in vi
vi {f1,f2,f3}
# when opening first file
# press INS button
# save file with `:wn`
# when you are done with last file `:wa`
# now to save and quit `:wq`
General Questions:
What function does DNS play on a network?
DNS, or Domain Name System, associates domain names to entities in the system. The widest used example is translating domain names to IP addresses, in order to locate devices. For example, when asked what www.exmaple.org is, DNS will respond with 93.184.216.119, the IP of that domain.
Further Reading: https://en.wikipedia.org/wiki/Dns
What is HTTP?
HTTP, or Hypertext Transfer Protocol, is "an application protocol for distributed, collaborative, hypermedia information systems (Wikipedia)", and is the foundation of the World Wide Web (distinct from the Internet as a whole). In the context of System Administration, HTTP is related to the applications or services that handle that protocol, most notably web servers like Apache or Nginx (among others).