Skip to content

Instantly share code, notes, and snippets.

View fgfernandez0321's full-sized avatar

Frank González Fernández fgfernandez0321

View GitHub Profile
@fgfernandez0321
fgfernandez0321 / recipe: cherry-pick tags
Created December 21, 2022 18:32 — forked from nickfloyd/recipe: cherry-pick tags
To cherry pick from head and commit back into a tag
-from master in working branch
>> git branch [new branch] [tag]
>> git checkout [branch]
-pull commit out and add it to the commit at the top of the tag
>> git cherry-pick [commit] or git cherry-pick [firstcommit]^..[lastcommit] if you have a range
-resolve conflicts
-delete the local tag
>> git git tag -d [tag]
-add a new tag at the head of the old one
>> git tag [tag]
@fgfernandez0321
fgfernandez0321 / gist:666ed92221ef5910cfc63427d33b1f06
Created December 21, 2022 18:24 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@fgfernandez0321
fgfernandez0321 / RetryTest.scala
Created January 24, 2022 13:55 — forked from jcallin/RetryTest.scala
ScalaTest Retry a test over and over
import org.scalatest.tagobjects.Retryable
import org.scalatest.{ Canceled, Failed, Outcome, Retries, Succeeded }
class SomeTestSuite extends FunSpec with Retries {
val retries = 1000
override def withFixture(test: NoArgTest): Outcome = {
if (isRetryable(test)) withFixture(test, retries) else super.withFixture(test)
}
@fgfernandez0321
fgfernandez0321 / Local Apps on Mac OS
Last active May 31, 2020 22:14
Installing local dependencies in Mac without Admin account
- Install Java for sbt (Recommended AdoptOpenJDK JDK 8 or AdoptOpenJDK JDK 11)
Reference: https://www.scala-sbt.org/1.x/docs/Setup.html
1. Download: https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u252-b09.1/OpenJDK8U-jdk_x64_mac_hotspot_8u252b09.tar.gz
2. Create `LocalApps` folder in home and uncompressed `OpenJDK8U-jdk_x64_mac_hotspot_8u252b09.tar` inside of it.
3. Create `.bash_profile` file in home folder
4. Copy the following lines in
```
export JAVA_HOME=/Users/fgonzalez/LocalApps/jdk8u252-b09/Contents/Home
@fgfernandez0321
fgfernandez0321 / installing_cassandra.md
Created November 23, 2019 19:28 — forked from hkhamm/installing_cassandra.md
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
# Install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install JDK
Reference: https://www.cs.dartmouth.edu/~scot/cs10/mac_install/mac_install.html
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
# Install Sbt
brew install sbt