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
| #creating as a function | |
| function MyFunc(props) { | |
| return ( | |
| <button className="square" onClick={props.onClick}> | |
| {props.value} | |
| </button> | |
| ); | |
| } | |
| export default MyFunc; |
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
| #installing | |
| npm i -g create-react-app | |
| #using | |
| create-react-app <projet-name> | |
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
| #list all global libs | |
| npm list -g |
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
| Telnet to your smtp server like | |
| telnet smtp.mydomain.com 25 | |
| Syntax : | |
| telnet {smtp_domain_name} {port_number} | |
| And copy and paste the below | |
| helo your_domain.com | |
| mail from:<test@your_domain.com> |
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
| #put a file availiable to everybody | |
| chmode 777 |
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
| package com.sicpa.gssd.clsii.server.dms.customization.feature; | |
| import java.lang.annotation.Annotation; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Method; | |
| import java.util.Arrays; | |
| import javax.inject.Named; | |
| import org.junit.Test; | |
| import com.sicpa.gssd.clsii.server.dms.customization.feature.das.manager.ClsiiDigitalActivationManagerImpl; |
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
| #listing locally | |
| npm ls | |
| #listing globally, only the first level | |
| npm ls -g --depth=0 |
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
| Basic concepts: | |
| -key-value store | |
| -NoSql | |
| -Values with expiration/ good for security | |
| Commands (=> indicates the return expected) | |
| SET server:name "fido" | |
| - store based into a key | |
| SETNX |
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
| curl url | |
| --proxy url:port | |
| --proxy-user username:"password" | |
| remarks | |
| a password with ! symbol , needs a scape like "\!" |
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
| curl http://localhost:3000/oauth/token | |
| -d "grant_type=password" | |
| -d "username=pedroetb" | |
| -d "password=password" | |
| -H "Authorization: Basic YXBwbGljYXRpb246c2VjcmV0" | |
| -H "Content-Type: application/x-www-form-urlencoded" | |
| remarks | |
| -H: defines a header | |
| -d: defines a form data |