Last active
September 20, 2018 13:52
-
-
Save da-moon/03e6f11574a9b7cddc012ba608cb2216 to your computer and use it in GitHub Desktop.
some config files
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
https://github.com/nodejs/node-gyp/blob/master/README.md | |
https://www.theia-ide.org/doc/Composing_Applications.html |
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
https://www.ait.com/tech-corner/11488-how-to-setup-nginxnbspon-a-vpsnbsp |
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
#https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04 | |
if [ "$EUID" -ne 0 ] | |
then | |
echo -e "This script requires admin privilledges." | |
sudo "$0" "$@" | |
exit $? | |
else | |
echo -e "Running with admin privilledges." | |
fi | |
echo -e "\n" | |
NODE_VERSION=8.12.0 | |
YARN_VERSION=1.9.4 | |
fallocate -l 2G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
cp /etc/fstab /etc/fstab.bak | |
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab | |
sysctl vm.swappiness=10 | |
echo 'vm.swappiness=10' >> /etc/sysctl.conf | |
sysctl vm.vfs_cache_pressure=50 | |
echo 'vm.vfs_cache_pressure=50' >> /etc/sysctl.conf | |
mkdir -p ./theia | |
chown root ./theia | |
touch ./theia/package.json | |
chown root ./theia/package.json | |
cat > ./theia/package.json << EOF | |
{ | |
"private": true, | |
"dependencies": { | |
"typescript": "latest", | |
"@theia/callhierarchy": "next", | |
"@theia/core": "next", | |
"@theia/cpp": "next", | |
"@theia/docker": "next", | |
"@theia/editor": "next", | |
"@theia/editorconfig": "next", | |
"@theia/extension-manager": "next", | |
"@theia/file-search": "next", | |
"@theia/filesystem": "next", | |
"@theia/git": "next", | |
"@theia/go": "next", | |
"@theia/java": "next", | |
"@theia/json": "next", | |
"@theia/keymaps": "next", | |
"@theia/languages": "next", | |
"@theia/markers": "next", | |
"@theia/merge-conflicts": "next", | |
"@theia/messages": "next", | |
"@theia/metrics": "next", | |
"@theia/mini-browser": "next", | |
"@theia/monaco": "next", | |
"@theia/navigator": "next", | |
"@theia/outline-view": "next", | |
"@theia/php": "next", | |
"@theia/output": "next", | |
"@theia/plantuml": "next", | |
"@theia/preferences": "next", | |
"@theia/preview": "next", | |
"@theia/process": "next", | |
"@theia/python": "next", | |
"@theia/ruby": "next", | |
"@theia/rust": "next", | |
"@theia/search-in-workspace": "next", | |
"@theia/task": "next", | |
"@theia/terminal": "next", | |
"@theia/textmate-grammars": "next", | |
"@theia/tslint": "next", | |
"@theia/typescript": "next", | |
"@theia/userstorage": "next", | |
"@theia/variable-resolver": "next", | |
"@theia/workspace": "next", | |
"theia-yang-extension": "next" | |
}, | |
"devDependencies": { | |
"@theia/cli": "next" | |
} | |
} | |
EOF | |
sudo apt-get update && apt-get -y install curl xz-utils | |
set -ex \ | |
&& for key in \ | |
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ | |
FD3A5288F042B6850C66B31F09FE44734EB7990E \ | |
71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ | |
DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ | |
C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ | |
B9AE9905FFD7803F25714661B63B535A4C206CA9 \ | |
56730D5401028683275BD23C23EFEFE93C4CFFFE \ | |
77984A986EBC2AA786BC0F66B01FBB92821C587A \ | |
; do \ | |
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ | |
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ | |
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \ | |
done | |
ARCH= && dpkgArch="$(dpkg --print-architecture)" \ | |
&& case "${dpkgArch##*-}" in \ | |
amd64) ARCH='x64';; \ | |
ppc64el) ARCH='ppc64le';; \ | |
s390x) ARCH='s390x';; \ | |
arm64) ARCH='arm64';; \ | |
armhf) ARCH='armv7l';; \ | |
i386) ARCH='x86';; \ | |
*) echo "unsupported architecture"; exit 1 ;; \ | |
esac \ | |
&& curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" \ | |
&& curl -SLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" \ | |
&& gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc \ | |
&& grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - \ | |
&& tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \ | |
&& rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt \ | |
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs | |
set -ex \ | |
&& for key in \ | |
6A010C5166006599AA17F08146C2130DFD2497F5 \ | |
; do \ | |
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ | |
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \ | |
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \ | |
done \ | |
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ | |
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \ | |
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \ | |
&& mkdir -p /opt/yarn \ | |
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \ | |
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ | |
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \ | |
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz | |
sudo apt-get -y install git | |
sudo apt-get update && apt-get install -y git golang-go | |
echo 'export GOPATH=$HOME/go' >> ~/.bash_profile | |
source ~/.zshrc | |
go get -u -v github.com/ramya-rao-a/go-outline | |
go get -u -v github.com/acroca/go-symbols | |
go get -u -v github.com/rogpeppe/godef | |
go get -u -v golang.org/x/tools/cmd/godoc | |
go get -u -v github.com/zmb3/gogetdoc | |
go get -u -v github.com/golang/lint/golint | |
go get -u -v github.com/fatih/gomodifytags | |
go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs | |
go get -u -v golang.org/x/tools/cmd/gorename | |
go get -u -v sourcegraph.com/sqs/goreturns | |
go get -u -v github.com/cweill/gotests/... | |
go get -u -v golang.org/x/tools/cmd/guru | |
go get -u -v github.com/josharian/impl | |
go get -u -v github.com/haya14busa/goplay/cmd/goplay | |
go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | |
sudo apt-get update && sudo apt-get -y install software-properties-common | |
sudo add-apt-repository -y ppa:webupd8team/java \ | |
&& sudo apt-get update \ | |
&& sudo apt-get install -y oracle-java8-installer | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - | |
echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main" > /etc/apt/sources.list.d/llvm.list | |
sudo apt-get update && sudo apt-get install -y clang-tools-8 | |
ln -s /usr/bin/clangd-8 /usr/bin/clangd | |
sudo apt-get update && sudo apt-get install -y python python-pip && \ | |
pip install python-language-server; | |
sudo apt-get -y install php curl php-cli php-mbstring unzip | |
curl -s -o composer-setup.php https://getcomposer.org/installer \ | |
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | |
&& rm composer-setup.php | |
sudo apt-get -y install ruby ruby-dev zlib1g-dev | |
gem install solargraph | |
sudo apt-get update && sudo apt-get install -y python build-essential | |
yarn |
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
{ | |
"private": true, | |
"dependencies": { | |
"typescript": "latest", | |
"@theia/typescript": "next", | |
"@theia/navigator": "next", | |
"@theia/terminal": "next", | |
"@theia/outline-view": "next", | |
"@theia/preferences": "next", | |
"@theia/messages": "next", | |
"@theia/git": "next", | |
"@theia/file-search": "next", | |
"@theia/markers": "next", | |
"@theia/preview": "next", | |
"@theia/callhierarchy": "next", | |
"@theia/merge-conflicts": "next", | |
"@theia/search-in-workspace": "next", | |
"@theia/json": "next", | |
"@theia/textmate-grammars": "next", | |
"@theia/mini-browser": "next" | |
}, | |
"devDependencies": { | |
"@theia/cli": "next", | |
"font-awesome-webpack":"^0.0.5-beta.2", | |
"font-awesome":"^4.3.0" | |
} | |
} |
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
https://ethereum.stackexchange.com/questions/17551/how-to-upgrade-solidity-compiler-in-truffle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment