This file contains 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
* { font-family: 'Ubuntu', 'Droid Sans'; } | |
.header { background-color: #000; color: #fff; } | |
.header_logo { font-family: 'Ubuntu'; } | |
.header_tabs a, #subtabs a { font-family: 'Ubuntu'; } | |
#page { width: 90%; } |
This file contains 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
#!/usr/bin/env perl | |
use Mojo::UserAgent; | |
my $endpoint = 'wss://10.0.3.1:17070/'; | |
my $ua = Mojo::UserAgent->new; | |
$ua->websocket( | |
$endpoint => sub { | |
my $tx = pop; |
This file contains 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
#!/usr/bin/env perl | |
use Mojo::Transaction::WebSocket; | |
use DDP; | |
my $endpoint = 'wss://10.0.3.1:17070/'; | |
my $ws = Mojo::Transaction::WebSocket->new( | |
remote_address => '10.0.3.1', | |
remote_port => '17070', |
This file contains 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
#!/usr/bin/python3 | |
from ws4py.client.threadedclient import WebSocketClient | |
from pprint import pprint | |
import json | |
params = {} | |
params['Type'] = "Admin" | |
params['Request'] = 'Login' | |
params['RequestId'] = 1 |
This file contains 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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Mojo::Base -base; | |
use Mojo::UserAgent; | |
my $ua = Mojo::UserAgent->new; | |
$ua->websocket( | |
'wss://10.0.3.1:17070' => sub { | |
my ($ua, $tx) = @_; |
This file contains 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
-- Non-blocking request (https://10.0.3.1:17070) | |
-- Switching to non-blocking mode | |
-- Connect (https:10.0.3.1:17070) | |
-- Client >>> Server (https://10.0.3.1:17070) | |
GET / HTTP/1.1 | |
Connection: Upgrade | |
Content-Length: 0 | |
Host: 10.0.3.1:17070 | |
Sec-WebSocket-Version: 13 | |
Sec-WebSocket-Key: IDg2NzkxMDkxNDU2MjA2MA== |
This file contains 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
(use-package py-autopep8 | |
:config | |
(add-hook 'before-save-hook 'py-autopep8-before-save)) |
This file contains 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/bash | |
sudo apt-update | |
sudo apt-get install -qyf git ubuntu-dev-tools emacs24 | |
# pyenv | |
git clone git://github.com/yyuu/pyenv.git ~/.pyenv | |
# install pyenv virtualenv | |
git clone git://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv |
This file contains 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
# download this file and run | |
# cpanm --installdeps . | |
requires "App::cpanminus" => "0"; | |
requires "Mojo::UserAgent" => "0"; | |
requires "strict" => "0"; | |
requires "warnings" => "0"; | |
requires "App::Ack" => "0"; | |
requires "App::Cmd" => "0"; | |
requires "App::Cronjob" => "0"; |
This file contains 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
def run(self): | |
if os.path.exists(self.container_abspath): | |
log.error("Container exists, exiting.") | |
# Container exists, handle return code in installer | |
sys.exit(1) | |
self.ui.info_message( | |
"* Please wait while we generate your isolated environment ...") | |
utils.ssh_genkey() | |
self.prep_userdata() |