Skip to content

Instantly share code, notes, and snippets.

@apoorv-2204
Last active March 9, 2022 16:00
Show Gist options
  • Save apoorv-2204/d38321823a3be9bea1f983b2a583a833 to your computer and use it in GitHub Desktop.
Save apoorv-2204/d38321823a3be9bea1f983b2a583a833 to your computer and use it in GitHub Desktop.
//usefull commands in archethic-node development

//usefull commands in archethic-node development

sudo mix clean & sudo mix format & sudo mix

https://docs.docker.com/compose/install/

https://docs.portainer.io/v/ce-2.9/start/install/server/docker/linux

:observer.start() cd assets/ && webpack --mode development && cd .. && make clean && iex -S mix

ArchEthic.OracleChain.get_uco_price( DateTime.utc_now)

docker build -t archethic-node . && docker-compose up

mix format & mix credo & mix dialyzer & mix compile & mix test

//first-time dev-set-up mix deps.get && cd assets/ && npm i

r trying out every solution I could find:

Turning off strict ssl: npm config set strict-ssl=false Changing the registry to http instead of https: npm config set registry http://registry.npmjs.org/ Changing my cafile setting: npm config set cafile /path/to/your/cert.pem Stop rejecting unknown CAs: set NODE_TLS_REJECT_UNAUTHORIZED=0

rename a commit : git commit --amend

//give prmissions in ubuntu chmod -R 0755 .

https://www.freecodecamp.org/news/how-to-fix-git-always-asking-for-user-credentials/

git config --local --edit git@github.com:username/repo.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment