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/python | |
import json | |
import argparse | |
def get_inventory_data(): | |
data = { |
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 | |
# Ensure BUILD_NUMBER is a string | |
BUILD_NUMBER="Build_$BUILD_NUMBER" | |
# Use SSH credentials to connect to a remote server | |
eval $(ssh-agent) | |
ssh-add $oracle_Instance_Key_file | |
# SSH into Minikube machine and run the deployment commands |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: firstdeploy | |
labels: | |
name: firstdeploy | |
annotations: | |
kubernetes.io/change-cause: "first deployment" | |
spec: | |
replicas: 10 |
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
##### ec2-user ####### | |
sudo yum update -y | |
sudo yum install -y httpd24 | |
sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd | |
sudo service httpd start | |
sudo service httpd restart | |
sudo chkconfig httpd on | |
chkconfig --list httpd | |
sudo usermod -a -G apache ec2-user | |
groups |
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
##See: https://github.com/udacimak/udacimak/wiki/How-to-Use | |
1- | |
udacimak settoken YOUR_UDACITY_AUTH_TOKEN | |
## For settoken YOUR_UDACITY_AUTH_TOKEN see https://github.com/udacimak/udacimak/wiki/How-to-Use | |
2- | |
udacimak download ud065 |
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
# DSND - Lesson 2 - Quiz 8 / 2 | |
# Let's say that we have a line whose equation is y = -0.6x + 4. For the point (x,y) = (-5, 3), apply the square trick to get the new equation for the line, using a learning rate of alpha = 0.01alpha=0.01. | |
# Report your answer in the form y = w_1x + w_2, substituting appropriate values for w_1 and w_2. | |
a = 0.01 | |
w1 = -0.6 | |
w2 = 4 | |
p = -5 |
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
<?php | |
/** | |
* @package The_Grid | |
* @author Themeone <[email protected]> | |
* @copyright 2015 Themeone | |
*/ | |
// Exit if accessed directly | |
if (!defined('ABSPATH')) { | |
exit; |
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
<?php | |
/** | |
* == About this Gist == | |
* | |
* Code to add to wp-config.php to enhance information available for debugging. | |
* | |
* You would typically add this code below the database, language and salt settings | |
* | |
* Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
* |
NewerOlder