Skip to content

Instantly share code, notes, and snippets.

View oguduvictor's full-sized avatar

Victor Ogudu oguduvictor

  • Lagos, Nigeria
View GitHub Profile
@oguduvictor
oguduvictor / multiple_ssh_setting.md
Created January 21, 2022 12:28 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@oguduvictor
oguduvictor / DappToken.sol
Created January 16, 2022 19:16 — forked from gwmccubbin/DappToken.sol
DApp ERC-20 Token
pragma solidity ^0.5.0;
contract Token {
string public name = "DApp Token";
string public symbol = "DAPP";
uint256 public totalSupply = 1000000000000000000000000; // 1 million tokens
uint8 public decimals = 18;
event Transfer(
address indexed _from,
@oguduvictor
oguduvictor / Vagrant_elasticsearch_kibana.md
Created June 28, 2021 08:00 — forked from hideojoho/Vagrant_elasticsearch_kibana.md
How to set up a virtual machine with Elasticsearch and Kibana using Vagrant. See https://gist.github.com/hideojoho/a7f8fa864a250380b0e78c5fcbc4d52e for 2019 version.

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 1GB of diskspace
  • 1-2 hours of time (depends on your network speed)

Environments

  • MacOSX 10.11.6
  • VirtualBox 5.1.10
  • Vagrant 1.8.7
@oguduvictor
oguduvictor / Vagrant_elasticsearch_kibana_2019.md
Created June 26, 2021 16:59 — forked from hideojoho/Vagrant_elasticsearch_kibana_2019.md
How to set up a virtual machine with Elasticsearch and Kibana using Vagrant (2019)

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 1GB of diskspace
  • 1-2 hours of time (depends on your network speed)

Environments

  • MacOSX 10.14.2
  • VirtualBox 6.0.2
  • Vagrant 2.2.3
@oguduvictor
oguduvictor / docker-compose.yml
Created March 17, 2021 12:59 — forked from axw/docker-compose.yml
Docker Compose with Elastic Stack and APM Server 6.5.0
version: "2.1"
services:
apm-server:
image: docker.elastic.co/apm/apm-server:${STACK_VERSION:-6.5.0}
ports:
- "127.0.0.1:${APM_SERVER_PORT:-8200}:8200"
- "127.0.0.1:${APM_SERVER_MONITOR_PORT:-6060}:6060"
command: >
apm-server -e
-E apm-server.rum.enabled=true
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
@oguduvictor
oguduvictor / Dijkstra.java
Created August 2, 2016 22:09 — forked from gennad/Dijkstra.java
Dijkstra algorithm java implementation
import java.util.*;
public class Dijkstra {
// assumes Nodes are numbered 0, 1, ... n and that the source Node is 0
ArrayList<Node> findShortestPath(Node[] nodes, Edge[] edges, Node target) {
int[][] Weight = initializeWeight(nodes, edges);
int[] D = new int[nodes.length];
Node[] P = new Node[nodes.length];
ArrayList<Node> C = new ArrayList<Node>();