there will be output text "foobar" on test.txt for each minute and for second line there will be environment of existing OS on /tmp/env.output
- Run command
# Rewrite HTTP into HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} !=on | |
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] |
# CRA + Nginx Template | |
# Stage 1 - the build process | |
FROM node:8 as build-deps | |
WORKDIR /usr/src/app | |
COPY package.json yarn.lock ./ | |
RUN yarn | |
COPY . ./ | |
RUN yarn build | |
# Stage 2 - the production environment |
{ | |
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\wsl.exe", | |
"workbench.colorTheme": "Material Theme Palenight High Contrast", | |
"workbench.colorCustomizations": { | |
"activityBarBadge.background": "#AB47BC", | |
"activityBarBadge.foreground": "#FFFFFF", | |
"list.activeSelectionForeground": "#AB47BC", | |
"list.inactiveSelectionForeground": "#AB47BC", | |
"list.highlightForeground": "#AB47BC", | |
"scrollbarSlider.activeBackground": "#AB47BC50", |
#BACKUP | |
mongodump --db pp_helpdesk_prd -u admin_helpdesk -p ptPP1953da --out /var/backups/pp-helpdesk/`date +"%d-%m-%y"` | |
#RESTORE | |
sudo mongorestore --db newdb --drop /var/backups/mongobackups/13-06-19/pp_helpdesk_prd/ | |
#DELETE OLDER 30DAYS | |
find /var/backups/pp-helpdesk/ -mtime +30 -exec rm -rf {} \; |
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
DATA: LO_STRUCT TYPE REF TO CL_ABAP_STRUCTDESCR, | |
lo_type type ref to cl_abap_typedescr. | |
data: gI_COMP TYPE ABAP_COMPONENT_TAB. | |
"Get list of structure | |
LO_STRUCT ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_DATA( imi_table ). | |
gI_COMP = LO_STRUCT->GET_COMPONENTS( ). | |
"Get type of element | |
clear lo_type. |
# For more information on configuration, see: | |
# * Official English Documentation: http://nginx.org/en/docs/ | |
# * Official Russian Documentation: http://nginx.org/ru/docs/ | |
user git; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
# Load dynamic modules. See /usr/share/nginx/README.dynamic. |
// check version | |
node -v || node --version | |
// list installed versions of node (via nvm) | |
nvm ls | |
// install specific version of node | |
nvm install 6.9.2 | |
// set default version of node |
vi /etc/motd | |
,---,---,---,---,---,---,---,---,---,---,---,---,---,-------, | |
|ESC| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | + | ' | <- | | |
|---'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-----| | |
| ->| | Q | W | E | R | T | Y | U | I | O | P | ] | ^ | | | |
|-----',--',--',--',--',--',--',--',--',--',--',--',--'| | | |
| Caps | A | S | D | F | G | H | J | K | L | \ | [ | * | | | |
|----,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'-,-'---'----| | |
| | < | Z | X | C | V | B | N | M | , | . | - | | |