Skip to content

Instantly share code, notes, and snippets.

View 100daysofdevops's full-sized avatar
🎯
Focusing

100daysofdevops

🎯
Focusing
View GitHub Profile
ESTABLISHED
The socket has an established connection.
SYN_SENT
The socket is actively attempting to establish a connection.
SYN_RECV
A connection request has been received from the network.
FIN_WAIT1
proxy_redirect default;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_max_temp_file_size 0;
#this is the maximum upload size
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
$ rpmbuild -ba SPECS/myhomepage-1.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7WVlY1
+ umask 022
+ cd /home/centos/rpmbuild/BUILD
+ cd /home/centos/rpmbuild/BUILD
+ rm -rf myhomepage-1
+ /usr/bin/tar -xf /home/centos/rpmbuild/SOURCES/myhomepage-1.tar
+ cd myhomepage-1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Name: myhomepage
Version: 1
Release: 0
Summary: This is myhomepage rpm
Group: mygroup
License: GPL
URL: http://www.example.com
Source0: myhomepage-1.tar
#!/bin/bash
FILE="$1"
if [ -f $FILE ]; then
echo "The file '$FILE' exists."
else
echo "The file '$FILE' in not found."
fi
#!/bin/bash
FILE="/etc/passwd"
if [ -f $FILE ]; then
echo "The file '$FILE' exists."
else
echo "The file '$FILE' in not found."
fi
<html>
<header><title>This is title</title></header>
<body>
Hello world
</body>
</html>
resource "aws_route53_zone" "primary" {
name = "example.com"
}
resource "aws_route53_record" "www" {
zone_id = "${aws_route53_zone.primary.zone_id}"
name = "www.example.com"
type = "A"
ttl = "300"
$TTL 86400
@ IN SOA example root.example.com (
2018110201 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
IN NS example
IN A 192.168.1.3