Commit 60011022 authored by Pallav Agarwal's avatar Pallav Agarwal

Precompiled site

parents
This diff is collapsed.
<title>Package Management without root access - An intro to LinuxBrew - VARSTACK</title>
<meta charset="utf-8"/>
<link href='http://fonts.googleapis.com/css?family=Courgette' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/highlighting.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/SmoothScroll.js"></script>
<script src="/js/script.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<div class="container">
<div class="row" id="menu">
<div class="table_this" id="tableRow">
<div class="col-sm-3 vcenter" id="site_title">VARSTACK</div>
<div class="col-sm-6 vcenter">
<div class="row" id="top_menu">
<ul class="nav nav-pills">
<li class="active"><a href="#">Blog</a></li>
</ul>
</div>
</div>
<div class="col-sm-3 vcenter">
<div class="row">
<form action="/search/" id='search-form'>
<input id="search-box" type="text" name="query" placeholder="Search..">
</form>
</div>
</div>
</div>
</div>
<div class="row" id="content">
<div class="col-sm-3" id="recent">
<h4>RECENT POSTS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/26/Linuxbrew/" class="color_change">Package Management without root access -...</a>
</li>
<li>
<a href="/2015/06/18/IIT-Kanpur/" class="color_change">IIT Kanpur: The First Year</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
<br />
<h3>Package Management without root access - An intro to LinuxBrew</h3>
<hr />
<div class="row text-justify" id="content-holder">
<p>First a little background. At my college, we are given login accounts for
accessing PC's at the Computer Labs. I usually use them for setting up
my work environment for easy access through SSH. Though that makes it very easy
for me to resume my work, from any computer or laptop on the network, the preinstalled
packages are too old for my taste.</p>
<p>Have a look:</p>
<p><img src="/img/oldVersions.png" alt="Versions before LinuxBrew update" class='img-responsive'></p>
<p>This is what we want to end up with:</p>
<p><img src="/img/newVersions.png" alt="Versions after LinuxBrew update" class='img-responsive'>
<br /></p>
<p>Of course, this can be achieved by compiling the packages after setting the prefix to
a directory with write permissions. But still, you can't deny the advantages of a
package manager over such an approach.</p>
<p>LinuxBrew is a Linux-fork of the popular Mac OS X HomeBrew package manager. One of its
foremost advantages is the fact that, by default, it installs packages in a folder in
home directory of the user and thus doesn't need root access.</p>
<h3>So, Let's get started!</h3>
<p>First paste the following in a terminal:</p>
<div class="highlight"><pre><code class="language-bash" data-lang="bash">git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew</code></pre></div>
<p><br /></p>
<p><em>If the system doesn't have git installed, you can either try
the methods on the installation page ( <a href="http://brew.sh/linuxbrew/">here</a> )
or download the files using a browser to a new <code>.linuxbrew</code> folder in
your home directory. (in case of ssh, download to a local computer
and scp them over).</em></p>
<p><br /></p>
<p>Now we need to tell linux where to look for executables for the packages
installed by LinuxBrew. To achieve that, add the following to your
<code>.bashrc</code> or <code>.zshrc</code> or <code>.profile</code> (Usually in your home directory)</p>
<p><br /></p>
<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">export </span><span class="nv">PATH</span><span class="o">=</span><span class="s2">&quot;$HOME/.linuxbrew/bin:$PATH&quot;</span>
<span class="nb">export </span><span class="nv">MANPATH</span><span class="o">=</span><span class="s2">&quot;$HOME/.linuxbrew/share/man:$MANPATH&quot;</span>
<span class="nb">export </span><span class="nv">INFOPATH</span><span class="o">=</span><span class="s2">&quot;$HOME/.linuxbrew/share/info:$INFOPATH&quot;</span></code></pre></div>
<p>For the changes to take place, either run <code>source .bashrc</code> (after replacing
.bashrc with the appropriate filename) or log-out and log-in.</p>
<p><br /></p>
<h4>Congrats! LinuxBrew is now installed.</h4>
<p>You can run <code>brew update</code> and <code>brew doctor</code> to see if everything has been setup
properly.</p>
<p>You can now run <code>brew install</code> to install packages as shown:</p>
<pre><code class="bash">brew install git
brew install python
brew install curl
</code></pre>
<p><br /></p>
<p>You can also head over to <a href="http://braumeister.org">Braumeister</a> to check
which packages are supported. Since this is a fork of MacOS's homebrew,
not all linux are supported (yet) but this is a very actively developed
project and chances are, by the time you are reading this, it would
be as perfect as other linux package managers.</p>
<p><br /><br /></p>
</div>
</div>
</div>
<div class="col-sm-2">
</div>
</div>
</div>
<div class="modal fade" id="imagemodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="myModalLabel">
Image Preview
</h4>
</div>
<div class="modal-body">
<img src="" id="imagepreview" style="max-height: 100%; max-width: 100%;">
</div>
</div>
</div>
</div>
www.varstack.com
source 'https://rubygems.org'
require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)
gem 'jekyll-watch'
gem 'github-pages', versions['github-pages']
GEM
remote: https://rubygems.org/
specs:
RedCloth (4.2.9)
activesupport (4.2.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
blankslate (2.1.2.4)
celluloid (0.16.0)
timers (~> 4.0.0)
classifier-reborn (2.0.3)
fast-stemmer (~> 1.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
colorator (0.1)
execjs (2.5.2)
fast-stemmer (1.0.2)
ffi (1.9.8)
gemoji (2.1.0)
github-pages (37)
RedCloth (= 4.2.9)
github-pages-health-check (~> 0.2)
jekyll (= 2.4.0)
jekyll-coffeescript (= 1.0.1)
jekyll-feed (= 0.3.0)
jekyll-mentions (= 0.2.1)
jekyll-redirect-from (= 0.8.0)
jekyll-sass-converter (= 1.2.0)
jekyll-sitemap (= 0.8.1)
jemoji (= 0.4.0)
kramdown (= 1.5.0)
liquid (= 2.6.2)
maruku (= 0.7.0)
mercenary (~> 0.3)
pygments.rb (= 0.6.1)
rdiscount (= 2.1.7)
redcarpet (= 3.1.2)
terminal-table (~> 1.4)
github-pages-health-check (0.3.1)
net-dns (~> 0.6)
public_suffix (~> 1.4)
hitimes (1.2.2)
html-pipeline (1.9.0)
activesupport (>= 2)
nokogiri (~> 1.4)
i18n (0.7.0)
jekyll (2.4.0)
classifier-reborn (~> 2.0)
colorator (~> 0.1)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 2.6.1)
mercenary (~> 0.3.3)
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
safe_yaml (~> 1.0)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-feed (0.3.0)
jekyll-gist (1.2.1)
jekyll-mentions (0.2.1)
html-pipeline (~> 1.9.0)
jekyll (~> 2.0)
jekyll-paginate (1.1.0)
jekyll-redirect-from (0.8.0)
jekyll (>= 2.0)
jekyll-sass-converter (1.2.0)
sass (~> 3.2)
jekyll-sitemap (0.8.1)
jekyll-watch (1.2.1)
listen (~> 2.7)
jemoji (0.4.0)
gemoji (~> 2.0)
html-pipeline (~> 1.9)
jekyll (~> 2.0)
json (1.8.3)
kramdown (1.5.0)
liquid (2.6.2)
listen (2.10.0)
celluloid (~> 0.16.0)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
maruku (0.7.0)
mercenary (0.3.5)
mini_portile (0.6.2)
minitest (5.7.0)
net-dns (0.8.0)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.11)
public_suffix (1.5.1)
pygments.rb (0.6.1)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rb-fsevent (0.9.5)
rb-inotify (0.9.5)
ffi (>= 0.5.0)
rdiscount (2.1.7)
redcarpet (3.1.2)
safe_yaml (1.0.4)
sass (3.4.14)
terminal-table (1.4.5)
thread_safe (0.3.5)
timers (4.0.1)
hitimes
toml (0.1.2)
parslet (~> 1.5.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
yajl-ruby (1.2.1)
PLATFORMS
ruby
DEPENDENCIES
github-pages (= 37)
jekyll-watch
json
BUNDLED WITH
1.10.3
# pallavagarwal07.github.io
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
pre { background-color: #FFF9C9 }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #FF0000; background-color: #FFAAAA } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .o { color: #333333 } /* Operator */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #557799 } /* Comment.Preproc */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #0044DD } /* Generic.Traceback */
.highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #333399; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #6600EE; font-weight: bold } /* Literal.Number */
.highlight .s { color: #0f7000 } /* Literal.String */
.highlight .s2 { color: #0f7000 } /* Literal.String.Double */
.highlight .na { color: #0000CC } /* Name.Attribute */
.highlight .nb { color: #007020 } /* Name.Builtin */
.highlight .nc { color: #BB0066; font-weight: bold } /* Name.Class */
.highlight .no { color: #003366; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
.highlight .ni { color: #880000; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0066BB; font-weight: bold } /* Name.Function */
.highlight .nl { color: #997700; font-weight: bold } /* Name.Label */
.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #007700 } /* Name.Tag */
.highlight .nv { color: #996633 } /* Name.Variable */
.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
.highlight .sb { color: #666666; font-weight: bold;} /* Literal.String.Backtick */
.highlight .sc { color: #0044DD } /* Literal.String.Char */
.highlight .sd { color: #DD4422 } /* Literal.String.Doc */
.highlight .se { color: #666666; font-weight: bold;} /* Literal.String.Escape */
.highlight .sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
.highlight .si { background-color: #eeeeee } /* Literal.String.Interpol */
.highlight .sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
.highlight .sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
.highlight .s1 { background-color: #fff0f0 } /* Literal.String.Single */
.highlight .ss { color: #AA6600 } /* Literal.String.Symbol */
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #336699 } /* Name.Variable.Class */
.highlight .vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
.highlight .vi { color: #3333BB } /* Name.Variable.Instance */
.highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#menu {
height: 85px;
background-color: White; }
#image {
height: 500px; }
#content {
padding-top: 15px;
background-color: white; }
#bg-img {
position: absolute;
width: 100%;
z-index: -1000; }
#data {
font-size: 15px;
font-weight: 500;
line-height: 1.4; }
#site_title {
font-family: 'Courgette', cursive;
font-size: 25px; }
#recent h4 {
color: #959595; }
.color_change {
color: #777; }
.vcenter {
display: table-cell;
vertical-align: middle;
float: none; }
.table_this {
display: table;
height: 100%;
width: 100%; }
.modal-dialog {
width: auto;
max-width: 97%;
display: inline-block; }
.img-responsive {
cursor: -moz-zoom-in;
cursor: -webkit-zoom-in;
cursor: url(../img/cursors/enlarge.cur); }
.modal {
text-align: center; }
.modal .modal-header {
text-align: left; }
input {
width: 100%;
height: 100%;
margin-top: 15px;
padding-left: 10px;
border-radius: 10px; }
hr {
border: 0;
height: 2px;
background-image: linear-gradient(to right, rgba(192, 63, 63, 0), rgba(192, 63, 63, 0.75), transparent); }
body {
font-family: 'Lato', sans-serif; }
favicon.ico

4.04 KB

This source diff could not be displayed because it is too large. You can view the blob instead.
google-site-verification: google9e4f8c5b081efbdd.html
\ No newline at end of file
<title>Homepage - VARSTACK</title>
<meta charset="utf-8"/>
<link href='http://fonts.googleapis.com/css?family=Courgette' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/highlighting.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/SmoothScroll.js"></script>
<script src="/js/script.js"></script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<img src="/img/langs.png" id="bg-img" alt="Programming Languages Banner">
<div class="container">
<div class="row" id="menu">
<div class="table_this" id="tableRow">
<div class="col-sm-3 vcenter" id="site_title">VARSTACK</div>
<div class="col-sm-6 vcenter">
<div class="row" id="top_menu">
<ul class="nav nav-pills">
<li class="active"><a href="#">Blog</a></li>
</ul>
</div>
</div>
<div class="col-sm-3 vcenter">
<div class="row">
<form action="/search/" id='search-form'>
<input id="search-box" type="text" name="query" placeholder="Search..">
</form>
</div>
</div>
</div>
</div>
<div class="row" id="image"> </div>
<div class="row" id="content">
<div class="col-sm-3" id="recent">
<h4>RECENT POSTS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/26/Linuxbrew/" class="color_change">Package Management without root access -...</a>
</li>
<li>
<a href="/2015/06/18/IIT-Kanpur/" class="color_change">IIT Kanpur: The First Year</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
<br />
<h3>Homepage</h3>
<hr />
<div class="row text-justify" id="content-holder">
<div class="col-sm-4" id="tile_posts">
</div>
<div class="col-sm-4" id="tile_minute">
</div>
<div class="col-sm-4" id="tile_about">
</div>
</div>
</div>
</div>
<div class="col-sm-2">
</div>
</div>
</div>
<div class="modal fade" id="imagemodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="myModalLabel">
Image Preview
</h4>
</div>
<div class="modal-body">
<img src="" id="imagepreview" style="max-height: 100%; max-width: 100%;">
</div>
</div>
</div>
</div>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
\ No newline at end of file
(function() {
window.requestAnimationFrame = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame || function(f) {
return setTimeout(f, 1000 / 60);
};
this.parallax = function() {
var banH, divH, img, imgH, imgW, scrollTop, top;
img = $('#bg-img');
imgH = img.height();
imgW = img.height();
banH = $('#menu').height();
divH = $('#image').height();
if (img.css('display') !== 'none') {
if ((banH + divH) >= imgH) {
$('#image').css('height', (imgH - banH) + 'px');
} else if ((imgH - banH) > 500) {
$('#image').css('height', '500px');
} else {
$('#image').css('height', (imgH - banH) + 'px');
}
}
divH = $('#image').height();
scrollTop = window.pageYOffset;
top = -(imgH - banH - divH) + scrollTop * (1 + (imgH - banH - divH) / (banH + divH));
if (img.css('display') !== 'none') {
img.css('top', top + 'px');
img.css('clip', 'rect(' + (-top + banH) + 'px, auto, ' + (-top + banH + divH) + 'px, auto)');
}
if (-top + banH + divH < 0 && img.css('display') !== 'none') {
return img.hide();
} else if (-top + banH + divH > 0 && img.css('display') === 'none') {
return img.show();
}
};
this.imgSet = function() {
var arr, i, im2, j, ref, results;
arr = $('.img-responsive');
results = [];
for (i = j = 0, ref = arr.length - 1; 0 <= ref ? j <= ref : j >= ref; i = 0 <= ref ? ++j : --j) {
im2 = $(arr[i]);
console.log(im2);
results.push(im2.on("click", function() {
console.log(this);
$('#imagepreview').attr('src', $(this).attr('src'));
return $('#imagemodal').modal('show');
}));
}
return results;
};
window.addEventListener('scroll', (function() {
return requestAnimationFrame(parallax);
}), false);
window.addEventListener('resize', (function() {
return requestAnimationFrame(parallax);
}), false);
$(this.parallax);
$(this.imgSet);
}).call(this);
(function() {
var escapeRegExp, searchInit;
escapeRegExp = function(str) {
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
};
String.prototype.count = function(word) {
var score;
word = escapeRegExp(word);
score = (this.match(new RegExp('(([^\\w]|\^)' + word + '(?\!\\w))', 'gi')) || []).length;
return score;
};
searchInit = function() {
var div, i, item, j, k, l, len, len1, len2, obj, pairs, posts, ref, searchText, title, txt, word;
posts = $('.post');
obj = (function() {
var i, len, results;
results = [];
for (i = 0, len = posts.length; i < len; i++) {
item = posts[i];
results.push({
item: item,
score: 0
});
}
return results;
})();
ref = window.location.href.split('?query='), searchText = ref[ref.length - 1];
searchText = decodeURIComponent(searchText).split(/[^\w]/);
for (i = 0, len = obj.length; i < len; i++) {
pairs = obj[i];
title = $(pairs.item).children('.shead').text();
txt = $(pairs.item).text();
for (j = 0, len1 = searchText.length; j < len1; j++) {
word = searchText[j];
if (word.length > 0) {
pairs.score += 2 * title.count(word) + 1 * txt.count(word);
}
}
}
obj = (function() {
var l, len2, results;