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.hivefive.ciphernod.scalaz; | |
import java.util.Collections; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
import java8.util.function.Function; | |
/** | |
* Created by kinshuk.bairagi on 20/02/16. |
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
<?php | |
// Access-Control headers are received during OPTIONS requests | |
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { | |
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_METHOD'])) | |
header("Access-Control-Allow-Methods: GET, POST, OPTIONS"); | |
if (isset($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS'])) | |
header("Access-Control-Allow-Headers: {$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']}"); |
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
Index: src/spark/sbin/start-master.sh | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- src/spark/sbin/start-master.sh (revision 3a38a61d8dafe1584992d10feb2dfb2154da911f) | |
+++ src/spark/sbin/start-master.sh (revision 652da5558b857355940906760e4112d8b7c2ce62) | |
@@ -34,6 +34,7 @@ | |
exit -1 |
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
### BEGIN INIT INFO | |
# Provides: bluetooth-agent | |
# Required-Start: $remote_fs $syslog bluetooth pulseaudio | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Makes Bluetooth discoverable and connectable to 0000 | |
# Description: Start Bluetooth-Agent at boot time. | |
### END INIT INFO | |
#! /bin/sh |
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.flipkart.marketing.bro.mouth.pipeline.http | |
import akka.actor.{ActorRef, Actor, Props} | |
import akka.serialization.Serialization | |
import com.flipkart.marketing.bro.commons.data.models.RawEvent | |
import com.flipkart.marketing.bro.mouth.akka.AkkaEngine | |
import com.flipkart.marketing.bro.mouth.pipeline.StreamSource | |
import org.apache.spark.streaming.StreamingContext | |
import org.apache.spark.streaming.dstream.InputDStream | |
import org.apache.spark.streaming.receiver.ActorHelper |
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
#!/bin/bash | |
if [ $# -eq 0 ];then | |
echo "$0 host-prefix{1..5}-postfix.domain.com" | |
exit 1; | |
fi; | |
echo "User : `whoami`" | |
echo -n "LDAP password: " | |
read -s password; |
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
#!/bin/bash | |
# /etc/init.d/aps | |
# | |
# description: APE Daemon | |
# processname: APE Daemon | |
# author : me@kinshuk.in | |
# Define where ape is installed. | |
APE_DIRECTORY=/var/aps/APS-Deploy |
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
#!/bin/bash | |
#create pksc12 file | |
openssl pkcs12 -export -in website.crt -inkey website.key -out website.p12 -name tomcat -CAfile ca.crt -caname root -chain | |
#create java keystore. [ You may change website.jks to keystore or any existing keystores you have] | |
keytool -importkeystore -srckeystore website.p12 -srcstoretype pkcs12 -destkeystore website.jks -deststoretype JKS |
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
/* | |
* a smart poller for jquery. | |
* (by github) | |
* | |
* simple example: | |
* | |
* $.smartPoller(function(retry) { | |
* $.getJSON(url, function(data) { | |
* if (data) { | |
* doSomething(data) |