Late 2016 consisted of mostly module diving. Topics of focus related mainly to hyperamp and hyperblog, two experimental hypermodul.es projects.
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
var request = require('sync-request'); | |
var ua = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" | |
var res = request('GET', 'https://api.github.com/repos/cfry/dde/releases/latest', { | |
headers: { 'user-agent': ua} | |
}) |
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 | |
# https://community.ubnt.com/t5/EdgeMAX/IPv6-DDNS-script/td-p/1082829 | |
run=/opt/vyatta/bin/vyatta-op-cmd-wrapper | |
domain=leaf.bret.io | |
key=DDNSAUTHKEY | |
updateurl="https://${domain}:${key}@ipv6.dyn.dns.he.net/nic/update?hostname=${domain}" | |
interface=eth1 | |
lastipv6=`cat /config/ipv6address` | |
outsideipv6=`$run show interfaces ethernet $interface brief | grep "[0-9abcdef]*:[0-9abcdef:]*/"|tr -d '[:space:]'|cut -d/ -f1` | |
if test `find "/config/ipv6address" -mmin +10080` || [ "$lastipv6" != "$outsideipv6" ] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
tap 'caskroom/cask' | |
tap 'caskroom/fonts' | |
tap 'caskroom/versions' | |
tap 'homebrew/binary' | |
tap 'homebrew/boneyard' | |
tap 'homebrew/bundle' | |
tap 'homebrew/command-not-found' | |
tap 'homebrew/completions' | |
tap 'homebrew/core' | |
tap 'homebrew/dupes' |
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
PREPUBLISH AND PREPARE | |
DEPRECATION NOTE | |
Since [email protected], the npm CLI has run the prepublish script for both npm publish | |
and npm install, because it's a convenient way to prepare a package for use (some | |
common use cases are described in the section below). It has also turned out to | |
be, in practice, very confusing https://github.com/npm/npm/issues/10074. As of | |
[email protected], a new event has been introduced, prepare, that preserves this existing | |
behavior. A new event, prepublishOnly has been added as a transitional strategy to | |
allow users to avoid the confusing behavior of existing npm versions and only run | |
on npm publish (for instance, running the tests one last time to ensure they're in |
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
# 2017 New Years Reading List | |
Here's what has my attention at the beginning of the new years. |
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 bash | |
git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v 'master' | | |
xargs -L1 | | |
awk '{sub(/origin\//,"");print}' | | |
xargs git push origin --delete | |