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
#!/bin/bash | |
cat /cgroup/blkio/libvirt/qemu/blkio.throttle.read_bps_device | |
cat /cgroup/blkio/libvirt/qemu/blkio.throttle.write_bps_device | |
cat /cgroup/blkio/libvirt/qemu/*/blkio.throttle.read_bps_device | |
cat /cgroup/blkio/libvirt/qemu/*/blkio.throttle.write_bps_device | |
# 10MBps | |
#BPSLIMIT=10485760 |
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
import time | |
import uuid | |
import jwt | |
import requests | |
import re | |
# config | |
SHARED = 'YOUR SHARED KEY' | |
SUB = 'YOURSUBDOMAIN' |
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
# Migrate a VM to another StackOps Cloud | |
# This is the kind of rubbish written by a CEO. Don't be cruel | |
# ENTER THE USERNAME, PASSWORD AND TENANT OF THE SOURCE AND DESTINATION TENANTS | |
# ALSO CHECK THE KEYSTONE ENDPOINT | |
# | |
#!/usr/bin/env bash | |
#set -x | |
SOURCE_KEYSTONE_HOST=<<CHANGE_ME>> | |
SOURCE_OS_USERNAME=<<CHANGE_ME>> | |
SOURCE_OS_PASSWORD=<<CHANGE_ME>> |
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
MacBook-Air-de-Diego:bosh-bootstrap diego$ ./bin/bosh-bootstrap deploy | |
1. AWS | |
2. OpenStack | |
3. vSphere | |
Choose your infrastructure: 2 | |
Using provider OpenStack | |
Username: XXXXXXXXXXX | |
Password: XXXXXXXXXXX | |
Tenant: XXXXXXXXX |
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
MacBook-Air-de-Diego:bosh-bootstrap diego$ ./bin/bosh-bootstrap deploy | |
Using provider OpenStack | |
Confirming: Using OpenStack (user: XXXXXXXX) | |
Confirming: Using address 10.0.61.66 | |
Reusing security group ssh | |
-> no additional ports opened |
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
MacBook-Air-de-Diego:bosh-bootstrap diego$ ruby -v | |
ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13] | |
MacBook-Air-de-Diego:bosh-bootstrap diego$ gem list bosh | |
*** LOCAL GEMS *** | |
bosh-director-core (1.2685.0, 1.2681.0, 1.2671.0) | |
bosh-registry (1.2685.0, 1.2681.0, 1.2671.0) | |
bosh-stemcell (1.2685.0, 1.2681.0, 1.2671.0) |
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
0815.ru | |
0clickemail.com | |
0experts.com | |
0wnd.net | |
0wnd.org | |
10minutemail.co.za | |
10minutemail.com | |
123-m.com | |
1blackmoon.com | |
1fsdfdsfsdf.tk |
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
riseup.net | |
e.sino.tw | |
e.ycn.ro | |
g.tiv.cc | |
o.civx.org | |
mx.dnses.ro | |
dr.vankin.de | |
mx.dnses.ro | |
mx1.dnses.ro | |
mx2.dnses.ro |
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
addEventListener('fetch', event => { | |
event.respondWith(fetchAndCheckOrigin(event.request)) | |
}) | |
async function fetchAndCheckOrigin(req) { | |
try { | |
startTime = new Date(); | |
const body = await req.body; | |
const ip = req.headers.get('cf-connecting-ip'); | |
const es = req.headers.get('cf-ipcountry'); |
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
addEventListener('fetch', event => { | |
event.respondWith(fetchAndCheckOrigin(event.request)) | |
}) | |
async function fetchAndCheckOrigin(req) { | |
try { | |
const body = await req.body; | |
const ip = req.headers.get('cf-connecting-ip'); | |
const apilityio = await fetch('https://api.apility.net/badip/' + ip + '?token=APILITY_IO_API_KEY'); |
OlderNewer