Skip to content

Instantly share code, notes, and snippets.

destructuring_assignment_for_named_local_args() {
declare numbers letters words
read numbers letters words <<<"$@"
echo "$numbers"
echo "$letters"
echo "$words"
}
destructuring_assignment_for_named_local_args 123 abc "Hello world"
require 'jmx'
server = JMX.simple_server
client = JMX.connect
hot_spot = client["com.sun.management:type=HotSpotDiagnostic"]
hot_spot.dumpHeap "my_heap.map", true
puts "done"
exit 0
class ShouldWrapper
def initialize(value)
@value = value
end
def ==(other)
if @value == other
puts ":)"
else
@IanColdwater
IanColdwater / twittermute.txt
Last active March 8, 2026 00:11
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet