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
const server = {}; // ... | |
const cookieParser = require('cookie-parser'); | |
const jwt = require('jsonwebtoken'); | |
server.express.use(cookieParser()); | |
server.express.use((req, res, next) => { | |
const { token } = req.cookies; | |
if (token) { | |
const { userId } = jwt.verify(token, process.env.APP_JWT_SECRET); | |
req.userId = userId; |
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
egrep ".*word$" /usr/share/dict/words |
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
# First, set up ssh for Puhti | |
# Use ssh-copy-id to add your key | |
ssh-copy-id [email protected] | |
# This way, you don't have to type your password for every command | |
# Make a .txt file with one file name (relative) per line | |
# Copy this file to remote | |
scp ./download_list.txt [email protected]:. | |
# Log in |
OlderNewer