***********RESPONSE STATUS CODE *******************
1xx : Informational (Not Used)
2xx : Successfull
HTTP_200_OK
HTTP_201_CREATED
HTTP_202_ACCEPTED
HTTP_203_NON_AUTHORITATIVE_INFORMATION
| var http = require('http'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/html'}); | |
| var url = req.url; | |
| var method = req.method; | |
| if (url === '/') { | |
| res.write('Welcome to Expressless NodeJs application'); | |
| res.end(); | |
| } else if(url ==='/print') { |
***********RESPONSE STATUS CODE *******************
1xx : Informational (Not Used)
2xx : Successfull
HTTP_200_OK
HTTP_201_CREATED
HTTP_202_ACCEPTED
HTTP_203_NON_AUTHORITATIVE_INFORMATION
| import sys | |
| from pptx import Presentation | |
| if len(sys.argv) > 1: | |
| prs = Presentation(sys.argv[1]) | |
| else: | |
| exit("Error: Add pptx file in next argument") | |
| for slide in prs.slides: | |
| for shape in slide.shapes: | |
| if not shape.has_text_frame: |
| FROM openjdk:8-jdk-alpine as build-image | |
| RUN apk add --no-cache curl tar bash procps | |
| ARG MAVEN_VERSION=3.6.0 | |
| ARG USER_HOME_DIR="/root" | |
| ARG SHA=fae9c12b570c3ba18116a4e26ea524b29f7279c17cbaadc3326ca72927368924d9131d11b9e851b8dc9162228b6fdea955446be41207a5cfc61283dd8a561d2f | |
| ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries | |
| RUN mkdir -p /usr/share/maven /usr/share/maven/ref /usr/src/app \ |
| FROM openjdk:11-jdk as build-image | |
| ARG MAVEN_VERSION=3.6.0 | |
| ARG USER_HOME_DIR="/root" | |
| ARG SHA=fae9c12b570c3ba18116a4e26ea524b29f7279c17cbaadc3326ca72927368924d9131d11b9e851b8dc9162228b6fdea955446be41207a5cfc61283dd8a561d2f | |
| ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries | |
| # Maven fails with 'Can't read cryptographic policy directory: unlimited' | |
| # because it looks for $JAVA_HOME/conf/security/policy/unlimited but it is in | |
| # /etc/java-9-openjdk/security/policy/unlimited |
| $ python -c "import os; print os.urandom(24).encode('hex')" | |
| dced1d987b5ac57e771e6d7300fe165b034c4b0b4fd5f3e3 | |
| $ python -c "import os; print os.urandom(24).encode('hex');" | |
| 643b19d39bbab834b20ac957abbf159c71f2760ff3b2edcd |
| # Listing all timezones | |
| $ timedatectl list-timezones | |
| Africa/Abidjan | |
| Africa/Accra | |
| Africa/Addis_Ababa | |
| Africa/Algiers | |
| Africa/Asmara | |
| Africa/Bamako | |
| Africa/Bangui |
| <!-- | |
| Live Demo: https://bl.ocks.org/coolboi567/raw/b8d13c0539cc62aa6d2926c60e4ddc7f | |
| --> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Awesome JavaScript Art</title> | |
| </head> | |
| <body> | |
| <script> |