I hereby claim:
- I am jphastings on github.
- I am jphastings (https://keybase.io/jphastings) on keybase.
- I have a public key ASDEkcXgO-mkOUUYhp5pQXwbBdnaxvyz32b74GKEVd-PAQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Writing engaging presentations can be hard, below is the first draft of some hints and tips I've accumulated. I'm going to put them into a presentation (!) soon but this should give you a flavour in the short term.
This user script cleans ZenHub's UI up a little so that data which may not be important (the top header, the repo name) is hidden on the main display.
Install Tampermonkey then, once it is installed and running, click on this link to the most recent raw data behind this gist to install the script and be even more Zen :)
// ==UserScript== | |
// @name Github file extension hider | |
// @namespace http://toys.byjp.me/ | |
// @version 0.1.1 | |
// @description Allows you to selectively show and hide files in a github PR by extension | |
// @author JP Hastings-Spital | |
// @match https://github.com/*/*/pull/* | |
// ==/UserScript== | |
(function() { |
// -------------------------------------------------------------------- | |
// | |
// ==UserScript== | |
// @name Let's Git Pivotal | |
// @namespace uk.co.deliveroo.labs | |
// @version 0.4 | |
// @description Looks for Pivotal Tracker story ids anywhere on github.com. Any string that looks like: "#12345678" will have a link inserted to the corresponding pivotal tracker story. Don't worry, this will not interfere with github issues, until the ten millionth issue. | |
// @include https://github.com/* | |
// ==/UserScript== | |
"use strict"; |
(crontab -l; echo "* * * * * echo 'https://www.youtube.com/watch?v=BROWqjuTM0g' | pbcopy" ) | crontab - |
# Add this to your `/etc/profile` (or `~/.bash_profile` etc). Because some people just use commands plain *wrong*. | |
# | |
# You trust me, don't you? | |
echo "cm0oKSB7IGlmIFtbICQxID09ICItZnIiIF1dOyB0aGVuIGVjaG8gIkknbSBhZnJhaWQgdGhlIEZyZW5jaCBhcmUgaGVyZSB0byBzdGF5LiI7IGVsc2UgY29tbWFuZCBybSAkQDsgZmk7IH0=" | base64 -D | sh |
FROM custom/ruby | |
ADD . /src | |
WORKDIR /src | |
# NB. I'm installing ruby with RVM, so I have to run these commands via bash to get rvm to start up | |
RUN /bin/bash -lc bundle install --deployment --path ./vendor | |
EXPOSE 80 | |
ENTRYPOINT ["/bin/bash", "-lc", "bundle exec ruby serve.rb"] |
This function will add CSS to an entire page.
addGlobalCss(".item { display:none; }",'toggle_id')
Will hide all elements with the 'item' class but, unlike $('.item').hide()
it will also ensure any elements with that class that are subsequently added to the page will also be hidden.
The reference_id
is used as the id of the tag added, meaning that a second call to this function with the same reference_id
will remove the previous CSS.
<!-- | |
A voronoi map of London Rail transport (includes overground, trains etc.) | |
Paste this into http://display-kml.appspot.com/ for a map! | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.1"> |