Skip to content

Instantly share code, notes, and snippets.

View kevinspencer's full-sized avatar

Kevin Spencer kevinspencer

View GitHub Profile
#!/bin/env perl
use v5.36.0;
my $fn = $ARGV[0];
my @output;
{
open my $fh, '<', $fn;
my @input = <$fh>;
@merlinmann
merlinmann / twitter-bios.md
Last active April 24, 2024 06:29
bios - Merlin likes to change his Twitter bio for some reason. #runx

Good Twitter Bios runx

Bios

The bar is in the globe.

This is a factory, not a circus.

I weigh less than a slice of bread.

@PerpetualBeta
PerpetualBeta / network_status.sh
Last active January 7, 2017 20:08
Network status monitor for BitBar (https://getbitbar.com/)
#!/bin/bash
PING_TIMEOUT=2
PING_ADDRESS=8.8.8.8
PING_STATUS=false
EXTERNAL_IP_LABEL='IP Address (external): '
ACQUIRE_EXTERNAL_IP='/usr/local/bin/wget -qO- http://ipecho.net/plain'
EXTERNAL_IP_ADDRESS="$(eval "$ACQUIRE_EXTERNAL_IP")"
EXTERNAL_IP="${EXTERNAL_IP_LABEL}${EXTERNAL_IP_ADDRESS}"
VPN_STATUS=false