Skip to content

Instantly share code, notes, and snippets.

charlie@Charlies-MacBook-Pro-2 merchi.co % ./helpi create_test_data
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] Found orphan containers ([merchi-dev_proxy-1 merchi-frontend-1 merchi-websockets-1 merchi-backend-1 merchi-celery_beat-1 merchi-webpack-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Creating 4/0
✔ Container merchi-redis-1 Running 0.0s
✔ Container merchi-db-1 Running
charlie@Charlies-MacBook-Pro-2 merchi.co % ./helpi alembic_upgrade
./helpi: line 396: export: `+': not a valid identifier
./helpi: line 396: export: `+': not a valid identifier
./helpi: line 396: export: `/default_themes/gracecrm/default.css': not a valid identifier
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] The "ARCHITECTURE" variable is not set. Defaulting to a blank string.
WARN[0000] Found orphan containers ([merchi-dev_proxy-1 merchi-frontend-1 merchi-websockets-1 merchi-backend-1 merchi-celery_beat-1 merchi-webpack-1]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
@charlower
charlower / .learneth...All about Proxy Contracts...4_Generic_proxy_example...step4.sol
Created August 27, 2021 04:33
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.10+commit.00c0fcaf.js&optimize=false&runs=200&gist=
pragma solidity ^0.5.1;
contract ProxyContract {
address internal proxied;
function setLogicContractAddress (address newAddress) public
{
proxied = newAddress;
}
@charlower
charlower / HotelRoom.sol
Created August 26, 2021 11:16
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.10+commit.00c0fcaf.js&optimize=false&runs=200&gist=
pragma solidity ^0.6.0;
contract HotelRoom {
//vacant or occupied
enum Statuses {Vacant, Occupied}
Statuses currentStatus;
//events allow listeners to subscribe to changes on the blockchain
event Occupy(address _occupant, uint _value);
@charlower
charlower / MyContract.sol
Created August 22, 2021 06:22
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.10+commit.00c0fcaf.js&optimize=false&runs=200&gist=
pragma solidity ^0.6.0;
contract MyContract {
//Struct starts here
struct BookStruct {
string title;
uint pages;
}
// BookStruct public newStruct = BookStruct("My Book", 300);
@charlower
charlower / MyContract.sol
Created August 22, 2021 06:10
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.10+commit.00c0fcaf.js&optimize=false&runs=200&gist=
pragma solidity ^0.6.0;
contract MyContract {
//Struct starts here
struct BookStruct {
string title;
uint pages;
}
// BookStruct public newStruct = BookStruct("My Book", 300);