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
| #!/bin/bash | |
| # Ring terminal bell when Claude needs user input. | |
| # Registered on: Notification (permission_prompt), Stop | |
| # | |
| # - Notification:permission_prompt fires for tool permissions AND AskUserQuestion | |
| # dialogs, after a ~6s typing-idle delay. Bell rings unconditionally. | |
| # - Stop fires when Claude's turn ends. Bell rings only if the final message | |
| # ends with "?" (trailing whitespace stripped). | |
| # | |
| # Always exits 0 — never break Claude's workflow over a cosmetic bell. |
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
| { | |
| "query": { | |
| "bool": { | |
| "should": [ | |
| { | |
| "simple_query_string": { | |
| "fields": [ | |
| "name^3", | |
| "description", | |
| "service_location", |
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
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| _ "github.com/go-sql-driver/mysql" | |
| ) |
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
| { | |
| location: { | |
| city: "Austin", | |
| state: "TX" | |
| }, | |
| category: { | |
| name: "Professional Services", | |
| id: 42, | |
| "description": "Welcome to Austin, Texas's best directory brought to you by the OwnLocal. Check out businesses like Dime Box Cattle Co...", | |
| "images": [ |
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
| ----------------------------------------------------- | |
| -- (C) Robert Blancakert 2012 | |
| -- Available under the same license as Love | |
| ----------------------------------------------------- | |
| ----------------------------------------------------- | |
| -- Cupid Configuration | |
| ----------------------------------------------------- |
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
| BODY="$1" | |
| if [ -z "$1" ]; then | |
| BODY="OK" | |
| fi | |
| { | |
| echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(echo $BODY| wc -c)\r\n\r\n" | |
| echo $BODY | |
| } | nc -l 8080 -v |
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
| from os import walk | |
| from os.path import join | |
| from subprocess import check_output | |
| SEC_PER_MIN = 60 | |
| SEC_PER_HOUR = 60 * SEC_PER_MIN | |
| SEC_PER_DAY = 24 * SEC_PER_HOUR | |
| def split_time(seconds): |
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 python | |
| """ | |
| Plot histogram from list of dates | |
| Usage | |
| ===== | |
| Point to mbox file. | |
| Ex.1: plot mailinglist activity:: |
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
| /Users/pbonser/.m2/ | |
| └── repository | |
| ├── antlr | |
| │ └── antlr | |
| │ └── 2.7.7 | |
| │ ├── _maven.repositories | |
| │ ├── antlr-2.7.7.jar | |
| │ ├── antlr-2.7.7.jar.sha1 | |
| │ ├── antlr-2.7.7.pom | |
| │ └── antlr-2.7.7.pom.sha1 |
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
| pib@quabee:~$ sudo touch this | |
| [sudo] password for pib: | |
| pib@quabee:~$ sudo chmod 600 this | |
| pib@quabee:~$ touch this | |
| touch: cannot touch `this': Permission denied | |
| pib@quabee:~$ |
NewerOlder