Skip to content

Instantly share code, notes, and snippets.

@AaronPhalen
AaronPhalen / markdown.txt
Last active November 3, 2015 05:02
Effective use of markdown in plain text file for seamless html conversion.
Author: Aaron R. Phalen | Twitter: @aaron_phalen | Email: [email protected]
Summary:
Markdown language is a programming syntax used to seamlessly convert markdown plain text files into html documents.
Included below are examples of the syntax for writing effective markdown.
Tutorial Time:
10 minutes
1. Italicized Text
@AaronPhalen
AaronPhalen / bash_comparison_expression.txt
Last active January 4, 2019 09:12
Bash comparison expression cheat sheet.
Author: Aaron R. Phalen | Twitter: @aaron_phalen | Email: [email protected]
BASH Compairson Expressions
===========================
Summary:
A brief introduction to comparison expressions import Bourne Again Shell (BASH).
I. Check for the existence of a file [ -e filepath]
Example:
@AaronPhalen
AaronPhalen / curl_tutorial.txt
Created October 28, 2015 20:35
Brief introduction to cURL and examples
Author: Aaron R. Phalen | Twitter: @aaron_phalen | Email: [email protected]
A Curl Introduction With Examples
=================================
Definition: cURL is a software package on linux that utilizes a command line
interface to transfer data via an URL syntax. cURL supports ports other than
80 (HTTP), such as FTP, IMAP, POP3, SFTP, and SMTP.
1. Download a file with cURL.
@AaronPhalen
AaronPhalen / terminal_commands.txt
Last active October 18, 2015 18:38
Useful Ubuntu 12.04 terminal commands.
Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]
Motivation: As an engineer embarks on server related assignments or system
administrative tasks, a few rudimentary UNIX commands can broaden an engineer's
breadth of knowledge and increase work productivity ouput.
1) man <command> --> manual or documentation for particular command.
2) find . -name "sample.txt" --> Search the current directory for a file named sample.txt.
3) find / -name "sample.txt" --> Similar to one, search the root file sytem for a file named sample.txt.
4) find . -name "sample" -type d --> Search the current directory for a directory named sample.
@AaronPhalen
AaronPhalen / python_advanced_regex.py
Last active October 13, 2015 16:38
Tutorial on advanced usage of Python's regular expression module with practice examples.
# Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]
# Summary:
# A rudimentary understanding of regex expression (Regex) can take a programmer a long
# ways with text manpulation. However, only once the advanced concepts of
# Regex is understood, can a programmer can increase the elegance and efficiency of code,
# and thefore ultimately increasing programming output by virtues of specialization.
# Motivation:
# I have been using regular expressions for a couple years in the most basics sense, and
@AaronPhalen
AaronPhalen / network_file_system.txt
Last active October 8, 2015 09:00
Basic explanation of network file system (nfs) in linux.
Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]
Summary:
The network file system (nfs) can be used and configured to share a server
disk with a client. For example, a server with the file system /home
can be made available as /home on the client server, given that the
host server is running. Additionally, this file system can be renamed on the client,
however this is generally not good practice and using the same name is recommended.
Permissions can also be set on the server, restricting read, write, execute
on the client server as needed.
@AaronPhalen
AaronPhalen / linux_dns_basics.txt
Last active October 8, 2015 08:14
Basic yet pertinent information behind the workings of DNS and linux configuration.
Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]
Summary:
The domain name system (DNS) it useful in translating ip-address to domain names and vice-versa.
Below will describe the basic workings of DNS and will show configuration on a linux server.
A. DNS and BIND
1. DNS - Domain Name Sytem
a) Translates between ip addresses and hostname
2. BIND - Berkely Internet Name System
@AaronPhalen
AaronPhalen / linux_sftp.txt
Last active October 7, 2015 14:49
Basic commands for sftp in linux.
Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]
Summary:
Basic commands for secure file transport protocol (sftp) in linux. Sftp
runs on the same port as ssh (22), and has similar secure encryption. Secure
file transport protocol is useful for quickly uploading or downloading files
from a linux server with the two verbs get and put, respectively. Generally,
sftp is a quick and lightweight alternative to an third part client
file transport protocol (ftp) such as FileZilla.
@AaronPhalen
AaronPhalen / linode_server.txt
Last active October 7, 2015 10:51
Basic concepts in the linode dashboard
Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]
Summary:
Below is a summary of the linode dashboard console. This summary will describe important aspects of the
linode box, an explanation of graphs, and useful linux terminal commands to better understand linode box.
@AaronPhalen
AaronPhalen / proxy_server_python.txt
Last active October 3, 2015 07:25
Information on proxy servers, installation, and use in the python programming language.
Author: Aaron Phalen | Twitter: @aaron_phalen | Email: [email protected]
Understading Proxy Servers With Examples in Python
==================================================
Summary:
In this succinct gist, a theory behind the workings, types, and configuration of a
proxy server will be discussed. Additionally, types of proxies, basic legality, and
purpose of proxy use will be touched upon. Basic examples will show utilizing a proxy
for http requests in the python programming language.