Skip to content

Instantly share code, notes, and snippets.

View coderaiser's full-sized avatar

coderaiser coderaiser

View GitHub Profile
{
"name": "cloudcmd-screen",
"version": "0.1.0",
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
"description": "Cloud Commander screens",
"homepage": "http://status-ok.cloudcmd.io",
"repository": {
"type": "git",
"url": "git://github.com/cloudcmd/screen.git"
},
var Term;
(function() {
'use strict';
var socket = io.connect();
window.addEventListener('load', function() {
var element = document.getElementById('js-terminal'),
cell = createCell(element),
#!/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 ../..
(function() {
'use strict';
var fs = require('fs'),
exec = require('child_process').exec,
HEADER = '---' + '\n' +
'layout: default' + '\n' +
'---' + '\n';
cmd('git checkout master', function() {
@coderaiser
coderaiser / .bashrc
Last active December 18, 2015 16:39
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'
@coderaiser
coderaiser / .bash_profile
Last active December 16, 2015 04:29
.bash_profile
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'
@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
@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')},
@coderaiser
coderaiser / getAllTracksFromVK.html
Last active April 9, 2020 09:22
Get all tracks from profile on vk.com. http://jsfiddle.net/coderaiser/jdUSY/
<!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>
@coderaiser
coderaiser / webrtc.js
Last active October 9, 2018 19:43
Пример использования WebRTC
/*
* пример использования WebRTC
* http://rastacoding.kodingen.com/webrtc
*/
(function(){
'use strict'
/* определяем вариант функции getUserMedia в зависимости от браузера */
navigator.getUserMedia = navigator.getUserMedia || /* версия, которая останется */
navigator.webkitGetUserMedia || /* chrome и safari */