Skip to content

Instantly share code, notes, and snippets.

View noherczeg's full-sized avatar

Norbert Csaba Herczeg noherczeg

View GitHub Profile
@noherczeg
noherczeg / node-gyp-fedora.txt
Created June 4, 2016 13:35
fixing node-gyp fails on fedora 23
sudo dnf install make automake gcc gcc-c++ kernel-devel
@noherczeg
noherczeg / docker-commands.txt
Last active May 3, 2017 07:50
Common Docker commands
# ---------------------------------------------
# list images, containers
# ---------------------------------------------
docker images
docker ps -a
# ---------------------------------------------
# Delete all containers
# ---------------------------------------------
docker rm $(docker ps -a -q)
@noherczeg
noherczeg / docker-windows
Created May 26, 2016 17:38
docker run windows commands
winpty docker run -it --rm --net=host -v /dev/shm:/dev/shm -v $(pwd):/protractor webnicer/protractor-headless protractor.conf.js
## source: http://www.if-not-true-then-false.com/2012/install-postgresql-on-fedora-centos-red-hat-rhel/ ##
## Add exclude to /etc/yum.repos.d/fedora.repo file ##
$ nano /etc/yum.repos.d/fedora.repo
[fedora]
...
exclude=postgresql*
## Add exclude to /etc/yum.repos.d/fedora-updates.repo ##
dnf update
hostnamectl set-hostname --static "YOUR_HOST_NAME"
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
dnf install unzip
dnf install pidgin
dnf install VirtualBox
dnf config-manager --add-repo=http://negativo17.org/repos/fedora-spotify.repo
dnf install spotify-client
git apply --ignore-space-change --ignore-whitespace in-memory-views.patch
Shitty Java execs which override path settings on windows...:
- windows/system32
- windows/syswow64
- programData/Oracle
- anything in the path
var Singleton = (function () {
function Singleton() {
this.asd = 'SSSSSS';
}
Singleton.prototype.Singleton = function () { };
Singleton.getInstance = function () {
return Singleton.INSTANCE;
};
Singleton.prototype.sayWhat = function (attr) {
return attr;
@noherczeg
noherczeg / git-rebase.txt
Last active March 11, 2016 01:00
Rebasing in Git
git checkout feature_branch
git rebase master
git checkout master
git merge --squash feature_branch
# -------------------
git checkout feature/foo
git pull --all
git rebase develop