Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
| #!/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" |
| // ==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== |
| #!/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 |
| //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) { |
| #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 |
| 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' |
| { | |
| "news.ycombinator.com": { | |
| "_enabled": true, | |
| "_rules": { | |
| "table#hnmain": { | |
| "font-family": "verdana", | |
| "font-size": "small ", | |
| "width": "60%" | |
| }, | |
| "comment0": { |
| <?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> |
Let's have some command-line fun with curl, [jq][1], and the [new GitHub Search API][2].
Today we're looking for:
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer