Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴 🌞 🍷

Bartosz Majsak bartoszmajsak

🌴 🌞 🍷
View GitHub Profile
@surajnarwade
surajnarwade / operatorTalks.md
Created Jan 25, 2019
Talks related to Controllers & Operators
View operatorTalks.md
@staltz
staltz / introrx.md
Last active Jan 30, 2023
The introduction to Reactive Programming you've been missing
View introrx.md
@melix
melix / convert.groovy
Created Jul 17, 2013
Convert Confluence HTML export into asciidoc
View convert.groovy
@Grab('net.sourceforge.htmlcleaner:htmlcleaner:2.4')
import org.htmlcleaner.*
def src = new File('html').toPath()
def dst = new File('asciidoc').toPath()
def cleaner = new HtmlCleaner()
def props = cleaner.properties
props.translateSpecialEntities = false
def serializer = new SimpleHtmlSerializer(props)
@adamesque
adamesque / linky.sh
Created Dec 22, 2012
Replace a symlink with a copy of its target.
View linky.sh
#!/usr/bin/env bash
set -e
symlink=$1
main() {
enforce_usage
if [[ -h $symlink ]]; then
remove_and_copy
fi
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: