This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "cloudcmd-screen", | |
"version": "0.1.0", | |
"author": "coderaiser <[email protected]> (https://github.com/coderaiser)", | |
"description": "Cloud Commander screens", | |
"homepage": "http://status-ok.cloudcmd.io", | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/cloudcmd/screen.git" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Term; | |
(function() { | |
'use strict'; | |
var socket = io.connect(); | |
window.addEventListener('load', function() { | |
var element = document.getElementById('js-terminal'), | |
cell = createCell(element), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git clone [email protected]:cloudcmd/io-ru | |
cd io-ru | |
git submodule init | |
git submodule update | |
cd _layouts && git checkout master | |
cd ../.. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
var fs = require('fs'), | |
exec = require('child_process').exec, | |
HEADER = '---' + '\n' + | |
'layout: default' + '\n' + | |
'---' + '\n'; | |
cmd('git checkout master', function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT_COMMAND='echo -ne "\033]0;${C9_USER}@${C9_PROJECT}: ${PWD/#$HOME/~}\007"' | |
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]${PWD/#$HOME/~}\[\033[00m\]$(__git_ps1 " (%s)") $ ' | |
alias ls='ls --color=auto -F' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT_COMMAND='echo -ne "\033]0;${C9_USER}@${C9_PROJECT}: ${PWD/#$HOME/~}\007"' | |
PS1='\[\033[01;32m\]$\u@$\h\[\033[00m\]:\[\033[01;34m\]${PWD/#$HOME/~}\[\033[00m\]$(__git_ps1 " (%s)") $ ' | |
alias ls='ls --color=auto -F' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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')}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<link href=//twitter.github.com/bootstrap/assets/css/bootstrap.css rel=stylesheet> | |
<link href=style.css rel=stylesheet> | |
</head> | |
<body> | |
<button id=login class="btn btn-success margin">Вход</button> | |
<div class="btn-group margin hidden"> | |
<button id=logout class="btn btn-success">Выход</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* пример использования WebRTC | |
* http://rastacoding.kodingen.com/webrtc | |
*/ | |
(function(){ | |
'use strict' | |
/* определяем вариант функции getUserMedia в зависимости от браузера */ | |
navigator.getUserMedia = navigator.getUserMedia || /* версия, которая останется */ | |
navigator.webkitGetUserMedia || /* chrome и safari */ |