Solution for RSA host key for <ip_address> has changed and you have requested strict checking:
ssh-keygen -R <server_name>
(or)
ssh-keygen -R
| import torch | |
| import numpy as np | |
| import torch.nn as nn | |
| from nfg.nfg_torch import * | |
| from nfg.nfg_api import NeuralFineGray | |
| class DeSurv(NeuralFineGray): |
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
Windows + xa (Selects PowerShell (Admin))cd ${HOME}\Downloads\fonts-master\fonts-master)Set-ExecutionPolicy Bypassy then Enter to accept| Process for setting up github pages with namecheap domain. | |
| 1. Go to namecheap.com, select and buy domain name. | |
| 2. Login to namecheap, go to username drop down and select dashboard. | |
| 3. Go to DomainList | |
| 4. Click manage button | |
| 5. Click Advanced DNS tab | |
| 6. Click add record and add three records: | |
| Type: A Record | Host: @ | Value: 192.30.252.153 | TTL: Automatic |
| import PyPDF2 | |
| from pathlib import Path | |
| root = Path(r"<path>") | |
| pdf_files = list(root.glob('*.pdf')) | |
| writer = PyPDF2.PdfFileWriter() | |
| for file in pdf_files: | |
| with open(file, mode='rb') as f: | |
| reader = PyPDF2.PdfFileReader(f) |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| package externalsorting | |
| import java.io.{BufferedOutputStream, File, FileOutputStream} | |
| import java.nio.ByteBuffer | |
| import java.nio.channels.FileChannel | |
| import java.nio.file.Paths | |
| import readInput._ | |
| import scala.annotation.tailrec |
| import java.io.IOException | |
| import java.net.InetSocketAddress | |
| import java.nio.ByteBuffer | |
| import java.nio.channels.{SelectionKey, Selector, ServerSocketChannel, SocketChannel} | |
| import java.util | |
| import com.typesafe.scalalogging.Logger | |
| import org.slf4j.LoggerFactory | |
| object ChannelSever { |