Skip to content

Instantly share code, notes, and snippets.

View coderaiser's full-sized avatar

coderaiser coderaiser

View GitHub Profile
@tarzak
tarzak / farlike.css
Created June 17, 2014 11:45
cloudcmd template Far like
body {
background-color: #000080;
color: #0FF;
}
a {
color: #0FF;
}
.cmd-button {
@mattdesl
mattdesl / README.md
Last active August 29, 2015 14:07
push current module folder to a new GitHub repository
  • 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 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),
@coderaiser
coderaiser / c9kill.js
Created November 28, 2012 13:07
Kill active node process in cloud9 ide
/* 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 */
@coderaiser
coderaiser / filepicker_remover.js
Last active December 15, 2015 12:39
Bookmarklet removes all files from filepicker.io page.
(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')},
@Infocatcher
Infocatcher / request.js
Last active December 15, 2015 21:39
Получение свойств файла по ссылке, пример для статьи на habrahabr.ru Getting file's properties by it's URL, example for article on habrahabr.ru http://habrahabr.ru/post/175745/
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>
@coderaiser
coderaiser / help.sh
Last active December 16, 2015 04:29
linux help file
#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 ../..
@mikeal
mikeal / gist:8947417
Created February 12, 2014 00:27
NPM history.

[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.