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
function join { | |
local IFS="$1" | |
shift | |
echo "$*" | |
} | |
export CUSTOM_PATHS=( | |
"$HOME/Apps/myapp" | |
"$HOME/Apps/myapp2/bin" | |
) |
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
#!/bin/bash | |
dnf --refresh upgrade | |
dnf install --nogpgcheck \ | |
http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ | |
http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
dnf --refresh groupinstall "Development Tools" | |
dnf install $(grep fedora_packages.txt -v -e '^#' -e '^$' | tr '\n' ' ') |
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
#!/bin/sh -e | |
LO_PROFILE_DIR="/tmp/LO_conversions" | |
libreoffice \ | |
"-env:UserInstallation=file://$LO_PROFILE_DIR" \ | |
--headless --invisible \ | |
--convert-to csv *.ods \ | |
--outdir csv |
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
#!/bin/sh -e | |
function xdokeepassx { | |
xdotool search --maxdepth 3 --classname keepassx $@ | |
} | |
function show_keepassx { | |
local desktop="`xdotool get_desktop`" | |
xdokeepassx \ | |
set_desktop_for_window %@ $desktop \ |
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 virta.dekoodaus | |
import java.nio.charset.Charset | |
import java.util.concurrent.Executors | |
import scodec.Codec | |
import scodec.bits.BitVector | |
import scodec.codecs._ | |
import scodec.stream._ | |
import scodec.stream.decode.StreamDecoder |
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 ainakin.kerran | |
import akka.actor._ | |
import akka.persistence.{AtLeastOnceDelivery, PersistentActor} | |
import com.typesafe.config.ConfigFactory | |
import scala.concurrent.duration._ | |
object AinakinKerran { | |
def start(): Unit = { | |
val as = ActorSystem("AinakinKerran", ConfigFactory.load("common")) |
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 striimaus | |
import java.util.Properties | |
import akka.actor._ | |
import akka.persistence.{Persistence, PersistentActor, PersistentView} | |
import com.typesafe.config.{Config, ConfigFactory} | |
import kafka.consumer._ | |
import kafka.producer.{KeyedMessage, Producer, ProducerConfig} | |
import kafka.serializer.StringDecoder |
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 shardaus | |
import akka.actor._ | |
import scalaz._ | |
import Scalaz._ | |
object ActorSequence { | |
type SequenceProp = ActorRef => Props |
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
function mkBox() { | |
var box = {values: [], reads: []}; | |
box.enq = function(value) { | |
box.values.push(value); | |
if (box.reads.length > 0) { | |
box.reads.shift().resolve(box.values.shift()); | |
} | |
return box; | |
}; |