草のところのsvg を github というファイルに保存して、 github.csv というファイルにする。
GHE側でも同様に、ghe.csv を作る
$ grep "data-date" github | cut -d ' ' -f 18,19 | cut -d'>' -f1 | sed -e 's/data-count="\([^"]*\)" data-date="\([^"]*\)"/\2,\1/' > github.csv
草のところのsvg を github というファイルに保存して、 github.csv というファイルにする。
GHE側でも同様に、ghe.csv を作る
$ grep "data-date" github | cut -d ' ' -f 18,19 | cut -d'>' -f1 | sed -e 's/data-count="\([^"]*\)" data-date="\([^"]*\)"/\2,\1/' > github.csv
| # Install https://github.com/colosa/processmaker | |
| # This script must be run as root user. | |
| # If you want to run as non-root user, add sudo. | |
| apt install -y \ | |
| libxml2-dev libcurl4-openssl-dev libfreetype6-dev libjpeg-dev libpng12-dev libbz2-dev libmcrypt-dev libmm-dev libxslt1-dev \ | |
| php5 php5-common php5-cli php5-mysql php5-gd php5-fpm php-pear php5-dev php5-mcrypt php5-curl libapache2-mod-php5 | |
| This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) | |
| restricted \write18 enabled. | |
| entering extended mode | |
| (/home/docs/checkouts/readthedocs.org/user_builds/ja-sample/checkouts/latest/_b | |
| uild/latex/japanesedocumentsample.tex | |
| LaTeX2e <2011/06/27> | |
| Babel <3.9h> and hyphenation patterns for 78 languages loaded. | |
| (./sphinxmanual.cls | |
| Document Class: sphinxmanual 2009/06/02 Document class (Sphinx manual) |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Envelope vmw:buildId="build-913577" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <References> | |
| <File ovf:href="a-disk1.vmdk" ovf:id="file1" ovf:size="68096" /> | |
| </References> | |
| <DiskSection> | |
| <Info>Virtual disk information</Info> | |
| <Disk ovf:capacity="16" ovf:capacityAllocationUnits="byte * 2^20" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="0" /> | |
| <Disk ovf:capacity="36" ovf:capacityAllocationUnits="byte * 2^20" ovf:diskId="vmdisk2" ovf:format="http://www.vmware.com |
| from parsimonious.grammar import Grammar | |
| conf = """diag read interface-id 1 | |
| enable | |
| ! | |
| interfae vlan 1 | |
| ! | |
| interface ip hoo | |
| interface id | |
| interface route |
| Param([string]$interfaceName, [string]$ip, [int]$prefixLength, [string]$gateway, [string[]]$dnsServers, [string]$serverName, [string]$ntpServer) | |
| # Utility functions | |
| function SetIPAddress ([string]$interfaceName, [string]$ip, [int]$prefixLength, [string]$gateway){ | |
| Get-NetAdapter $interface | New-NetIPAddress -IPAddress $ip -PrefixLength $prefixlength -DefaultGateway $gateway | |
| } | |
| function SetDNS ([string]$interface, [string[]]$dnsServers){ | |
| Get-NetAdapter $interface | Set-DnsClientServerAddress -ServerAddresses $dnsServers | |
| } | |
| function DisableIPv6 ([string]$interface) { |
| x = 0 | |
| def f(): | |
| """ 適当にTrueが返る | |
| >>> sys.stdout.write("magic comment:"); f() # doctest:+ELLIPSIS | |
| magic comment:... | |
| True | |
| """ | |
| for s in range(0, 2): |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*-. | |
| import exceptions | |
| import requests | |
| import tempfile | |
| from bs4 import BeautifulSoup | |
| def main(): | |
| module = AnsibleModule( |
| # Install basic packages | |
| sudo apt-get update | |
| sudo apt-get install zsh vim git curl wget | |
| # pyenv installer | |
| sudo apt-get install libreadline-dev libbz2-dev libsqlite3-dev | |
| curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |