$ uname -r
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
| B A S H C H E A T S H E E T | |
| to page output forward (only): command filename | more | |
| to page output forward & back: command filename | less | |
| to print a dataset: lp datasetname (-d printerid) (-o landscape) | |
| USE OF QUOTATION MARKS | |
| echo "$varname" = echo The value of \$varname is \"$varname\" | |
| = echo "The value of \$varname is \"$varname\"." | |
| $fred='Four spaces between these words.' |
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
| echo '[Unit] | |
| Description=High-performance, schema-free document-oriented database | |
| After=syslog.target network.target | |
| [Service] | |
| User=mongodb | |
| Group=mongodb | |
| ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
| [Install] |
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
| Choose archetype: | |
| 1: remote -> br.gov.frameworkdemoiselle.archetypes:demoiselle-jsf-jpa (Archetype for web applications (JSF + JPA) using Demoiselle Framework) | |
| 2: remote -> br.gov.frameworkdemoiselle.archetypes:demoiselle-minimal (Basic archetype for generic applications using Demoiselle Framework) | |
| 3: remote -> co.ntier:spring-mvc-archetype (An extremely simple Spring MVC archetype, configured with NO XML.) | |
| 4: remote -> com.agilejava.docbkx:docbkx-quickstart-archetype (-) | |
| 5: remote -> com.alibaba.citrus.sample:archetype-webx-quickstart (-) | |
| 6: remote -> com.bsb.common.vaadin:com.bsb.common.vaadin.embed-simple-archetype (-) | |
| 7: remote -> com.bsb.common.vaadin:com.bsb.common.vaadin7.embed-simple-archetype (-) | |
| 8: remote -> com.cedarsoft.open.archetype:multi (-) | |
| 9: remote -> com.cedarsoft.open.archetype:simple (-) |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>group</groupId> | |
| <artifactId>dummy</artifactId> | |
| <name>Dummy Project</name> | |
| <version>1.0.12</version> | |
| <packaging>pom</packaging> | |
| <scm> | |
| <connection>scm:git:https://......</connection> | |
| <tag>HEAD</tag> |
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 | |
| IDEA=`tar -tzf $1 | head -1 | cut -f1 -d"/"` | |
| sudo tar -xf $1 -C /opt/ | |
| sudo chown $(whoami):$(whoami) /opt/$IDEA -R | |
| sudo rm /opt/idea-IU | |
| sudo ln -s /opt/$IDEA /opt/idea-IU | |
| sudo chown $(whoami):$(whoami) /opt/idea-IU |
This approach uses update-alternatives to manage GCC and LLVM/CLANG C/C++ compiler toolchains.
Although tested on Linux Mint 18.3, this approach should work on any Debian based distro or for that matter any Linux distro with update-alternatives support, provided the packages are installed correctly.
There are 3 files
gcc-alternatives.shinstalls GCC versions 5/6/7 and sets up alternatives forgcc/g++/cpp/gfortran.llvm-clang-alternatives.shinstalls LLVM and CLANG versions 4/5 and sets up alternatives for various LLVM and CLANG programs includingclangandclang++.cc-alternatives.shsets up alternatives for thecc,cxx, and theldcommands. This script can be used to change systemwide default compiler/linker combination to either GCC or CLANG.
Once these scripts are run you can change the system GCC/CLANG versions by running sudo update-alternatives --config gcc|clang. To change the default compiler/linker combo used by t
Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
| Key Binding | Description |
|---|---|
| SPC | < space > |
| RET | < return > |
| C | < ctrl > |
| M | < alt >, M stands for Meta |
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-package lsp-haskell | |
| :config | |
| (setq lsp-haskell-process-path-hie "haskell-language-server-wrapper") | |
| ;; xref backends don't compose. This creates one that first consults the | |
| ;; xref-lsp backend for the latest information from the language server, | |
| ;; and then falls through to etags for library definitions. | |
| (defun my/xref-lsp-etags-backend () 'my/lsp-etags) | |
| (cl-defmethod xref-backend-identifier-at-point ((_backend (eql my/lsp-etags))) | |
| (xref-backend-identifier-at-point 'xref-lsp)) |