Skip to content

Instantly share code, notes, and snippets.

View m-root's full-sized avatar
💭
I may be slow to respond.

m-root

💭
I may be slow to respond.
View GitHub Profile
@m-root
m-root / access_from_web.md
Created March 18, 2018 09:03 — forked from jasperf/access_from_web.md
MySQL Commands to create users, database, password and grant necessary privileges from the command line
mysql> CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'localhost' WITH GRANT OPTION;
mysql> CREATE USER 'user_name'@'%' IDENTIFIED BY 'password';

mysql> GRANT ALL PRIVILEGES ON database_name.* TO 'user_name'@'%' WITH GRANT OPTION;

@m-root
m-root / High-Stakes.sol
Created October 24, 2021 19:40 — forked from gorgos/High-Stakes Roulette Example
Example for a contract for playing high-stakes Roulette on the blockchain
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract BankOwned {
address public bankAddress;
constructor() {
bankAddress = msg.sender;
}