Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| package laccetti.test; | |
| import org.apache.qpid.server.Broker; | |
| import org.apache.qpid.server.BrokerOptions; | |
| import com.google.common.io.Files; | |
| /** | |
| * We shouldn't need external things for testing | |
| */ |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)This is a quick reference to get to Jolokia statistics urls for JBoss Fuse or JBoss A-MQ statistics. Sometimes, when you are interested in very specific attributes, it's easier to keep monitoring a specific url rather than loading the full Hawtio console.
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.List; | |
| /** | |
| * Reference: https://stackoverflow.com/questions/19688235/how-to-implement-pagination-on-a-list | |
| * @author elvis | |
| * @version $Revision: $<br/> | |
| * $Id: $ |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta name="robots" content="noindex, nofollow"> | |
| <meta name="googlebot" content="noindex, nofollow"> | |
| <link rel="stylesheet" type="text/css" href="https://rawgit.com/iamceege/tooltipster/4.2.5/dist/css/tooltipster.bundle.min.css"> | |
| <link rel="stylesheet" type="text/css" href="https://rawgit.com/louisameline/tooltipster-follower/0.1.5/dist/css/tooltipster-follower.min.css"> | |
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script> | |
| <script type="text/javascript" src="https://rawgit.com/iamceege/tooltipster/4.2.5/dist/js/tooltipster.bundle.min.js"></script> | |
| <script type="text/javascript" src="https://rawgit.com/louisameline/tooltipster-follower/0.1.5/dist/js/tooltipster-follower.min.js"></script> |
| /* | |
| * To change this template, choose Tools | Templates | |
| * and open the template in the editor. | |
| */ | |
| package asn.helpers; | |
| /** | |
| * | |
| * @author asn | |
| */ |
| package controller | |
| func init(){ | |
| Get("/", func(w http.ResponseWriter, r *http.Request){ | |
| fmt.Fprintf(w, "%s", "Hi!") | |
| }) | |
| } |
| public static void main(String[] args) throws Exception { | |
| final Key key = generateSymmetricKey("SecretKey".getBytes()); | |
| // encrypting | |
| final Cipher cEncrypter = Cipher.getInstance("DESede/ECB/PKCS7Padding"); | |
| cEncrypter.init(Cipher.ENCRYPT_MODE, key); | |
| final ByteArrayOutputStream bos = new ByteArrayOutputStream(); | |
| try( | |
| CipherOutputStream encrypterStream = new CipherOutputStream(bos, cEncrypter); |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |