This file contains 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
source.sh | |
This file contains 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
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
if [[ $(uname) != "Darwin" ]]; then | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' |
This file contains 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
source ~/.bashrc | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
export PATH=$PATH:. | |
# export PATH=$PATH:/usr/bin | |
export PATH=$PATH:/opt/metasploit-framework/bin | |
export PATH=$PATH:/usr/local/sbin | |
#export WINEARCH=win32 |
This file contains 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
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
This file contains 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
const pgLocalConfig = { | |
pgUser: '', | |
pgDatabase: '', | |
pgPassword: '', | |
pgHost: 'localhost', | |
pgPort: 5432, | |
pgMaxPoolClients: 10, | |
pgTimeoutMilli: 5000 | |
}; |
This file contains 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
const msLocalConfig = { | |
msHost: '', | |
msDb: '', | |
msUser: '', | |
msPassword: '', | |
msPort: 1433, | |
msTimeoutMilli: 20000, | |
msMaxPoolClients: 10, | |
msPoolTimeoutMilli: 30000 | |
}; |
This file contains 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
const mgConfig = { | |
mgHost: 'localhost', | |
mgPort: 27017, | |
mgDb: '' | |
}; | |
const mgLocalConfig = `mongodb://${mgConfig.mgHost}:${mgConfig.mgPort}/${mgConfig.mgDb}`; | |
export default mgLocalConfig; |
This file contains 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
import React, { Component } from 'react'; | |
import EsriLoader from 'esri-loader-react'; | |
import { Map } from 'react-arcgis'; | |
class EsriMapComponent extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
loaded: false |
This file contains 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
import gql from 'graphql-tag'; | |
import { Query } from 'react-apollo'; | |
const query = gql` | |
query SomeQuery { | |
foo { | |
bar | |
baz | |
} | |
} |
This file contains 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
if (Meteor.isDevelopment) { | |
checkProps = (propTypes, props) => { | |
let matchPropTypes = Object.keys(propTypes).every((a, index) => a === Object.keys(props)[index]) | |
if (!matchPropTypes) { | |
console.info(`[!] propTypes do not match props`, `[propTypes]`, Object.keys(propTypes), `[props]`, Object.keys(props)) | |
} | |
}; | |
} else { | |
checkProps = (propTypes, props) => {}; |
OlderNewer