Skip to content

Instantly share code, notes, and snippets.

View ohze's full-sized avatar
🎉
Be happy

ohze.net ohze

🎉
Be happy
View GitHub Profile
@ohze
ohze / akka-dotty-publish.sh
Created July 17, 2020 18:43
akka dotty publish
sbt -Dakka.build.scalaVersion=0.24.0 -Dakka.no.discipline \
-Dakka.scaladoc.diagrams=false -Dakka.scaladoc.autoapi=false "
;akka-actor/publishSigned
;akka-actor-typed/publishSigned
;akka-protobuf/publishSigned
;akka-protobuf-v3/publishSigned
;akka-slf4j/publishSigned
;akka-testkit/publishSigned
;akka-actor-testkit-typed/publishSigned
;akka-discovery/publishSigned
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link href="https://code.jquery.com/qunit/qunit-git.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/qunit/qunit-git.js"></script>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@ohze
ohze / flutter-sources.jar.sc
Last active March 15, 2019 09:15
fetch and archive flutter-sources.jar for using in Android Studio / IntelliJ
// This script will fetch java source files for <flutter.sdk>/bin/cache/artifacts/engine/android-arm/flutter.jar
// and pack into ~/flutter-sources.jar
// Run this script by [amm](http://ammonite.io/#ScalaScripts):
// + install amm:
// sudo sh -c '(echo "#!/usr/bin/env sh" && curl -L https://github.com/lihaoyi/Ammonite/releases/download/1.6.4/2.12-1.6.4) > /usr/local/bin/amm && chmod +x /usr/local/bin/amm'
// + run:
// amm flutter-sources.jar.sc
// Then you can Choose Sources for the flutter classes in IntelliJ/ Android Studio
@ohze
ohze / git.sh
Created July 24, 2017 06:51
specify ssh-key with git command
#!/bin/sh
# The MIT License (MIT)
# Copyright (c) 2013 Alvin Abad
if [ $# -eq 0 ]; then
echo "Git wrapper script that can specify an ssh-key file
Usage:
git.sh -i ssh-key-file git-command
"
@ohze
ohze / install-docker-compose.sh
Last active May 11, 2021 15:32 — forked from lmakarov/install-docker-compose.sh
Install docker-compose in boot2docker 1.7.0+
#!/bin.sh
DOCKER_COMPOSE_VERSION=1.14.0
# Download docker-compose to the permanent storage
echo 'Downloading docker-compose to the permanent VM storage...'
sudo mkdir -p /var/lib/boot2docker/bin
sudo curl -sL https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /var/lib/boot2docker/bin/docker-compose
sudo chmod +x /var/lib/boot2docker/bin/docker-compose
sudo ln -sf /var/lib/boot2docker/bin/docker-compose /usr/local/bin/docker-compose