GridU Azure capstone
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
resource "yandex_compute_instance" "bastion" { | |
name = "bastion" | |
hostname = "bastion" | |
platform_id = "standard-v1" | |
zone = "ru-central1-c" | |
labels = { | |
group = "bastion-hosts" | |
vds = "bastion" | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python | |
from __future__ import print_function | |
import datetime | |
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
from airflow.operators.dagrun_operator import TriggerDagRunOperator |
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 python | |
from __future__ import print_function | |
import pytz | |
import datetime | |
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator |
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 ru.yandex.qatools.allure.jenkins.tools.* | |
import hudson.tools.InstallSourceProperty | |
import hudson.tools.ToolProperty | |
import hudson.tools.ToolPropertyDescriptor | |
import hudson.util.DescribableList | |
def isp = new InstallSourceProperty() | |
def autoInstaller = new AllureCommandlineInstaller("2.6.0") | |
isp.installers.add(autoInstaller) |
Usage:
az resource list | python sort_for_deletion_parallel.py '^resources-to-delete.*' | while read CMD; do bash -xc "$CMD"; done
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 python2 | |
source = [1,5,7,3,2,1,4] | |
median = sum(source)/float(len(source)) | |
mindelta = abs(source[0] - median) | |
closest = source[0] | |
for item in source[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
#define _GNU_SOURCE | |
#include <sys/wait.h> | |
#include <sys/utsname.h> | |
#include <sched.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <errno.h> |
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
#define _GNU_SOURCE | |
#include <sys/wait.h> | |
#include <sys/utsname.h> | |
#include <sched.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/sem.h> |
NewerOlder