Skip to content

Instantly share code, notes, and snippets.

View kolemannix's full-sized avatar

Koleman Nix kolemannix

  • patterndata.ai
  • Richmond, VA
View GitHub Profile
import org.apache.ivy.core.cache.ArtifactOrigin
import sbt.*
import sbt.Keys.*
import sbt.Project.inConfig
import sbt.internal.RemoteCache.*
import sbt.internal.inc.{HashUtil, JarUtils}
import sbt.internal.librarymanagement.IvyActions.mapArtifacts
import sbt.nio.Keys.*
import sbt.plugins.SemanticdbPlugin
@jastice
jastice / integrations-bsp-intellij-bloop.md
Last active June 28, 2019 11:48 — forked from jvican/integrations-bsp-intellij-bloop.md
Instructions to try the BSP IntelliJ-Bloop integration out.

Installation instructions

  1. Install bloop 1.0.0-M11 by following the Bloop installation instructions. Then, make sure you start up the bloop server on the background and to generate the configuration files by running bloopInstall in your build tool.
  2. Install IntelliJ 2018.2 EAP and then enable the nightly version of the Scala Plugin by opening Preferences | Languages & Frameworks | Scala | Updates tab and selecting the Nightly plugin update channel: intellij-eap
  3. check for updates and download the Scala plugin Nightly release.
  4. Reboot IntelliJ. The Scala plugin should now have version 2018.2.277 or higher (check in Preferences | Plugins)
  5. Open the "Find Action" search box (usual hotkey Shift+Ctrl+A or shift+cmd+A) and search for "bsp". The search box will show the full action name: "Enable experime
@jvican
jvican / integrations-bsp-intellij-bloop.md
Last active September 28, 2018 18:23
Instructions to try the BSP IntelliJ-Bloop integration out.

Installation instructions

  1. Install bloop 1.0.0-M11 by following the Bloop installation instructions. Then, make sure you start up the bloop server on the background and to generate the configuration files by running bloopInstall in your build tool.
  2. Install IntelliJ EAP 2018.2 and then enable the nigthly version of the Scala Plugin. Instructions here and picture here: intellij-eap
  3. Reboot IntelliJ. After the Scala nightly is released, open a normal project in IntelliJ and look for the IntelliJ action "Enable bsp" (usually with Ctrl-Shift-A). The search box will show the full action name: "Enable experimental bsp support". Click on it.
  4. Close the project you're in and import the project. This time, when IntelliJ shows you the available options for the import, the bsp option wi
@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active July 7, 2024 13:22
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'