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
package daemon | |
import ( | |
"os" | |
) | |
// FileSystemClient abstracts file/directory manipulation operations | |
type FileSystemClient interface { | |
Create(string) (os.File, error) | |
Remove(string) error |
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
extern crate cursive; | |
use std::process::Command; | |
use cursive::Cursive; | |
use cursive::align::HAlign; | |
use cursive::views::{Dialog, TextView, LinearLayout, Button}; | |
fn exec_shell_command(_s: &cursive::Cursive, shell_command: String) -> String { |
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
package main | |
/* | |
* WARNING!! This isn't tested. It's just a port of https://github.com/openshift/os/pull/95 to start with. | |
* Look for "TODO"s. | |
*/ | |
import ( | |
"flag" | |
"fmt" |
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
%define debug_package %{nil} | |
Name: ignition | |
Version: 0.23.0 | |
Release: 0.3%{?dist} | |
Summary: First boot installer and configuration tool | |
License: ASLv2 | |
URL: https://github.com/coreos/ignition | |
Source0: https://github.com/coreos/%{name}/archive/v%{version}.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
#!/usr/bin/env python | |
import json | |
import sys | |
def main(): | |
for tag in json.loads(sys.stdin.read())['RepoTags']: | |
# Do your commands here | |
print(tag) |
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
// ... | |
const port = 8080 | |
const path = "hash" | |
const key = "JAVA_SERVICE_HOST" | |
// hostName houses the package level hostname as a single instance | |
var hostName string | |
// SetHostname allows external packages to set the hostname | |
func SetHostname(name string) { |
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
[OSEv3:children] | |
masters | |
nodes | |
[OSEv3:vars] | |
ansible_ssh_user=root | |
debug_level=3 | |
openshift_deployment_type=origin | |
deployment_type=origin | |
openshift_release=v3.6 |
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 os | |
import re | |
class FindFiles: | |
""" | |
Finds files with explicit filtering. | |
""" | |
def __init__(self, include_dirs=None, exclude_dirs=None): |
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
// Current format from the v2 api. There is no file name as it comes in a stream | |
{ | |
"date": "2013-03-24T15:42:09.966-04:00", // Date stamp; redundant | |
"createdon": "0001-01-01T00:00:00Z", // Date the record was created on | |
"name": "fake-1.0.jar", // File name of the package | |
"version": "1.0.0", // Version of the package | |
"coordinates": { // Related maven coordinates | |
"artifactId": "jar", | |
"groupId": "fake", | |
"version": "1.0.0" |
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 python | |
from __future__ import print_function | |
import argparse | |
import logging | |
import os | |
import jinja2 | |
import yaml |
NewerOlder