Steps to deploy Node.js to VPS using PM2 and Github Actions
Discover gists
This file contains 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
# https://stackoverflow.com/a/77768997/227260 | |
CONDA_DIR="$HOME/anaconda3" | |
CONDA_DIR_BAK="${CONDA_DIR}_bak" | |
# Miniconda: https://docs.anaconda.com/free/miniconda/miniconda-other-installer-links/ | |
# Anaconda: https://repo.anaconda.com/archive/ | |
CONDA_INSTALL_SHELL="https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh" | |
# Check if backup directory exists and move if it does not |
This file contains 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
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
Cryptographic hash functions can be used for verifying file integrity. To check that the file has not been altered during transfer over the network.
Let's say we have the following file named data.txt
with the following content:
Hello world
The openssl dgst
command can be used to perform various digest operations.To generate a hash of the file data.txt
using SHA-256, run the following command:
This file contains 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
function main { | |
Update-Windows-Configuration | |
Install-Utils | |
Install-Browsers | |
Install-Fonts |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
This file contains 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
""" | |
A script to set the default instance of a variable font’s wght axis to 400 (Regular). | |
From https://gist.github.com/arrowtype/9fefe9633cae500bbaf0000230f6a3ed | |
This can perhaps be more intuitive to designers who expect "Regular" to be the default weight of a variable font, | |
or for web developers who don’t set a weight range in their @font-face webfont setup. | |
This could be easily adapted to set defaults along other axes. It simply uses the FontTools Instancer module. |
NewerOlder