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
vagrant@m1:~$ curl http://cigw.dev.api-gw.local/zones/de-r1-az2/profiles | |
[ | |
{ | |
"category": { | |
"id": "vm", | |
"name": "VMaaS", | |
"py/object": "cigwclient.core.model.service.ServiceProfileCategory" | |
}, | |
"id": "000CATALOGID000", | |
"input_schema": { |
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
// Param-in: | |
// ruleName (string) | |
// vms (Array/VC:VirtualMachine) | |
// | |
// Param-out: | |
// result (Any) | |
// get VC:ClusterComputeResource | |
var parent = vms[0].resourcePool; |
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
#Ref: | |
# https://developer.apple.com/library/archive/technotes/tn2450/_index.html | |
####### | |
# Keyboard Grave Accent and Tilde 0x35 | |
# Keyboard = and + 0x2E | |
# Keyboard Non-US \ and | 0x64 | |
#funciona <>≤ --> = (us-key) |
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
#Altran Tensor flow training | |
conda create -n tensorflow python=2.7 | |
source activate tensorflow | |
# | |
# https://www.tensorflow.org/install/install_linux#InstallingAnaconda | |
# | |
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.1-cp27-none-linux_x86_64.whl | |
pip install --ignore-installed --upgrade $TF_BINARY_URL |
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
awk 'NR==FNR {a[$1]=$2;next} {for ( i in a) gsub(i,a[i])}1' template $file >temp.txt | |
or | |
awk 'NR==FNR {a[$1]=$2;next} {for ( i in a) gsub("{{" i "}}" ,a[i])}1' template $file >temp.txt | |
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
from suds.client import Client | |
from suds import WebFault | |
from suds.transport.https import HttpAuthenticated | |
import os.path | |
import ssl | |
import time | |
import logging | |
logging.basicConfig(level=logging.CRITICAL) | |
logging.getLogger('suds.client').setLevel(logging.CRITICAL) |
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
'Crear Firma para Outlook | |
On Error Resume Next | |
Set objSysInfo = CreateObject("ADSystemInfo") | |
strUser = objSysInfo.UserName | |
Set objUser = GetObject("LDAP://" & strUser) | |
strName = objUser.FullName |
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
Public Function ErlangB_Lineas(Trafico As Double, Bloqueo As Double) As Integer | |
Dim InvBloqueo As Double | |
Dim InvB As Double | |
Dim j As Integer | |
InvB = 1# | |
InvBloqueo = 1 / Bloqueo | |
For j = 1 To 256 | |
InvB = 1# + j / Trafico * InvB |
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
#!/usr/bin/expect -f | |
log_user 1 | |
set timeout 60 | |
set env(TERM) | |
spawn ssh -o StrictHostKeyChecking=no eri_sn_admin@[lindex $argv 0] | |
expect "Password: " | |
send "Ericsson\r" | |
expect ">" | |
send "sudo -s\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
#!/usr/bin/perl | |
while (<STDIN>) { | |
$_ =~ tr/\t/ /; | |
($inicio,$fin,$interno)=split(/\s+/, $_); |
NewerOlder