Skip to content

Instantly share code, notes, and snippets.

View bitoiu's full-sized avatar

Vitor Monteiro bitoiu

View GitHub Profile
@bitoiu
bitoiu / keybase.md
Created July 5, 2017 13:00
keybase.md

Keybase proof

I hereby claim:

  • I am bitoiu on github.
  • I am bitoiu (https://keybase.io/bitoiu) on keybase.
  • I have a public key whose fingerprint is 9B63 F4AB FA86 00C7 7D75 B64E 14A8 1C60 DE06 F469

To claim this, I am signing this object:

@bitoiu
bitoiu / electron-prerequisites.md
Created September 7, 2017 12:23 — forked from hollenberry/electron-prerequisites.md
Electron Workshop Prerequisites

Prerequisites

  • Install Git
  • Get familiar with Git commands
  • Install a text editor
  • Install Node.js

Install Git

macOS

@bitoiu
bitoiu / test_webhookwithlambaproxy.json
Last active October 24, 2017 10:42
Webhook Processing (API Gateway + Lambda + DynamoDB + GH Pages)
{
"resource":"/webhook",
"path":"/webhook",
"httpMethod":"POST",
"headers":
{
"X-GitHub-Delivery":"1230123",
"X-GitHub-Event":"member",
"User-Agent":"bitoiu"
}
@bitoiu
bitoiu / Wallet.sol
Created January 25, 2018 14:41 — forked from anonymous/Wallet.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.19+commit.c4cbbb05.js&optimize=false&gist=
contract Wallet {
address owner;
address approver;
unit amountToWithdrawal;
function Wallet(address app) {
owner = msg.sender;
approver = app;
}
@bitoiu
bitoiu / MyToken.sol
Created January 25, 2018 15:47 — forked from anonymous/MyToken.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.19+commit.c4cbbb05.js&optimize=false&gist=
//contract FixedSupplyToken is ERC20Interface, Owned {
//https://ethernaut.zeppelin.solutions/
contract MyToken {
uint totalTokens;
uint tokenCost;
mapping(address => uint) reserve;
mapping(address => uint) balances;
mapping(address => Account) accounts;
@bitoiu
bitoiu / docker-compose.yml
Last active March 27, 2025 14:00
Graylog docker-compose for Synology DSM 7 deployment
# My article on this:
# I use PUID and PGID as environments variables, but I removed it from this snipped
# Change the passwords especially if this is externally exposed
# TIP: It takes a while for the graylog interface to come up, so check for errors and be patient
version: "3.7"
services:
mongo:
container_name: mongo
image: mongo:4.4.18