Skip to content

Instantly share code, notes, and snippets.

View andresvia's full-sized avatar
💭
adsking

Andres Villarroel andresvia

💭
adsking
View GitHub Profile
@andresvia
andresvia / drone docker info
Created December 1, 2016 16:25
docker infos
[soporteWEBava@idp ~]$ docker info
Containers: 10
Running: 5
Paused: 0
Stopped: 5
Images: 81
Server Version: 1.10.3
Storage Driver: overlay
Backing Filesystem: xfs
Execution Driver: native-0.2
#!/usr/bin/python
# jherdand made this i just copied from https://paste.fedoraproject.org/494162/18968148/raw/
from ovirtsdk.api import API
from ovirtsdk.xml import params
# Connect to the server:
api = API(
url="https://engine36.example.com/ovirt-engine/api",
apt-key adv --list-keys --with-colons --fingerprint --fixed-list-mode
#!/bin/bash
set -e -u
echo $RD_OPTION_FOOBAR
exit 1
#!/bin/bash
set -eu
count="$1"
test_name="$2"
dns_server="$3"
total=0
for (( i = 0 ; i <= count ; i++ ))
HTTP_PROXY=http://10.130.2.251:3128
http_proxy=http://10.130.2.251:3128
HTTPS_PROXY=http://10.130.2.251:3128
https_proxy=http://10.130.2.251:3128
NO_PROXY=.github.com,localhost,127.0.0.1
no_proxy=.github.com,localhost,127.0.0.1
export HTTP_PROXY
export http_proxy
export HTTPS_PROXY
export https_proxy
#!/bin/bash
# this is only suited for text files
set -eu
url="$1"
scheme="${url/:\/\/*}"
if [ "$scheme" != "https" ]
then
echo oops... only https:// is supported
exit 1
fi
#!/bin/bash
set -eu
env > /tmp/env
wall < /tmp/env
@andresvia
andresvia / proxyud
Last active February 28, 2017 21:32
HTTP_PROXY=http://10.20.4.15:3128
http_proxy=http://10.20.4.15:3128
HTTPS_PROXY=http://10.20.4.15:3128
https_proxy=http://10.20.4.15:3128
NO_PROXY=localhost,10.20.0.126,127.0.0.1,192.168.99.100,10.0.2.15,172.17.0.1,192.168.12.212,192.168.212.65,192.168.212.66,.udistrital.edu.co,.udistritaloas.edu.co,.xip.io
no_proxy=localhost,10.20.0.126,127.0.0.1,192.168.99.100,10.0.2.15,172.17.0.1,192.168.12.212,192.168.212.65,192.168.212.66.udistrital.edu.co,.udistritaloas.edu.co,.xip.io
export HTTP_PROXY
export http_proxy
export HTTPS_PROXY
export https_proxy