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
# For zshrc setting | |
echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.zshrc | |
echo 'if [ -d "${PYENV_ROOT}" ]; then' >> ~/.zshrc | |
echo ' export PATH=${PYENV_ROOT}/bin:$PATH' >> ~/.zshrc | |
echo ' eval "$(pyenv init -)"' >> ~/.zshrc | |
echo 'fi' >> ~/.zshrc | |
exec $SHELL -l | |
# Install pyenv & virtualenv |
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
package main | |
import ( | |
"time" | |
"github.com/jinzhu/gorm" | |
_ "github.com/mattn/go-sqlite3" | |
) | |
func main() { |
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
# 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 | |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*-. | |
import exceptions | |
import requests | |
import tempfile | |
from bs4 import BeautifulSoup | |
def main(): | |
module = AnsibleModule( |
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
x = 0 | |
def f(): | |
""" 適当にTrueが返る | |
>>> sys.stdout.write("magic comment:"); f() # doctest:+ELLIPSIS | |
magic comment:... | |
True | |
""" | |
for s in range(0, 2): |
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
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) { |
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
from parsimonious.grammar import Grammar | |
conf = """diag read interface-id 1 | |
enable | |
! | |
interfae vlan 1 | |
! | |
interface ip hoo | |
interface id | |
interface route |
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
<?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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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) |