sudo apt-get install openvpn
sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa2
cd /etc/openvpn/easy-rsa2
class Array | |
class Position | |
attr_accessor :idx, :max | |
def initialize arr | |
self.max = arr.size | |
end | |
def pos | |
idx + 1 |
class Array | |
class Position | |
def initialize ary | |
@pos = 1 | |
@max = ary.size | |
@cache = Hash.new | |
end | |
def advance | |
@pos += 1 |
module Enumerable | |
class Position | |
def initialize ary | |
@pos = 1 | |
@max = ary.size | |
@cache = Hash.new | |
@warn_other = false | |
end | |
def advance |
delimitMate Report | |
================== | |
* Options: ( ) default, (g) global, (b) buffer | |
( ) delimitMate_apostrophes = '' | |
( ) delimitMate_autoclose = 1 | |
( ) delimitMate_balance_matchpairs = 0 | |
( ) delimitMate_eol_marker = '' | |
( ) delimitMate_excluded_ft = '' |
<div id="image" class="image textbox "> | |
<div class=""> | |
<img src="img.jpg" alt="" original-title=""> | |
</div> | |
</div> |
require 'fruity' | |
compare do | |
rubylovely { | |
a3 = [["a", "b"], ["a","c"], ["b","c"], ["b", "a"], ["c","b"],["b", "a"]] | |
a3.each {|x| a3.delete(x.reverse) if a3.include? x.reverse} | |
} | |
padde { | |
a3 = [["a", "b"], ["a","c"], ["b","c"], ["b", "a"], ["c","b"],["b", "a"]] |
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions xmlns:typens="urn:Magento" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | |
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" | |
name="Magento" targetNamespace="urn:Magento"> | |
<types> | |
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento"> | |
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" /> | |
<complexType name="FixedArray"> | |
<complexContent> | |
<restriction base="soapenc:Array"> |
<wsdl:definitions xmlns:ns2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Magento" targetNamespace="urn:Magento"> | |
<wsdl:types> | |
<xs:schema targetNamespace="urn:Magento"> | |
<xs:attribute name="root"> | |
<xs:annotation> | |
<xs:documentation> | |
'root' can be used to distinguish serialization roots from other | |
elements that are present in a serialization but are not roots of | |
a serialized value graph | |
</xs:documentation> |
puts a=[<<-X*2,?X] | |
puts a=[<<-X*2,?X] | |
X |