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 | |
| # install.sh — set up the Claude Code bookmark feature. | |
| # | |
| # What it installs: | |
| # ~/.claude/scripts/bm/save.sh called by the /bookmark slash command | |
| # ~/.claude/scripts/bm/count.sh used by the shell prompt | |
| # ~/.claude/commands/bookmark.md the /bookmark slash command | |
| # ~/.claude/bookmarks.json storage file (created if missing) | |
| # a managed block in ~/.zshrc defines the `bm` function and adds | |
| # "(N bookmarks)" to RPROMPT |
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 python3 | |
| # Session Parser for Claude Code | |
| # Parse Claude session JSONL files to review past conversations | |
| # | |
| # Usage: | |
| # python session_parser.py list [-p project] [-n limit] — list recent sessions | |
| # python session_parser.py summary <session_id> — quick summary (user msgs + tool counts) | |
| # python session_parser.py parse <session_id> — full conversation view | |
| # python session_parser.py parse <session_id> -m tools — list all tool calls | |
| # python session_parser.py parse <session_id> -t — include tool calls in conversation |
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 python3 | |
| import sys | |
| import json | |
| import time | |
| import os | |
| data = json.load(sys.stdin) | |
| ts = time.strftime("%Y-%m-%d %H:%M:%S") | |
| log_entry = f"[{ts}] {json.dumps(data)}\n" |
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
| // ==UserScript== | |
| // @name ChatGPT – Pin Starred Chats + Visible White Star Toggle | |
| // @namespace mohit.chatgpt.star.pin.fixed | |
| // @version 1.0.1 | |
| // @description Pins starred chats to top, shows visible white-outline star icons, and adds a toggle beside Share. Uses Authorization Bearer + cookies. | |
| // @match https://chat.openai.com/* | |
| // @match https://chatgpt.com/* | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== |
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 | |
| set -Eeo pipefail | |
| # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ | |
| exit_with_failure(){ | |
| echo "Script failed" | |
| echo "\"${last_command}\" command filed with exit code $?." | |
| } | |
| trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG |
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
| //found here https://ashr.net/jash/sh/tl/dr/too/dumb/to/thing/this/thing.aspx | |
| setImmediate(function() { | |
| Java.perform(function() { | |
| var url = Java.use("java.net.URL"); | |
| var proxyTypeI = Java.use('java.net.Proxy$Type'); | |
| var inetSockAddrWrap = Java.use("java.net.InetSocketAddress"); | |
| var proxy = Java.use('java.net.Proxy'); | |
| url.$init.overload('java.lang.String').implementation = function (var0) { |
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
| #GistID: dd1f4bffde8b23192433df1c93685b2e | |
| require 'pry' | |
| class Test | |
| def first_call(f) | |
| a = f | |
| b = 2 | |
| res = second_call(a,b) | |
| puts "\n\n=== result res:#{res} ===\n\n" | |
| return res | |
| end |
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
| require 'rubygems' | |
| require 'appium_lib' | |
| require 'benchmark' | |
| require 'browserstack-fast-selenium' | |
| username = ENV["BROWSERSTACK_USERNAME"] | |
| access_key = ENV["BROWSERSTACK_ACCESSKEY"] | |
| caps = {} | |
| caps['build'] = 'Ruby Appium Sample' |
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
| { | |
| "news.ycombinator.com": { | |
| "_enabled": true, | |
| "_rules": { | |
| "table#hnmain": { | |
| "font-family": "verdana", | |
| "font-size": "small ", | |
| "width": "60%" | |
| }, | |
| "comment0": { |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>Subscriptions of nikita.voloboev from Inoreader [https://www.inoreader.com]</title> | |
| </head> | |
| <body> | |
| <outline text="Linux" title="Linux"> | |
| <outline text="Julia Evans" title="Julia Evans" type="rss" xmlUrl="https://jvns.ca/atom.xml" htmlUrl="http://jvns.ca/"/> | |
| <outline text="nixCraft" title="nixCraft" type="rss" xmlUrl="https://www.cyberciti.biz/feed/" htmlUrl="https://www.cyberciti.biz/"/> | |
| </outline> |
NewerOlder