Skip to content

Instantly share code, notes, and snippets.

@firehooper
firehooper / roocode_mcp_settings.schema.json
Last active May 7, 2025 20:27
roocode_mcp_settings.schema.json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Roo Code MCP Settings",
"description": "Roo Code Configuration for MCP (Model Context Protocol) servers",
"type": "object",
"properties": {
"mcpServers": {
"description": "A collection of MCP server configurations, keyed by server name.",
"type": "object",
"additionalProperties": {
@firehooper
firehooper / postal-codes.json
Last active June 2, 2022 20:26 — forked from jamesbar2/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
SELECT
t.NAME AS TableName,
SUM(a.used_pages) * 8 AS UsedSpaceKB,
SUM(a.total_pages) * 8 AS TotalSpaceKB,
(SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB,
p.rows AS RowCounts
FROM
sys.tables t
INNER JOIN
sys.indexes i ON t.OBJECT_ID = i.object_id
@firehooper
firehooper / git_ignore_to_intellij_exclude.py
Created July 9, 2021 14:43
git_ignore_to_intellij_exclude.py
"""
This script reads the .gitignore file from the current directory, finds all ignored directories,
then adds them to the IntelliJ .idea/*.iml file. IntelliJ applies these changes automatically without restarting.
"""
# https://youtrack.jetbrains.com/issue/IDEA-140714#focus=Comments-27-4851651.0-0
import glob
import os
import sys
@firehooper
firehooper / sbt.ps1
Last active June 7, 2021 16:13
sbt.ps1
$scriptpath = $MyInvocation.MyCommand.Path
$dir = Split-Path $scriptpath
$jvmopts = '-XX:+UseG1GC', '-XX:+ExplicitGCInvokesConcurrent'
if (Test-Path -Path ".jvmopts") {
#Write-host "using .jvmopts in local path"
$jvmopts = [string[]](Get-Content ".jvmopts" | Select-Object) | Foreach { $_.Trim() }
} elseif (Test-Path -Path "${dir}/.jvmopts") {
#Write-host "using default .jvmopts in ${dir}/.jvmopts"
$jvmopts = [string[]](Get-Content "${dir}/.jvmopts" | Select-Object) | Foreach { $_.Trim() }
}
package printtextlocations;
/*
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.11</version>
</dependency>
*/
@firehooper
firehooper / AutoProductFormat.scala
Last active March 8, 2017 19:35 — forked from guersam/AutoProductFormat.scala
Macro-based json format generator for spray-json (https://github.com/spray/spray-json)
package spray.json
import spray.json.{DefaultJsonProtocol, RootJsonFormat}
import scala.reflect.macros.blackbox.Context
trait AutoProductFormat extends DefaultJsonProtocol {
implicit def jsonFormat[T <: Product]: RootJsonFormat[T] = macro AutoProductFormatMacro.autoProductFormatMacro[T]
}
# Container running Event Store
#
# VERSION 0.1
FROM ubuntu
MAINTAINER Alexander "iam.asm89@gmail.com"
# make sure the package repository is up to date
RUN apt-get update
# install packages required to build mono and the eventstore
AED
("United Arab Emirates", "Dirhams"),
AFN
("Afghanistan", "Afghanis"),
ALL
("Albania", "Leke"),
AMD
("Armenia", "Drams"),
ANG
("Netherlands Antilles", "Guilders (also called Florins)"),