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
| ; extends | |
| ; move this file to: | |
| ; after/queries/jinja/injections.scm | |
| ((content) @injection.content | |
| (#inject-jinja-sublang!) | |
| (#set! injection.combined)) |
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
| def self.property_nullable_string(name, **options) | |
| original_populator = options.delete(:populator) | |
| property name, **options, populator: ->(fragment:, **rest) { | |
| value = nil if fragment == "" | |
| if original_populator | |
| instance_exec(fragment: value, **rest, &original_populator) | |
| else | |
| public_send("#{name}=", value) |
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
| openapi: 3.0.3 | |
| info: | |
| title: locationjoystick Control API | |
| version: "1.0" | |
| description: | | |
| Local HTTP API exposed by the locationjoystick Group Sync leader. | |
| The API supports movement commands, route playback, roaming, spoofing, | |
| favorites, routes, and speed profiles. |
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
| # frozen_string_literal: true | |
| # Usage: | |
| # - ruby main.rb # then follow the interactive prompts | |
| # | |
| # All credits to https://github.com/HikariCalyx/lmnflash | |
| require "bundler/inline" | |
| gemfile 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
| # Parser for MSN plus logs | |
| # | |
| # Usage: | |
| # $ ruby parse_html_history.rb "julho 2008.html" > output.md | |
| require 'nokogiri' | |
| class MsnLogParser | |
| def initialize(file) | |
| file = file.gsub(" ", " ") # replace non-breaking whitespaces for regular spaces |
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 ruby | |
| # frozen_string_literal: true | |
| # Usage exact the same as `undercover`: | |
| # $ chmod +x ./bin/undercover-extended | |
| # $ ./bin/undercover-extended \ | |
| # --simplecov coverage/coverage.json \ | |
| # --compare origin/main \ | |
| # --format rdjsonl |
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 'net/http' | |
| require 'uri' | |
| require 'logger' | |
| require 'parallel' | |
| # Fetch proxies from multiple sources and test them against a specified URL, measuring response code and latency. | |
| # Results are saved and reloaded on subsequent calls to avoid retesting recently tested proxies. | |
| # Working proxies are saved in a separate text file with their response code and latency for easy reference. | |
| class ProxyTester | |
| # known exceptions that can be raised when testing a http proxy |
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
| # Example: | |
| # oh_auto_merge 'archived:False org:MyOrg is:pr state:open author:app/dependabot' | |
| function oh_auto_merge --argument-names search_query | |
| set -l graphql_query 'query SearchPullRequests($search_query: String!) { | |
| viewer { | |
| login | |
| } | |
| search( | |
| query: $search_query |
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
| {} |
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
| # frozen_string_literal: true | |
| # Simple datadog trace parser/debugger | |
| # | |
| # To run, simply: | |
| # $ rackup -p 8126 | |
| require 'roda' | |
| require 'pry' | |
| require 'msgpack' |
NewerOlder