Skip to content

Instantly share code, notes, and snippets.

View bartoszmajsak's full-sized avatar
🎯
🏃🏻 ☕ ⌨️ 🔁

Bartosz Majsak bartoszmajsak

🎯
🏃🏻 ☕ ⌨️ 🔁
View GitHub Profile
@surajnarwade
surajnarwade / operatorTalks.md
Created January 25, 2019 06:03
Talks related to Controllers & Operators
@staltz
staltz / introrx.md
Last active November 21, 2024 16:58
The introduction to Reactive Programming you've been missing
@melix
melix / convert.groovy
Created July 17, 2013 12:57
Convert Confluence HTML export into asciidoc
@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 December 22, 2012 00:18
Replace a symlink with a copy of its target.
#!/usr/bin/env bash
set -e
symlink=$1
main() {
enforce_usage
if [[ -h $symlink ]]; then
remove_and_copy
fi
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

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: