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
package main | |
import ( | |
"fmt" | |
"log" | |
"io" | |
"os" | |
"net/http" | |
"time" | |
) |
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/python3 | |
import time | |
import shutil | |
import requests | |
start_time = time.time() | |
links_website = { |
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 | |
# Tested using bash version 4.1.5 | |
start=$SECONDS | |
for ((i=1;i<=10;i++)); | |
do | |
# your-unix-command-here | |
wget http://ipv4.download.thinkbroadband.com/1GB.zip | |
echo $i | |
done | |
duration=$(( SECONDS - start )) |
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
package main | |
import "fmt" | |
import "math" | |
import "time" | |
func main() { | |
for i := 1.0; i < 101; i++ { | |
switch { | |
case math.Mod(i,3) == 0 && math.Mod(i,5) == 0: | |
fmt.Println("Fizz Buzz") |
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
# coding: utf-8 | |
# In[44]: | |
import csv | |
import numpy as np | |
fh = open('train.csv') | |
csv_reader = csv.reader(fh) |
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
# coding: utf-8 | |
# In[24]: | |
import csv | |
fh = open('train.csv') | |
reader_csv = csv.reader(fh) | |
passanger_list = list(reader_csv) | |
passanger_list = passanger_list[1:] |
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
#! /usr/bin/env python3 | |
""" | |
This program terminate instances if proper tag is not used | |
""" | |
import time | |
import boto3 |
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
#! /usr/bin/env python3 | |
""" | |
This program queries all servers in the AWS account | |
that dont have a second network attached. | |
Program attach the correct AZ ENI. | |
It only attach the interface to running instances | |
""" | |
import time |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": {}, | |
"variables": { | |
"storageAccountName": "virginadraassa" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Storage/storageAccounts", |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": {}, | |
"variables": { | |
"storageAccountName": "virginadraassa" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Storage/storageAccounts", |