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
! 21/03/2020 https://twitter.com - remove annoyances/distractions | |
! Remove the annoying attention-sapping stuff: trending now, who to follow | |
twitter.com##div[aria-label='Timeline: Trending now'] | |
twitter.com##aside[aria-label='Who to follow'] | |
! 2020-10-03 Medium google login distraction | |
medium.com##div[id='credential_picker_container'] |
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
version: 1.0.0-quayio | |
type: Che Editor | |
name: theia-ide | |
id: org.eclipse.che.editor.theia | |
title: Eclipse Theia for Eclipse Che | |
description: Eclipse Theia | |
icon: https://pbs.twimg.com/profile_images/929088242456190976/xjkS2L-0_400x400.jpg | |
endpoints: | |
- name: "theia" | |
public: true |
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
package xyz.tomd.demos.fuse.springboot.amqxa; | |
import oracle.jdbc.xa.client.OracleXADataSource; | |
import oracle.jms.AQjmsFactory; | |
import org.apache.camel.component.jms.JmsComponent; | |
import org.messaginghub.pooled.jms.JmsPoolXAConnectionFactory; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.jta.XAConnectionFactoryWrapper; | |
import org.springframework.context.annotation.Bean; |
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
# Gets a list of all profiles and containers from a Red Hat JBoss Fuse Fabric topology | |
# Note this is very rough and probably doesn't work :-) | |
cd $FUSE_HOME | |
export JAVA_HOME=/c/extdot/dev/java/jdk1.8.0_92 | |
export FUSE_PASS=mypassword | |
/path/to/fuse/jboss-fuse-6.3.0.redhat-329/bin/client -a 8101 -h fuse.example.com -u adminmw fabric:container-list -p $FUSE_PASS > containerlist.txt | |
FIELDWIDTHS=$(head -1 containerlist.txt | grep -Po '.*? (?=\S|$)' | awk -v ORS=' ' '{printf length" "}') | |
awk -v FIELDWIDTHS="$FIELDWIDTHS" -v OFS=',' '{ print $1,$5 }' containerlist.txt | sed 's/ //' | awk '{$1=$1;print}' | |
awk -v FIELDWIDTHS="$FIELDWIDTHS" -v OFS=',' '{ print $1,$5 }' containerlist.txt | awk '{$1=$1;print}' | awk -F ',' '$1!="" {print "echo CONTAINER",$1; print "bin/client -a 8101 -h fuse.example.com -u adminmw -p $FUSE_PASS fabric:profile-display",$2} $1=="" { print "bin/client -a 8101 -h fuse.example.com -u adminmw -p $FUSE_PASS fabric:profile-display",$2 }' |
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
// Test using: | |
// curl -v -X PUT -H "filename: myfile.txt" -H "Content-Type: text/plain" -d "hello12345" http://localhost:8080/services/upload | |
rest("/upload") | |
.description("File upload service") | |
.consumes("text/plain") | |
.put().description("Upload a file") | |
.outType(String.class) | |
.param().name("filename") |
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
/* | |
Firstly, you need to add a new Credential in Jenkins to access your Git. | |
Grab the ID of the Credential and use it in the credentialsId field below. | |
*/ | |
library identifier: 'mylibraryname@master', | |
//'master' refers to a valid git-ref | |
//'mylibraryname' can be any name | |
retriever: modernSCM([ | |
$class: 'GitSCMSource', |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd | |
"> | |
<bean id="processor" | |
class="com.cleverbuilder.cameldemos.spring.scenarios.dailytimer.PrintDocuments"/> |
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
package com.example; | |
import com.sun.codemodel.*; | |
import com.sun.tools.xjc.Options; | |
import com.sun.tools.xjc.Plugin; | |
import com.sun.tools.xjc.model.Model; | |
import com.sun.tools.xjc.outline.ClassOutline; | |
import com.sun.tools.xjc.outline.EnumConstantOutline; | |
import com.sun.tools.xjc.outline.EnumOutline; | |
import com.sun.tools.xjc.outline.Outline; |
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
<?xml version="1.0"?> | |
<!-- See also: https://access.redhat.com/documentation/en-us/red_hat_jboss_fuse/6.3/single/developing_and_deploying_applications/index#Develop --> | |
<settings> | |
<profiles> | |
<profile> | |
<id>extra-repos</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> |
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
curl --cookie "JSESSIONID=<your_session_id_here>;" -OL https://access.redhat.com/jbossnetwork/restricted/softwareDownload.html?softwareId=<id_here> |