Skip to content

Instantly share code, notes, and snippets.

View AndrienkoAleksandr's full-sized avatar

Oleksandr Andriienko AndrienkoAleksandr

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBoss, Home of Professional Open Source
Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual
contributors by the @authors tag. See the copyright.txt in the
distribution for a full listing of individual contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<?xml version="1.0" encoding="UTF-8"?>
<cheatsheet title="Sample Cheat Sheet">
<intro>
<description>A cheat sheet which demonstrates the use of perform-when and conditional subitems</description>
</intro>
<item title="View Selection">
<description>Select a view which will be opened in the following steps.</description>
<command returns = "result"
serialization="org.eclipse.ui.dialogs.openMessageDialog(title=Select View,buttonLabel0=Package Explorer,message=Select a view ,buttonLabel1=Search View)"/>
<onCompletion> Selected the ${result}. </onCompletion>
{
"title": "Person",
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
@AndrienkoAleksandr
AndrienkoAleksandr / node-and-npm-in-30-seconds.sh
Created August 13, 2017 20:04 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
{
"title" : "Spring MVC",
"fragments" : [
{
"title" : "Creation new Spring MVC sample",
"text" : "To create simple Spring MVC project inside Eclipse CHE you can click \"Workspace\" -> \"Create Project...\" . When IDE open \"Create new Project\" wizard, select, please, \"web-java-spring\" from the list of the \"Samples\", type project name and click \"Ok\" button. IDE will create new Spring project for you and you will see it in the \"Project Explorer\" widget."
},
{
"title" : "Run Spring Application with help tomcat",
"text" : "To run Spring application you need build it. Eclipse CHE Spring project template based on maven build tool. IDE provides with project template list of commands <bold>to build<bold> and run this application. This command you can see in the bottom \"Comman widget\". So simple select little triangle under the run command button, and select from commands list \"$your_project_name: Build and run\". In the process panel you will see comman
{
"title": "Kitchen Sink",
"sections": [
{
"title": "Creation new project from sample",
"paragraphs": [
{
"text": "To create simple Kitchen sink project inside Eclipse CHE you can click \"Workspace\" -> \"Create Project...\" . When IDE open \"Create new Project\" wizard, select, please, \"Kitchen sink\" from the list of the \"Samples\", type project name and click \"Ok\" button. IDE will create new Spring project for you and you will see it in the \"Project Explorer\" widget."
},
{
{
"title": "Guide title",
"sections": [
{
"title": "Section #1 :: Simple",
"paragraphs": [
{
"text": "This paragraph contains no action but some text"
},
{
Try AsciiDoc
------------
There is _no reason_ to prefer http://daringfireball.net/projects/markdown/[Markdown]:
it has *all the features*
footnote:[See http://asciidoc.org/userguide.html[the user guide].]
and more!
Tasty styles
~~~~~~~~~~~~
A=$(date '+%s%3N'); sleep 2; B=$(date '+%s%3N');echo $B-$A | bc
head -100 /projects/PetClinic/output.txt |
while read a; do
echo $a;
done
echo DONE!