- Copy
ghrepo.sh
to~/
. - Setup permissions.
cd ~/
chmod +x ./ghrepo.sh
- In
~/.bash_profile
, add the following alias:
alias ghrepo=$HOME/ghrepo.sh
- Install modified
gh
andpackage-field
tools:
npm install gh package-field -g
body { | |
background-color: #000080; | |
color: #0FF; | |
} | |
a { | |
color: #0FF; | |
} | |
.cmd-button { |
ghrepo.sh
to ~/
.cd ~/
chmod +x ./ghrepo.sh
~/.bash_profile
, add the following alias:alias ghrepo=$HOME/ghrepo.sh
gh
and package-field
tools:npm install gh package-field -g
var Term; | |
(function() { | |
'use strict'; | |
var socket = io.connect(); | |
window.addEventListener('load', function() { | |
var element = document.getElementById('js-terminal'), | |
cell = createCell(element), |
/* c9.io kill active node process */ | |
(function(){ | |
"use strict"; | |
var exec = require('child_process').exec, | |
lCmd = 'kill -9' + ' ' + /* kill finded process */ | |
'`ps ax' + '|' + /* show all process */ | |
'grep node-openshift' + '|' + /* find node-openshift */ | |
'grep -v grep' + '|' + /* exlude grep command */ |
(function(){ | |
'use strict'; | |
var REMOVE_URL = '/apps/' + server_vars.apikey + '/console/remove/', | |
Files = $('tr.filelink'); | |
for(var i = 0; i < Files.length; i++){ | |
$.ajax({ | |
url: REMOVE_URL, | |
data: {'handle': $(Files[i]).data('handle')}, |
var uriString = "https://addons.mozilla.org/firefox/downloads/latest/413716/addon-413716-latest.xpi"; | |
var referer = "https://addons.mozilla.org/"; | |
var private = false; // Отсылать запрос в приватном режиме | |
var ios = Components.classes["@mozilla.org/network/io-service;1"] | |
.getService(Components.interfaces.nsIIOService); | |
var uri = ios.newURI(uriString, null, null); | |
var scheme = uri.scheme && uri.scheme.toLowerCase(); | |
var channel = scheme == "about" && "nsIAboutModule" in Components.interfaces |
--- | |
layout: nil | |
--- | |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
{% for post in site.posts %} | |
<url> | |
<loc>http://tedhagos.com/misc/{{ post.url }}</loc> | |
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod> | |
<changefreq>daily</changefreq> |
#torrent | |
sudo apt-get install deluged deluge-console deluge-web #password deluge | |
#aria2c http://aria2.sourceforge.net/ | |
#создать архив c прогрессбаром и записать его в файл | |
tar -c cloud9 |gzip --stdout | pv > cloud9.tar.gz | |
#ncurses problem debian | |
sudo apt-get install libncurses5-dev libncursesw5-dev |
#!/bin/sh | |
git clone git@github.com:cloudcmd/io-ru | |
cd io-ru | |
git submodule init | |
git submodule update | |
cd _layouts && git checkout master | |
cd ../.. |
[In reply to https://news.ycombinator.com/item?id=7219005]
Here's the history, hope it helps.
I wrote the original version of the npm registry in a day or two on top of CouchDB. I built it quickly and didn't think much about scale.
Isaacs continued to improve and maintain that code. At one point he even wrote up an open standard for generic js package registries for CommonJS but they didn't seem to care (they were too busy arguing about promises).
At the time I wrote the initial code I was employed at CouchOne and we had a small CouchDB hosting platform operated by Jason Smith which is where we ran the registry free of charge. Later on, after CouchOne was aquired by Membase and became Couchbase, it decided to break off the hosting company and give/sell it to Jason Smith, which became IrisCouch.