This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency, | |
| # accountability and the service delivery of the government organizations. | |
| # | |
| # Copyright (C) 2017 eGovernments Foundation | |
| # | |
| # The updated version of eGov suite of products as by eGovernments Foundation | |
| # is available at http://www.egovernments.org | |
| # | |
| # This program is free software: you can redistribute it and/or modify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # general | |
| set -g base-index 1 | |
| set -g pane-base-index 1 | |
| set -g renumber-windows on | |
| set -g repeat-time 200 | |
| setw -g mode-keys emacs | |
| # set -g mouse on | |
| set -g default-terminal "screen-256color-bce" | |
| set -g escape-time 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Debjyoti's Config begins | |
| set nocompatible " be iMproved, required | |
| syntax on | |
| " Specify a directory for plugins | |
| " - For Neovim: ~/.local/share/nvim/plugged | |
| " - Avoid using standard Vim directory names like 'plugin' | |
| call plug#begin('~/.vim/plugged') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| NODE_IPS="10.22.150.89 10.22.150.151 10.22.150.252 10.22.150.111 10.22.150.154" | |
| # Need the blockchain-key.pem in $HOME/.ssh dir as vara.pem | |
| # or modify it location in the next line | |
| IDENTITY_FILE=~/.ssh/vara.pem | |
| counter=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Common fetchAPI which can handle GET and POST method | |
| * Content-Type is set to 'application/json' | |
| * payload should be in JSON format | |
| */ | |
| export async function fetchAPI(url, data, method = 'POST') { | |
| // raise an error if url is missig | |
| if (!url) { | |
| throw new Error('url is missing'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| docker container stop $(docker container ls --all | awk 'NR>1 && !($NF ~ /minio/) {print $NF}') | |
| docker container ls --all | awk 'NR>1 && !($NF ~ /minio/) {print $NF}' | xargs docker container rm | |
| docker volume prune --force | |
| # remove the chaincode images | |
| docker image rm $(docker images | awk 'NR>1 && $1 ~ /dev-peer/ {print $1}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Create a tmux session each session | |
| tmux new -d -s kyc | |
| # Don't create tunnel if ip is 10.22.150.89 | |
| # Find the ip address | |
| h=$(hostname) | |
| h=${h:3:${#h}} | |
| myip=${h//-/.} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [user] | |
| name = <Your Name> | |
| email = <Your Email> | |
| [alias] | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
| ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
| lnc = log --pretty=format:"%h\\ %s\\ [%cn]" | |
| lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This spits out sample data for UI and other testing parpose | |
| // const chalk = require('chalk') | |
| const Promise = require('bluebird') | |
| const router = require('express').Router() | |
| const { getConnection } = require('../database/connection') | |
| const _ = require('lodash') | |
| const getMetaData = () => { | |
| return Promise.using(getConnection(), conn => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # general | |
| set -g base-index 1 | |
| set -g pane-base-index 1 | |
| set -g renumber-windows on | |
| set -g repeat-time 200 | |
| setw -g mode-keys emacs | |
| set -g mouse on | |
| set -g default-terminal "screen-256color-bce" |
NewerOlder