Skip to content

Instantly share code, notes, and snippets.


Alex Wolkov altryne

View GitHub Profile
altryne / Badges color change config.yaml
Last active Nov 11, 2020
Sharing some home assistant settings, if you're interested in my setup, see
View Badges color change config.yaml
- entity: person.alex
$: |
.label-badge .label span{
color: #000 !important;

Keybase proof

I hereby claim:

  • I am altryne on github.
  • I am altryne ( on keybase.
  • I have a public key ASC2hquNqomr9eq9cZbZ4d4Ioy7FdEPwOMYDw5E8vwaujgo

To claim this, I am signing this object:

altryne /
Last active May 30, 2016 — forked from carlossless/
Vagrant port fowarding with Yosemite/Mavericks

Vagrant Port Forwarding (8080 -> 80, 8443 -> 443) with pf on Mavericks/Yosemite/El-Cap

This guide is a fork from this gist.

Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.

1. Create the anchor file

Create an anchor file under /etc/pf.anchors/com.vagrant with your redirection rule like:
important note the trailing whitespace is nessesary

altryne /
Created May 7, 2014
Hubot Slack webhook

#A script to post back to Slack via the webhooks API

##why this exists?

Slack's own hubot adapter needs the hubot installation to be accessible via web. This can be problematic in some cases, as a security risk.

This hack let's you run your Hubot behind a firewall, and connect to Slack via the IRC gateway.

To respond, Hubot uses the incoming webhooks end-point of Slack.

altryne /
Last active Dec 30, 2015
Freshbooks demo data create script

Freshbooks demo data create

Because Freshbooks doesn't have demo data, and there's no way to import your invoices, here's a small script to create a bunch of dummy invoices in freshbooks

EDIT : This script now lives as a repository here :

altryne / fowa2012
Created Oct 15, 2012
Add a tweet link to FOWA2012 london speaker page. Paste this line on "" and you will receive buttons to tweet every talk with the speaker twitter handle inside. ATTENTION : in chrome you have to manually type
View fowa2012
javascript:(function(){$('.session').not('.break').each(function(ev){h=$(this).find('.speaker-photo%20a').attr('href');(h)%3Fh=h.substring(19):%22%22;s=$(this).find('.summary').text();s=s.replace(%22Topic%22,%22%22);tmp=$('%3Ca%20href=%22 to%20%40'+%20h%20+'%20speaking%20at%20%2523fowa%20about%20'%20+%20s%20+'%26via=fowa,%40altryne%22%20target=%22_blank%22%20%3E%3Cimg%20src=%22//!%3C/a%3E');$(this).find('.topic').before(tmp);})})();
You can’t perform that action at this time.