Assuming username is blog
and target folder is /home/blog
Make sure user blog
is exists and necessary permissions for the target folder is already set.
sudo nano /etc/ssh/sshd_config.d/blog.conf
Script for making npm package versioning and releasing to npm easy
Taken from the following original (?) source (because idk a way to bookmark individual files in a repo) https://github.com/Tomekmularczyk/react-id-generator/blob/master/release.sh
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES |
version: "2" | |
services: | |
# https://hub.docker.com/r/linuxserver/plex | |
plex: | |
image: linuxserver/plex | |
container_name: plexpi | |
network_mode: host | |
environment: | |
- PUID=1000 |
System with OpenSSL installed
The *.pfx file is in PKCS#12 format and includes both the certificate and the private key. More information about the format could be found here
openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes
const {exec} = require('child_process'); | |
const moment = require('moment'); | |
run('git describe') | |
.then(parseDescribe) | |
.catch(showError); | |
function parseDescribe(desc) { | |
const [tag, numOfCommits, lastCommit] = desc.trim().split('-'); |
#!/usr/bin/env python2.7 | |
import sys, os | |
fileName = sys.argv[1] if len(sys.argv) > 1 else "default" | |
cwd = os.getcwd() | |
path = os.path.join(cwd, "{}.txt".format(fileName)) | |
print "File:" | |
print path |