Skip to content

Instantly share code, notes, and snippets.

View longtimeago's full-sized avatar

Paul Polishchuk longtimeago

View GitHub Profile
@longtimeago
longtimeago / GUI_inside_docker.txt
Created January 6, 2017 09:21
Running GUI apps inside a Docker container
1) Install xnest on host PC
2) Run xnest on host PC
Xnest -ac -listen tcp :1
Should see an empty window on host PC
3) Set env variable inside a container
export DISPLAY <HOST_PC_IP> :1
4) Run GUI app inside a container
@longtimeago
longtimeago / Release
Created March 30, 2016 15:36
Releasing maven plugin
https://github.com/maven-download-plugin/maven-download-plugin/wiki#doing-a-release
@longtimeago
longtimeago / squash-commits.md
Last active April 1, 2024 20:44
How to squash commits in a GitHub pull request

How to squash commits in a GitHub pull request

o you've contributed some code to an open source project, say, Rails. And they'd like you to squash all of the commits in your pull request. But you're not a git wizard; how do you make this happen?

Normally, you'd do something like this. I'm assuming upstream is a git remote that is pointing at the official project repository, and that your changes are in your 'omgpull' branch:

/*
The MIT License (MIT)
Copyright (c) 2016 Paul Polishchuk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is