- Naming
- Cache consistency
- Off-by-One error
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 | |
# Git pre-commit hook to warn about CSV, TSV, or TXT files with 50 | |
# lines or more. Original example at: | |
# | |
# https://codeinthehole.com/tips/tips-for-using-a-git-pre-commit-hook/ | |
# Make sure this script is executable. Installation is simply: | |
# ln -s pre-commit.sh .git/hooks/pre-commit |
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
javascript:void( | |
( | |
function() { | |
var orig=location.href; | |
var url='http://chart.apis.google.com/chart?cht=qr&chs=300x250&chl='+encodeURIComponent(orig); | |
window.open(url,"_blank","width=320,height=270,resizable=yes,status=yes") | |
} | |
)() | |
) |
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
( | |
function() { | |
function massage_xkcd(txt) { | |
const arry = txt.split(' '); | |
const randNum = String(Math.random()).slice(2, 5); | |
const caps = arry.map(word => word.charAt(0).toUpperCase() + word.substring(1)); | |
caps.push(randNum); | |
return caps.join('.'); | |
} |
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
[2025-01-10 14:28:56,512] WARN [AdminClient clientId=ccloud-java-client-fe690841-bdf7-4231-8340-f78dd6a8cad9] Error connecting to node pkc-rgm37.us-west-2.aws.confluent.cloud:9092 (id: -1 rack: null) (org.apache.kafka.clients.NetworkClient) | |
java.io.IOException: Channel could not be created for socket java.nio.channels.SocketChannel[closed] | |
at org.apache.kafka.common.network.Selector.buildAndAttachKafkaChannel(Selector.java:368) | |
at org.apache.kafka.common.network.Selector.registerChannel(Selector.java:345) | |
at org.apache.kafka.common.network.Selector.connect(Selector.java:272) | |
at org.apache.kafka.clients.NetworkClient.initiateConnect(NetworkClient.java:1077) | |
at org.apache.kafka.clients.NetworkClient.ready(NetworkClient.java:321) | |
at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.sendEligibleCalls(KafkaAdminClient.java:1270) | |
at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.processRequests(KafkaAdminClient.java:1530) | |
at org.apache.kafka.clients.admin.KafkaAdminClient$Admi |
OlderNewer