Skip to content

Instantly share code, notes, and snippets.

View minimal.Rmd
---
title: "Basic RMarkdown Shiny"
author: "Chris Beeley"
output: html_document
runtime: shiny
---
# Example RMarkdown document
This is an interactive document written in *markdown*. As you can see it is easy to include:
@Inkimar
Inkimar / gist:294cb6114a5868fd4ff2d8180213a662
Created Jul 27, 2020
copy table with all content, database
View gist:294cb6114a5868fd4ff2d8180213a662
create table redlist_tmp select * from redlist_2015;
@Inkimar
Inkimar / gist:8c0030d446819d06c6df0445bc395c84
Created Jul 5, 2020
nrm, naturforskaren, 2020, troubleshoot eclipselink
View gist:8c0030d446819d06c6df0445bc395c84
// @Override
// public List<T> findAllByStoredProcedure(String storedProcedureName, Map map) {
//
// Long taxonPageId = (Long) map.get("taxonpageId");
//
// String nativeSQL = "select distinct c1.id from content_item c1"
// + " inner join("
// + " SELECT MAX(c.version) as version, c.content_category_id, c.taxonpage_id FROM Content_Item c where c.taxonpage_id = " + taxonPageId + " Group by c.content_category_id"
// + " ) as c2"
View gist:fefe60023902f1d6a8dbf37b280b6ae9
/home/admin/wildfly-8.1.0-0/apache2/conf/bitnami/bitnami.conf
<VirtualHost _default_:8080>
DocumentRoot "/home/admin/wildfly-8.1.0-0/apache2/htdocs"
<Directory "/home/admin/wildfly-8.1.0-0/apache2/htdocs">
# Bitnami applications installed with a prefix URL (default)
Include "/home/admin/wildfly-8.1.0-0/apache2/conf/bitnami/bitnami-apps-prefix.conf"
@Inkimar
Inkimar / gist:255dd891362d339184a43ba9dc227cb2
Created Jun 26, 2020
naturforskaren, maintenance, docker, makefile, Makefie
View gist:255dd891362d339184a43ba9dc227cb2
dina@naturalist:~/repos/beta-naturforskaren$ docker exec betanaturalist sh -c "rm /tmp/naturalist.war"
dina@naturalist:~/repos/beta-naturforskaren$ docker exec betanaturalist sh -c "ls /tmp"
login-naturalist:
docker exec -it betanaturalist bash
naturalist-copy:
docker cp ../artifact/naturalist.war betanaturalist:/tmp
View gist:8b304d12d10fb91ea30bbb894efa9bb7
version: '3.7'
services:
naturalist:
image: inkimar/naturalist:0.3.2
container_name: betanaturalist
restart: always
environment:
- VIRTUAL_HOST=beta.naturforskaren.se
@Inkimar
Inkimar / gist:f9d5e090c0d19a444b0a68ff7fc2a7bd
Created Jun 26, 2020
wildfly, deploy with wildfly, jboss-cli , nrm
View gist:f9d5e090c0d19a444b0a68ff7fc2a7bd
Resource:
https://planet.jboss.org/post/deploy_to_wildfly_using_jboss_cli_tech_tip_11
bin/jboss-cli.sh --connect --command="deploy target/javaee7-1.0-SNAPSHOT.war --force"
My Effort:
I want to run the above command like this (docker excec )
docker exec betanaturalist sh -c 'exec bin/jboss-cli.sh --connect '
View gist:94cd7bd71b1f2efcd131e576975fca95
https://planet.jboss.org/post/deploy_to_wildfly_using_jboss_cli_tech_tip_11
bin/jboss-cli.sh --connect --command="deploy target/javaee7-1.0-SNAPSHOT.war --force"
You can select working directory for the command to execute into
docker exec -it -w /root ubuntu_bash pwd
/root
-> docker exec -it -w /tmp betanaturalist pwd
View gist:58693402854f054b4db7a3e2bc0bb5b4
lshw -c video
WARNING: you should run this program as super-user.
*-display
description: VGA compatible controller
product: UHD Graphics 620
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 07
width: 64 bits