Create and initialize your a directory for your Express application.
$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
# This is how you add a Jenkins slave | |
# On master: | |
sudo -u jenkins -H ssh-keygen | |
# On slave | |
adduser --system --group --home=/var/lib/jenkins-slave --no-create-home --disabled-password --quiet --shell /bin/bash jenkins-slave | |
install -d -o jenkins-slave -g jenkins-slave /var/lib/jenkins-slave |
$ cat /etc/systemd/system/jenkins.service | |
[Unit] | |
Description=Jenkins - open source automation server | |
Before=multi-user.target | |
After=network-online.target | |
[Service] | |
ExecStart=/etc/init.d/jenkins start | |
ExecStop=/etc/init.d/jenkins stop | |
CapabilityBoundingSet=~CAP_SYS_PTRACE |
import java.awt.EventQueue; | |
import java.io.*; | |
import java.math.BigInteger; | |
import java.util.ArrayList; | |
import java.util.Random; | |
import java.util.Scanner; | |
/** | |
* Quick and dirty implementation of the RSA algorithm |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
These are the steps required to use the CoralPay JAVA PGP Library.
The library's binaries can be downloaded from here: CoralPay JAVA PGP Library Link .
To build the library, run .\gradlew.bat build --refresh-dependencies
This should build the library file into a .jar
in the \build\libs
directory.
Copy the library out of the directory to the target project that needs to use the libary
and follow the steps below to add the required dependecies to use with the library for that target project.
mv jenkins.war jenkins.war.old
sudo wget http://updates.jenkins-ci.org/stable-2.32/latest/jenkins.war
sudo service jenkins restart
Some Time there is a shallow update not allowed issue in your cloned GIT repo.
This means that you have to unshallow your repository. To do so you will need to add your old remote again.
git remote add origin <path-to-old-remote>
After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).
git fetch --unshallow origin
And now you should be able to push into your new remote repository.
#!/usr/bin/env bash | |
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
# Make sure that the .gnupg directory and its contents is accessibile by your user. | |
chown -R $(whoami) ~/.gnupg/ | |
# Also correct the permissions and access rights on the directory | |
chmod 600 ~/.gnupg/* | |
chmod 700 ~/.gnupg |
import logging | |
from sys import stdout | |
# Define logger | |
logger = logging.getLogger('mylogger') | |
logger.setLevel(logging.DEBUG) # set logger level | |
logFormatter = logging.Formatter\ | |
("%(name)-12s %(asctime)s %(levelname)-8s %(filename)s:%(funcName)s %(message)s") | |
consoleHandler = logging.StreamHandler(stdout) #set streamhandler to stdout |