- Update
package.json, setversionto a prerelease version, e.g.2.0.0-rc1,3.1.5-rc4, ... - Run
npm packto create package - Run
npm publish <package>.tgz --tag nextto publish the package under thenexttag - Run
npm install --save package@nextto install prerelease package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: promote-dev-cool-package | |
| on: | |
| push: | |
| paths: | |
| - packages/cool-package/** | |
| branches-ignore: | |
| - master | |
| - refs/tags/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Private key | |
| openssl genpkey -algorithm RSA -out private.pem -pkeyopt rsa_keygen_bits:2048 | |
| # Public key | |
| openssl rsa -pubout -in private.pem -out public_key.pem | |
| # Private key in pkcs8 format (for Java maybe :D) | |
| openssl pkcs8 -topk8 -in private.pem -out private_key.pem | |
| ## nocrypt (Private key does have no password) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Source: | |
| # https://gist.github.com/ericharth/8334664 | |
| # | |
| # Thanks: | |
| # https://github.com/anderssonjohan | |
| # | |
| # Usage: | |
| # ./createcertfilesfrompfx.sh /path/to/domain.pfx | |
| # |
This process requires that you are able to ssh OR log in locally using the root user account and that no services be running as users out of /home on the target machine.
The examples are from a default installation with no customization-you NEED to know what you're working with for volumes/partitions to not horribly break things.
By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and swap.
NOTE: If you want to be sure that nothing is writing to /home you can either modify the host to boot into single-user mode OR try to use the
systemctl isolate runlevel1.target command to switch (not tested! should work).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Django SECRET_KEY generator. | |
| """ | |
| from django.utils.crypto import get_random_string | |
| chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)' | |
| print(get_random_string(50, chars)) |