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
| https://www.imaginarycloud.com/blog/best-frontend-frameworks/ | |
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
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java8-installer | |
| # sudo update-java-alternatives --jre --set <java8name> // if dealing with multiple java versions | |
| wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add - | |
| echo 'deb http://debian.neo4j.org/repo stable/' | sudo tee -a /etc/apt/sources.list.d/neo4j.list | |
| sudo apt-get update | |
| sudo apt-get install neo4j=3.2.0 | |
| sudo vi /etc/security/limits.conf | |
| # neo4j soft nofile 40000 |
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
| sudo yum update -y | |
| sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org//redhat/jenkins.repo | |
| sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key | |
| sudo yum install jenkins -y | |
| sudo service jenkins start | |
| sudo cat /var/lib/jenkins/secrets/initialAdminPassword | |
| # To change the jenkins user, open the /etc/sysconfig/jenkins (in debian this file is created in /etc/default) | |
| # and change the JENKINS_USER to whatever you want. Make sure that user exists in the system (you can check the |
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
| # ubuntu 16.04 | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| sudo apt-get update | |
| apt-cache policy docker-ce | |
| sudo apt-get install -y docker-ce | |
| sudo systemctl status docker | |
| sudo usermod -aG docker ${USER} | |
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
| http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html | |
| [ec2-user ~]$ lsblk | |
| NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |
| xvdf 202:80 0 100G 0 disk | |
| xvda1 202:1 0 8G 0 disk / | |
| [ec2-user ~]$ sudo file -s /dev/xvdf | |
| /dev/xvdf: data |
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/sh | |
| # If commit message doesn't contain LSP or TKP Jira ticket tag and number, commit must fail | |
| if ! [[ -n "$(cat $1 | egrep "^(((LTKP|LSP|TKP)\-\d{2,4}($|\s|\n))|(Merge branch)|(\d+\.\d+\.\d+))")" ]]; then | |
| echo "Insert Jira ticket tag and number in commit message" | |
| echo "\n" | |
| echo "COMMIT FAILED" | |
| echo "\n" | |
| exit 1 | |
| else | |
| echo "\n" |
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
| 'use strict'; | |
| var instance = {}; | |
| var constructor = function constructor(options) { | |
| instance.options = options || {}; | |
| return instance; | |
| }; |
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/sh | |
| export PATH=/usr/local/bin:$PATH | |
| files=$(git diff --cached --name-only --diff-filter=ACM | grep ".js$") | |
| pass=true | |
| passTest=true | |
| if [ "$files" = "" ]; then | |
| exit 0 | |
| fi |
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
Show hidden characters
| { | |
| "node": true, | |
| "mocha": true, | |
| "jasmine": true, | |
| "browser": true, | |
| "esnext": false, | |
| "bitwise": false, | |
| "curly": false, | |
| "eqeqeq": true, | |
| "latedef": "nofunc", |
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
| { | |
| "disallowArrowFunctions" : true, | |
| "disallowEmptyBlocks": true, | |
| "disallowFunctionDeclarations": true, | |
| "disallowIdentifierNames": [], | |
| "disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"], //maybe | |
| "disallowKeywordsOnNewLine": ["else", "while"], | |
| "disallowKeywords": [], | |
| "disallowMixedSpacesAndTabs": true, | |
| "disallowMultipleLineBreaks": true, |
NewerOlder