What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 23:09:02
install postgres 11 ubuntu
sudo apt update && sudo apt -y upgrade wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - RELEASE=$(lsb_release -cs) echo "deb http://apt.postgresql.org/pub/repos/apt/ ${RELEASE}"-pgdg main | sudo... Add solution -
Shell/Bash 2021-08-28 15:06:02
E: Unable to locate package software-properties-common 2020
# that can be due to offline installation of the distro # open the sources.list file using the following command sudo nano /etc/apt/sources.list # check if the file contains the following lines deb http://http.kali.org/kali kali-rolling main non-free co... Add solution -
Shell/Bash 2021-08-28 10:01:02
install openvpn acces 2.5.2
apt update && apt -y install ca-certificates wget net-tools gnupg wget -qO - https://as-repository.openvpn.net/as-repo-public.gpg | apt-key add - echo "deb http://as-repository.openvpn.net/as/debian buster main">/etc/apt/sources.list.... Add solution -
Shell/Bash 2021-08-28 07:27:01
trojitá
# Ubuntu sudo -s sudo sh -c "echo 'deb https://download.opensuse.org/repositories/home:/jkt-gentoo:/trojita/xUbuntu_16.04/ /' > /etc/apt/sources.list.d/trojita.list" wget https://download.opensuse.org/repositories/home:jkt-gentoo:trojita/xUbu... Add solution -
Javascript 2021-08-28 06:44:02
node cluster
const cluster = require('cluster'); const http = require('http'); const numCPUs = require('os').cpus().length; if (cluster.isMaster) { console.log(`Master ${process.pid} is running`); // Fork workers. for (let i = 0; i < numCPUs; i++) { clu... Add solution -
Python 2021-08-28 05:43:02
python form enter data
import os import sys from collections import OrderedDict from PyPDF2 import PdfFileReader def _getFields(obj, tree=None, retval=None, fileobj=None): fieldAttributes = {'/FT': 'Field Type', '/Parent': 'Parent', '/T': 'Field Name', '/TU': 'Alterna... Add solution -
Javascript 2021-08-28 00:08:01
node.js express post query string
const express = require('express'); const bodyParser = require('body-parser'); const app = express(); app.use(bodyParser.urlencoded({ extended: true })); app.post('/post-test', (req, res) => { console.log('Got body:', req.body); res.sendStatu... Add solution -
Other 2021-08-27 22:40:01
fastify point-of-view
//BASIC TEMPLATE const fastify = require('fastify')() fastify.register(require('point-of-view'), { engine: { ejs: require('ejs') } }) fastify.get('/', (req, reply) => { reply.view('/templates/index.ejs', { text: 'text' }) }) // With async... Add solution -
Shell/Bash 2021-08-27 19:58:02
install brave browser on linux
sudo apt install apt-transport-https curl gnupg curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - echo "deb [arch=amd64] https://brave-browser-apt-r... Add solution -
Shell/Bash 2021-08-27 19:33:02
how to install podman in ubuntu
. /etc/os-release echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list curl -L https://download.opensuse.org/r... Add solution