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
cat helloworldbin | ssh server01 'sh -c '"'"'tmp=$(mktemp -d); cat > $tmp/helloworldbin; chmod +x $tmp/helloworldbin; $tmp/helloworldbin; rm -fr $tmp '"'" |
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 | |
git config --global core.editor 'vim -c "set fenc=utf-8"' | |
ls ~/.config/git 2>/dev/null >/dev/null || mkdir -p ~/.config/git | |
cat << __EOF__ > ~/.config/git/gitignore | |
.idea | |
tags | |
TAGS |
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
$ ks pkg list # Packageの一覧を確認する。 | |
REGISTRY NAME VERSION INSTALLED ENVIRONMENTS | |
======== ==== ======= ========= ============ | |
helm-stable acs-engine-autoscaler 2.2.0 | |
helm-stable aerospike 0.1.7 | |
helm-stable anchore-engine 0.2.0 | |
...(すごく多いので略 | |
helm-stable risk-advisor 2.0.4 | |
helm-stable rocketchat 0.1.3 | |
helm-stable rookout 0.1.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
# /etc/dnsmasq.d/2nd_dns | |
server=/.localdomain/192.168.0.2 |
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
import paramiko | |
c = paramiko.client.SSHClient() | |
c.load_system_host_keys() | |
c.set_missing_host_key_policy(paramiko.client.AutoAddPolicy()) | |
c.connect('192.168.0.1', username='ubuntu', password='password', | |
sock=paramiko.ProxyCommand('ssh -W 192.168.0.1:22 -w 120 10.0.0.1')) | |
_in, _out, _err = c.exec_command('ls -la') | |
print _out.read() |
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
uwsgi --wsgi-file app.py --http 0.0.0.0:8080 |
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
RemoteDisplay.vnc.enabled = TRUE | |
RemoteDisplay.vnc.port = 5900 | |
RemoteDisplay.vnc.password = password | |
RemoteDisplay.vnc.keyMap = jp |
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
jenkins.model.Jenkins.instance.securityRealm.createAccount("user-name", "password"); |
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
curl https://pypi.python.org/pypi/pip/json | jq '.releases | keys[]' -r |
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
import json | |
import sys | |
from oslo_config import cfg | |
import oslo_i18n | |
from neutron.agent import rpc | |
from neutron.common import config | |
from neutron.common import rpc as n_rpc | |
from neutron.common import topics |
NewerOlder