-
This one is also good starting point: Jumpstart Git Google for pdf you will get it.
-
Simplest intro to git by github and codeschool - Try Git
#include <stdio.h> | |
char gridChar(int i) { | |
switch(i) { | |
case -1: | |
return 'X'; | |
case 0: | |
return ' '; | |
case 1: | |
return 'O'; |
//Tic-tac-toe playing AI. Exhaustive tree-search. WTFPL | |
//Matthew Steel 2009, www.www.repsilat.com | |
#include <stdio.h> | |
char gridChar(int i) { | |
switch(i) { | |
case -1: | |
return 'X'; | |
case 0: |
#!/usr/bin/env python | |
process_queue = [] | |
total_wtime = 0 | |
n = int(raw_input('Enter the total no of processes: ')) | |
for i in xrange(n): | |
process_queue.append([])#append a list object to the list | |
process_queue[i].append(raw_input('Enter p_name: ')) | |
process_queue[i].append(int(raw_input('Enter p_arrival: '))) | |
total_wtime += process_queue[i][1] | |
process_queue[i].append(int(raw_input('Enter p_bust: '))) |
#!/usr/bin/sh | |
dnf install openssh | |
service sshd start | |
chkconfig sshd on | |
echo Do you want to continue? [Y/N] | |
read ans | |
if [ $ans == 'N' ] | |
then | |
echo "SSH check completed. Have a nice day." |
"Hello World" with Travis CI | |
Here, we will set up a first Travis CI job, based around a simple "hello world" example, to get you up and running with Travis CI. | |
Sign in to GitHub | |
If you do not already have an account, then visit GitHub and create a free account. | |
If you already have an account, then visit GitHub and sign in. | |
In the following text, replace USERNAME with your GitHub user name. |
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). |
# 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` |
-
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.
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).