Skip to content

Instantly share code, notes, and snippets.

View altryne's full-sized avatar
🌐
translating

altryne altryne

🌐
translating
View GitHub Profile
@altryne
altryne / Readme.md
Created May 7, 2014 17:46
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
altryne / fowa2012
Created October 15, 2012 11:40
Add a tweet link to FOWA2012 london speaker page. Paste this line on "http://futureofwebapps.com/london-2012/schedule" and you will receive buttons to tweet every talk with the speaker twitter handle inside. ATTENTION : in chrome you have to manually type
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=%22http://twitter.com/intent/tweet%3Ftext=Listening 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//j.mp/R0Dnbf%22%3ETweet%20this%20talk!%3C/a%3E');$(this).find('.topic').before(tmp);})})();
@altryne
altryne / README.md
Last active December 30, 2015 19:09
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 : https://github.com/Fundbox/freshbooks_demo_data

@altryne
altryne / vagrant-port-forwarding.md
Last active May 30, 2016 05:47 — forked from carlossless/jenkins-port-forwarding.md
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

Keybase proof

I hereby claim:

  • I am altryne on github.
  • I am altryne (https://keybase.io/altryne) on keybase.
  • I have a public key ASC2hquNqomr9eq9cZbZ4d4Ioy7FdEPwOMYDw5E8vwaujgo

To claim this, I am signing this object:

asdgasdgasdg
@altryne
altryne / Badges color change config.yaml
Last active February 22, 2021 01:00
Sharing some home assistant settings, if you're interested in my setup, see kit.co/altryne
badges:
- entity: person.alex
style:
ha-state-label-badge:
$:
ha-label-badge:
$: |
.label-badge .label span{
color: #000 !important;
}
@altryne
altryne / settings.txt
Created August 26, 2022 08:28
Settings for the studio Ghibli Animation
20220826082208_settings.txt
Who has access
Not shared
System properties
Type
Text
Size
2 KB
Storage used
2 KB