test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# Script receives Claude hook and tries its best to send a notification with useful content | |
# based on tool/transcript. | |
# Add in ~/.claude/settings.json | |
# "hooks": { | |
# "Notification": [ | |
# { | |
# "hooks": [ | |
# { "type": "command", "command": "notify-claude" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
# Jaeger | |
jaeger-all-in-one: | |
image: jaegertracing/all-in-one:1.55.0 | |
restart: always | |
ports: | |
- "16686:16686" | |
- "14268" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mix.exs | |
# {:sentry, "~> 10.2"}, | |
# {:req, "~> 0.4.9"}, | |
# config.exs | |
config :sentry, client: MyApp.SentryReqHTTPClient, | |
# lib/my_app/sentry_req_http_client.ex | |
defmodule MyApp.SentryReqHTTPClient do | |
@behaviour Sentry.HTTPClient |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveSupport.on_load(:action_controller_base) do | |
bc = ActiveSupport::BacktraceCleaner.new | |
bc.remove_silencers! | |
bc.add_silencer { |line| line.start_with?(RbConfig::CONFIG["rubylibdir"]) } | |
bc.add_silencer { |line| line =~ Regexp.union( | |
*( | |
%w{ bootsnap railties spring activesupport actionpack zeitwerk thor rack }. | |
map{|g| /\A#{g} \([\w.]+\) /} | |
), | |
/\Abin\/rails/ |
- Are you on track to meet the deadline?
- Hey, what’s going on?
- How are you? How is life outside of work?
- How are your parents/grandparents? Where do they live? Do you visit them?
- How is your family?
- How was your weekend?
- How’s it going?
- If around a holiday: Do you celebrate [Holiday]? If so, can I ask what are you plans?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
file_with_methods="${1?Pass filename}" | |
# set -e | |
( | |
IFS=' | |
' | |
for line in `rg "def (\w+)" ${file_with_methods} -r '\$1' -o --no-line-number`; do | |
COUNT="$(rg $line -F . | wc -l)" | |
if test $COUNT -gt 1; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Config do | |
defmacro __using__(_) do | |
quote do | |
import unquote(__MODULE__), only: :macros | |
end | |
end | |
defmacro cfg(key, type \\ :string) do | |
quote do | |
defp unquote(key)() do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { | |
AppRegistry, | |
Component, | |
StyleSheet, | |
Text, | |
View, | |
ScrollView, | |
TouchableOpacity | |
} from 'react-native'; |
def self.fetch_by_tracking_code(tracking_code)
Domain.where(tracking_code: tracking_code).take
end
gives: (no default scopes)
"SELECT "domains".* FROM "domains" WHERE
NewerOlder