Skip to content

Instantly share code, notes, and snippets.

View kuboosoft's full-sized avatar

kuboosoft

  • All world
View GitHub Profile
@kuboosoft
kuboosoft / gist:f2edea98fb7d78ef03de4b5bc352e6e4
Created August 3, 2017 08:11 — forked from djs070/gist:4570480
Install NVM & Node 0.8.17 on Fedora/CentOS
# install git
yum install git -y
# get nvm
git clone git://github.com/creationix/nvm.git ~/nvm
# activate nvm
@kuboosoft
kuboosoft / mock-mirrorlist2baseurl
Created April 29, 2017 01:09 — forked from hroncok/mock-mirrorlist2baseurl
This Bash script helps you to replace mirrorlist with baseurl in your mock config files. It selects the first item in the mirrorlist (should be good enough). To update the mirrors, revert config from backup (.bak) and run again.
#!/usr/bin/env bash
# Copyright (c) 2013, Miro Hrončok <miro@hroncok.cz>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,