실험자 (28) 썸네일형 리스트형 아파치 Install Apache sudo apt-get update sudo apt-get install apache2 Check default page after installation http://local.server.ip hostname -I | awk '{print $1}' Configure Firewall sudo ufw app list Available applications: Apache Apache Full Apache Secure CUPS Nginx Full Nginx HTTP Nginx HTTPS OpenSSH sudo ufw allow 'Apache' sudo ufw status Apache Configuration sudo systemctl stop apache2.service sudo.. CSS Cascading Style Sheets (CSS) Two ways to apply: inline CSS within html element CatPhotoApp or create a style block where h2 is CSS selector. CSS class selector declaration using dot is as below which applies to all elements with blue-text class CatPhotoApp font-size h1 { font-size: 30px; } font-family h2 { font-family: sans-serif; } non-standard, custom web fonts https://fonts.google.com/ font-f.. 리눅스 명령어 Change hostname (Reference Link) sudo hostname new-server-name-here sudo nano /etc/hosts 127.0.1.1 old-host-name 127.0.1.1 new-server-name-here User management-Add/(un)Lock/Delete (Reference Link) # add sudo adduser [username] # lock sudo passwd -l username # unlock sudo passwd -u username # delete sudo deluser [username] # the deleted user's folder doesn't get deleted together. # a new username.. 마크다운 Markdown Headers tag by "#" tag by "##" tag by "###" tag by "######" Alternatively, for H1 and H2, an underline-ish style: Alt-H1 by "=====" Alt-H2 by "-----" Emphasis Raw Rendered *This text will be italic* This text will be italic _This will also be italic_ This will also be italic **This text will be bold** This text will be bold __This will also be bold__ This will also be bold _You **can** combine t.. Django http When a page is requested, Django creates an HttpRequest object that contains metadata about the request. Then Django loads the appropriate view, passing the HttpRequest as the first argument (request of index function below) to the view function. Each view is responsible for returning an HttpResponse object. # in views.py from djangp.http import HttpResponse def index(request): return HttpRespon.. Bash here doc A here document is a special-purpose code block. It uses a form of I/O redirection to feed a command list to an interactive program or a command, such as ftp, cat, or the ex text editor. COMMAND 9 )) then echo "true" elif (( $count < 9)) echo "true and true" else echo "true and false" fi Conditional Operators (Reference) operator meaning -eq (= | ==) equal to (string comparison) -ne not.. Redux toolkit Installation # NPM npm install @reduxjs/toolkit # Yarn yarn add @reduxjs/toolkit # or npx create-react-app my-app --template redux ConfigureStore // Typical example import { configureStore } from '@reduxjs/toolkit' import rootReducer from './reducers' const store = configureStore({ reducer: rootReducer }) // The store now has redux-thunk added and the Redux DevTools Extension is .. postgresql PostgreSQL DATABASE PostgreSQL is an object-relational database management system (ORDBMS) based on POSTGRES, Version 4.21, developed at the University of California at Berkeley Computer Science Department. PostgreSQL uses a client/server model The database server program is called postgres. psql is a terminal-based front-end to PostgreSQL. Login By default, PostgreSQL creates a (super)user ‘pos.. 이전 1 2 3 4 다음 목록 더보기