Skip to content

Instantly share code, notes, and snippets.

@pomadchin
pomadchin / README.md
Created February 13, 2023 23:12 — forked from robertpainsi/README.md
How to reopen a pull-request after a force-push?

How to reopen a pull-request after a force-push?

Precodinitions

  • You need the rights to reopen pull requests on the repository.
  • The pull request hasn't been merged, just closed.

Instructions

  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin :
@pomadchin
pomadchin / PlayMini.scala
Created February 20, 2016 13:14 — forked from xuwei-k/PlayMini.scala
came back play mini!
#!/usr/bin/env scalas
/***
scalaVersion := "2.11.7"
libraryDependencies += "com.typesafe.play" %% "play-netty-server" % "2.4.6"
*/
import play.core.server._
import play.api.routing.sird._
import play.api.mvc._
@pomadchin
pomadchin / fail.txt
Last active January 15, 2016 16:12 — forked from lossyrob/hilbert-error-test.scala
Hilbert key error
java.lang.IllegalArgumentException: bitSetRange=Pow2LengthBitSetRange[start=size: 4096 bitset: {},level=4096] exceeds 62 bits for a non-negative long.
[info] at com.google.common.base.Preconditions.checkArgument(Preconditions.java:119)
[info] at com.google.uzaygezen.core.ranges.LongRangeHome.toRange(LongRangeHome.java:40)
[info] at com.google.uzaygezen.core.ranges.LongRangeHome.toRange(LongRangeHome.java:27)
[info] at com.google.uzaygezen.core.ranges.RangeUtil.toOrthotope(RangeUtil.java:50)
[info] at com.google.uzaygezen.core.SimpleRegionInspector.assess(SimpleRegionInspector.java:127)
[info] at com.google.uzaygezen.core.BacktrackingQueryBuilder.visit(BacktrackingQueryBuilder.java:121)
[info] at com.google.uzaygezen.core.ZoomingSpaceVisitorAdapter.visit(ZoomingSpaceVisitorAdapter.java:66)
[info] at com.google.uzaygezen.core.CompactHilbertCurve.accept(CompactHilbertCurve.java:182)
[info] at geotrellis.spark.io.index.hilbert.HilbertSpaceTimeKeyIndex.indexRanges(HilbertSpaceTimeKeyIndex.scala:1
#!/usr/bin/env bash
#
# Compile and install MongoDB with SSL support
# tested an works on Ubuntu 12.04 LTS x64 and Ubuntu 14.04 LTS x64
#
set -e
set -u
set -o pipefail