What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-27 22:40:01
fastify point-of-view
//BASIC TEMPLATE const fastify = require('fastify')() fastify.register(require('point-of-view'), { engine: { ejs: require('ejs') } }) fastify.get('/', (req, reply) => { reply.view('/templates/index.ejs', { text: 'text' }) }) // With async... Add solution -
Shell/Bash 2021-08-27 00:19:02
fsl reg
#!/bin/sh # Use nonlinear registration tools # to register from native space to standard space. # 1) First run FSL linear registration (flirt). # to produce an affine transform matrix (*.mat) # of the T1w image to MNI space. flirt -ref MNI152_T1_1mm... Add solution -
Shell/Bash 2021-08-26 11:56:02
ansible store shell return code
- hosts: localhost gather_facts: no #strategy: debug tasks: - name: run this command and ignore the result shell: ping -c 1 8.8.8.8 &n... Add solution -
Shell/Bash 2021-08-26 11:00:03
set pin on mcp23017 using raspberry pi shell
# for original rev1 Pi sudo i2cset -y 0 0x20 0x00 0xff sudo i2cset -y 0 0x20 0x14 0x01 # address register value # for rev2 Pi or later sudo i2cset -y 1 0x20 0x00 0xff sudo i2cset -y 1 0x20 0x14 0x01 # address register value Add solution
Best helpers
Ranking is empty