Usage:
To create a new branch that is up-to-date with the remote master:
$ ws 123
Creates the branch issue123
OAuth = require('oauth').OAuth | |
_ = require 'underscore' | |
class LinkedInClient | |
@baseUrl: 'https://api.linkedin.com' | |
@requestTokenUrl: "#{@baseUrl}/uas/oauth/requestToken" | |
@accessTokenUrl: "#{@baseUrl}/uas/oauth/accessToken" | |
@authorizeUrl: "#{@baseUrl}/uas/oauth/authorize" | |
@profileFields: ['id', 'headline', 'first-name', 'last-name', 'public-profile-url', 'picture-url', 'educations', 'positions', 'email-address'] |
fresh: clean chart | |
chart: instance_ages | |
@echo "AWS EC2 Instance Age Report" | |
@echo "---------------------------" | |
@echo "Days\\tCount" | |
@cat instance_ages | ./chart.py -n | |
clean: | |
rm -f instance* |
# Postfix stuff | |
QUEUEID (?:[A-F0-9]{11}|NOQUEUE) | |
EMAILADDRESSPART [a-zA-Z0-9_.+-=:]+ | |
EMAILADDRESS %{EMAILADDRESSPART:local}@%{EMAILADDRESSPART:remote} | |
RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?::[0-9]+(.[0-9]+)?)?)?) | |
#RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?:%{POSREAL:relayport}))) | |
POSREAL [0-9]+(.[0-9]+)? | |
#DELAYS %{POSREAL:a}/%{POSREAL:b}/%{POSREAL:c}/%{POSREAL:d} | |
DELAYS (%{POSREAL}[/]*)+ | |
DSN %{NONNEGINT}.%{NONNEGINT}.%{NONNEGINT} |
echo '{ | |
"handlers": ["debug"], | |
"name": "push_woot_test", | |
"output": "woot!", | |
"status": 0 | |
}' | nc -w1 127.0.0.1 3030 |
Preparation | |
Purchase YubiKey NEO | |
Install X Code and Command Line Tools, if installing anything from source. | |
X Code can be installed from the App Store. | |
Command Line Tools are installed from X Code: X Code -> Preferences -> Downloads -> Components -> Command Line Tools. | |
Install YubiKey reader library libyubikey (aka yubico-c) | |
Using homebrew: | |
brew install libyubikey | |
brew install ykpers |
wait4eth1() { | |
CNT=0 | |
until ip a show eth1 | grep -q UP | |
do | |
[ $((CNT++)) -gt 60 ] && break || sleep 1 | |
done | |
sleep 1 | |
} | |
wait4eth1 |
Usage:
To create a new branch that is up-to-date with the remote master:
$ ws 123
Creates the branch issue123
#!/bin/bash | |
# Set the ROOM_ID & AUTH_TOKEN variables below. | |
# Further instructions at https://www.hipchat.com/docs/apiv2/auth | |
ROOM_ID=XXX | |
AUTH_TOKEN=XXX | |
MESSAGE="Hello world!" | |
curl -H "Content-Type: application/json" \ |
module CarrierWave | |
module MiniMagick | |
def toaster_filter | |
manipulate! do |img| | |
img.modulate '150,80,100' | |
img.gamma 1.1 | |
img.contrast | |
img.contrast | |
img.contrast | |
img.contrast |
When Darth Docker sent me the email changing the terms of use retroactively (!) I decided to start looking for alternatives. | |
About 30 minutes later I found Lima (and nerdctl). | |
Less than an hour later, I no longer use Docker Desktop. | |
Not even for retrieving container images in corportate repos that require credentials. | |
I just replaced Docker on my MacBook with Lima. | |
$ brew install lima | |
Then set up a default execution environment for nerdctl: |