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
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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
Horizon configuration: | |
grep ^[^#] /etc/openstack-dashboard/local_settings | |
Nova Conf | |
cat /etc/nova/nova.conf | |
List Openstack Packstack | |
rpm -qa | grep -e openstack-keystone -e puppet -e openstack-packstack | |
Gen Answer |
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
virsh net-info default #List info of default network | |
virsh net-define /usr/share/libvirt/networks/default.xml | |
default.xml | |
network> | |
<name>default</name> | |
<bridge name="virbr0"/> | |
<forward/> | |
<ip address="192.168.122.1" netmask="255.255.255.0"> | |
<dhcp> |
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
/sbin/iptables -t nat -A POSTROUTING -o br1 -j MASQUERADE | |
/sbin/iptables -A FORWARD -i br1 -o vnet0 -m state --state RELATED,ESTABLISHED -j ACCEPT | |
/sbin/iptables -A FORWARD -i vnet0 -o br1 -j ACCEPT | |
iptables -n -L -v |
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
ip link set br-ex down | |
brctl delbr br-ex | |
ifconfig eth0 192.168.1.5 netmask 255.255.255.0 up |
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
Overview | |
example.app:80 | |
| <--Link by Hosts File | |
+--> 127.65.43.21:80 | |
| <--Link by netsh Utility | |
+--> localhost:8081 | |
Actions | |
Started my server on localhost:8081 | |
Added my "local DNS" in the hosts file as a new line | |
127.65.43.21 example.app |
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
sudo cp /lib/systemd/system/docker.service /etc/systemd/system/docker.service | |
sudo vi /etc/systemd/system/docker.service | |
Line 14: ExecStart=/usr/bin/dockerd -H fd:// --mtu=1442 --containerd=/run/containerd/containerd.sock | |
sudo systemctl daemon-reload | |
sudo service docker restart |
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
qemu-img create -f qcow2 /home/nokia/vm/win10.qcow2 50G | |
#1 virt-install --virt-type kvm --connect qemu:///system -n win10 -r 4096 --cpu host --vcpus=2 --cdrom=/tmp/Windows.iso --disk path=/home/nokia/win10.qcow2,size=50,bus=virtio --disk /tmp/Windows.iso,device=cdrom,bus=ide --disk /tmp/virtio-win-0.1.208.iso,device=cdrom,bus=ide --os-type windows --os-variant win2k8 --network network=default,model=virtio --graphics vnc,listen=0.0.0.0,port=65322 --noautoconsole | |
#2 virt-install --virt-type kvm --connect qemu:///system -n win10_2 -r 4096 --cpu host --vcpus=2 --cdrom=/tmp/Windows.iso --disk path=/var/kvm/images/win10.qcow2,size=50,bus=virtio --disk /tmp/Windows.iso,device=cdrom,bus=ide --disk /tmp/virtio-win-0.1.208.iso,device=cdrom,bus=ide --os-type windows --os-variant win2k8 --network network=default,model=virtio --graphics vnc,listen=0.0.0.0,port=65322 --noautoconsole --host-device 01:00.0 --features kvm_hidden=on | |
(local) ssh -v -L 5900:127.0.0.1:65322 -N -f root@10.4.20.5 |
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
lsblk #find loop(X) swift | |
losetup /dev/loop0 #find the swiftloopback directory | |
blkid #confirm ext4 or xfs file system | |
dd if=/dev/zero bs=1MiB of=/srv/loopback-device/swiftloopback conv=notrunc oflag=append count=XXXXX # XXXX new size in megabytes | |
losetup -c /dev/loop0 | |
resize2fs /dev/loop0 |
OlderNewer