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
| const labelId = '83e6Z7u9rW83elan09Nx' | |
| const widgetId = 'iTyk3i4j5sECMquDZLgP' | |
| noticeable.on('widget:ready', widgetId, async function(event) { | |
| const publications = event.detail.publications | |
| if (publications.length > 0) { | |
| if (publications[0].labels.includes(labelId)) { | |
| const widgetOptions = { | |
| backgroundColor: '#ff0000', | |
| backgroundColorHover: 'darkred', |
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 | |
| require "json" | |
| require "net/http" | |
| require "uri" | |
| endpoint = ENV.fetch("NOTICEABLE_GRAPHQL_ENDPOINT", "https://api.noticeable.io/graphql") | |
| api_key = ENV.fetch("NOTICEABLE_API_KEY") | |
| project_id = ENV.fetch("NOTICEABLE_PROJECT_ID") |
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 io.noticeable.data.autoconfigure; | |
| import java.lang.annotation.*; | |
| @Target(ElementType.TYPE) | |
| @Retention(RetentionPolicy.RUNTIME) | |
| @Documented | |
| public @interface NoTypeAlias { | |
| } |
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
| User-Agent | Email Client | |
|---|---|---|
| "AHC/2.1" | Unknown | |
| "Apache-HttpClient/4.5.1 (Java/1.8.0_172)" | Unknown | |
| "Apache-HttpClient/UNAVAILABLE (Java/17.0.11)" | Unknown | |
| "Apache-HttpClient/UNAVAILABLE (Java/1.8.0_362)" | Unknown | |
| "axios/0.19.2" | Unknown | |
| "curl/8.1.0" | Unknown | |
| "curl/8.4.0" | Unknown | |
| "Dalvik/2.1.0 (Linux; U; Android 10; NOH-NX9 Build/HUAWEINOH-N29)" | Unknown | |
| "Dalvik/2.1.0 (Linux; U; Android 12; 2107119DC Build/SKQ1.211006.001)" | Unknown |
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
| [ | |
| { | |
| "displayName": "East US", | |
| "id": "/subscriptions/41160c59-742a-4bb6-9a57-32c3cf05a343/locations/eastus", | |
| "metadata": { | |
| "geographyGroup": "US", | |
| "latitude": "37.3719", | |
| "longitude": "-79.8164", | |
| "pairedRegion": [ | |
| { |
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
| import software.amazon.awssdk.auth.credentials.AwsBasicCredentials; | |
| import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider; | |
| import software.amazon.awssdk.regions.Region; | |
| import software.amazon.awssdk.services.s3.S3Client; | |
| import software.amazon.awssdk.services.s3.model.GetObjectRequest; | |
| import java.io.InputStream; | |
| import java.net.URI; | |
| import java.util.function.Consumer; |
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
| import java.io.IOException; | |
| import java.net.URI; | |
| import java.net.http.HttpClient; | |
| import java.net.http.HttpRequest; | |
| import java.net.http.HttpResponse; | |
| public class IpregistryTest { | |
| public static void main(String[] args) throws IOException, InterruptedException { | |
| HttpClient client = HttpClient.newHttpClient(); |
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
| import org.xbill.DNS.Lookup; | |
| import org.xbill.DNS.Record; | |
| import org.xbill.DNS.TextParseException; | |
| import org.xbill.DNS.Type; | |
| public class DnsJavaTryOut { | |
| public static void main(String[] args) throws TextParseException { | |
| Record[] records = new Lookup("4.4.8.8.in-addr.arpa", Type.PTR).run(); | |
| for (Record record : records) { |
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
| <?php | |
| $curl = curl_init(); | |
| $payload = json_encode(array("66.165.2.7", "1.1.1.1", "8.8.4.4")); | |
| curl_setopt_array($curl, array( | |
| CURLOPT_URL => "https://api.ipregistry.co/?key=tryout", | |
| CURLOPT_POSTFIELDS => $payload, | |
| CURLOPT_HTTPHEADER => array('Content-Type:application/json'), |
NewerOlder