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
curl --key my.se.key --cert my.se.crt --cacert ca_steria.crt -k --verbose -debug -d "fel" https://url | |
openssl s_client -host host.se -port 443 -showcerts -CAfile ca_steria.crt -key my.se.key -cert my.se.crt |
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
apply plugin: 'scala' | |
group = 'com.googlecode.scalascriptengine' | |
version = '1.3.1-2.10.0' | |
description = """scalascriptengine""" | |
tasks.withType(ScalaCompile) { | |
scalaCompileOptions.useAnt = false |
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
trait AsOption[T] { | |
type Out <: Option[_] | |
def apply(x: T): Out | |
} | |
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
try { | |
final Future<SMSReplyIntegrationEntity> smsReplyIntegrationEntityFuture = sms.sendMessage("46708113432", "öäåöäasdfasfd", "efsob", "666"); | |
final SMSReplyIntegrationEntity smsReplyIntegrationEntity = smsReplyIntegrationEntityFuture.get(); | |
LOG.error("message",smsReplyIntegrationEntity.getResponseMessage()); | |
LOG.error("code",smsReplyIntegrationEntity.getResponseCode()); | |
} catch (Exception e) { | |
LOG.error("sms",e); | |
} |
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
package se.cehis.efsob.integration.sms; | |
import com.google.common.base.Ascii; | |
import com.google.common.base.Charsets; | |
import com.google.common.base.Throwables; | |
import com.google.common.escape.Escaper; | |
import com.google.common.net.UrlEscapers; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.auth.AuthScope; |
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
% brew list | while read cask; do echo -n "$cask"; awk '{printf("brew install %s\n ", $0)}'; echo ""; done | |
% brew list | while read cask; do echo -n $fg[blue] $cask $fg[white]; brew deps $cask | awk '{printf(" %s ", $0)}'; echo ";done | |
brew install apache-spark | |
brew install argtable | |
brew install arpack | |
brew install autoconf | |
brew install autojump | |
brew install automake | |
brew install awscli |
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
Jag inser inte varför det skulle var något att glädjas över att personer som redan är rikare än någon har behov av att vara skulle kunna fördubbla sin konsumtion av sådant som ger liten eller ingen tillfredsställelse annat än som symboler för rikedom. Det är bara i mindre utvecklade länder som ökad produktion fortfarande utgör ett viktigt mål: i de mest utvecklade länderna behövs istället jämnare fördelning.. | |
Och inte heller skänker tanken på en värld där inget lämnats till naturens spontana aktivitet någon större glädje; där varje stycke land odlats upp och där varje blommande vildmark eller naturlig betesäng lagts under plogen och där varje fyrfoting eller fågel som inte gjorts till husdjur utrotats och där varje häck eller överflödigt träd röjts undan och där knappast en plats finns kvar där en vild buske eller blomma kan växa utan att utrotas som ogräs av det avancerade jordbruket. | |
Om jorden förlorar sin ljuvlighet genom obegränsad tillväxt av rikedom och befolkning, bara för att kunna hysa en större me |
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
import java.util.{Enumeration, HashMap} | |
import com.ibm.mq.constants.{MQConstants, CMQCFC} | |
import com.ibm.mq.headers.pcf.PCFMessage | |
import com.ibm.mq.headers.pcf.PCFParameter | |
import scala.collection.JavaConverters._ | |
object Main extends App { | |
val pcfCM: PCF_CommonMethods = new PCF_CommonMethods |
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
import java.util.{Enumeration, HashMap} | |
import com.ibm.mq.constants.{CMQC, MQConstants, CMQCFC} | |
import com.ibm.mq.headers.pcf.{PCFMessage,PCFParameter} | |
import scala.collection.JavaConverters._ | |
object Main extends App { | |
val pcfCM: PCF_CommonMethods = new PCF_CommonMethods | |
try { |
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
* forward messagges to new Qmanager | |
inputqm('QM') inputq('DLQ') | |
DESTQ(QINMESSAGES) ACTION(FWD) fwdq(TOQ) fwdqm('TOQM') header(no) | |
* | |
inputqm('QM') inputq('DLQ') | |
DESTQM(QMINMESSAGES) ACTION(FWD) fwdq(&DESTQ) fwdqm('TOQM') header(no) |