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
begin | |
require 'rubygems' | |
require 'rest_client' | |
require 'nokogiri' | |
require 'digest/md5' | |
require 'em-eventsource' | |
require 'base64' | |
rescue LoadError | |
puts "Some dependencies are missing. | |
Check for availabilty of rubygems, rest-client, nokogiri, getoptlong, digest/md5, em-eventsource, base64 |
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
// Setting up an IRC server on Cent 6 | |
// Create a user and group for this guy | |
$ groupadd ircadmin && useradd -m -g ircadmin -s /bin/bash ircadmin | |
// Make a working directory (/var/source/) | |
mkdir source && cd source | |
// Grab the latest versions of Anope and UnrealIRCd | |
$ wget http://www.unrealircd.com/downloads/Unreal3.2.9.tar.gz http://downloads.sourceforge.net/project/anope/anope-stable/Anope%201.8.7/anope-1.8.7.tar.gz |
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
import pika | |
c = pika.BlockingConnection(pika.connection.URLParameters('ampq://user:password@ip:5672/')) | |
channel = c.channel() | |
channel.queue_declare(queue='test',durable=False,auto_delete=True) |
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
#!/bin/bash | |
#Publishing minor release | |
SOURCEUSER=root | |
SOURCEHOST=x | |
PUBLICUSER=root | |
PUBLICHOST=x |
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
import code; code.interact(local=dict(globals(), **locals())) |
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/env python3 | |
import pdb | |
import yaml | |
import requests | |
from termcolor import colored | |
with open("spinnaker.yml", 'r') as stream: | |
try: | |
config=yaml.safe_load(stream) |
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/env bash | |
clouddriver_key=[redacted] | |
clouddriver_secret=[redacted] | |
front50_key=user | |
front50_secret=password | |
MICROSERVICES="clouddriver deck echo fiat front50 gate igor kayenta orca rosco" | |
function usage() { |
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
windows: | |
- name: spinnaker-dev | |
root: ~/dev/spinnaker/scripts | |
layout: main-vertical | |
panes: | |
- ls -l | |
- act && watch -n2 --color ./status | |
- ./minio | |
- ./redis | |
- name: spinnaker-logs |
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
import React, { useState } from 'react'; | |
import { module } from 'angular'; | |
import { react2angular } from 'react2angular'; | |
import { StageConfigField } from '@spinnaker/core'; | |
import { IStage } from '@spinnaker/core'; | |
export interface ICloudFromationChangeSetInfoProps { | |
stage: IStage[]; |