Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/bash
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
@dustymabe
dustymabe / rpm_ostree_pkg.py
Created November 28, 2018 19:27
ansible module for rpm-ostree package layering
#!/usr/bin/python
# https://github.com/ansible/ansible/issues/21185
# Copyright: (c) 2018, Dusty Mabe <[email protected]>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
@dustymabe
dustymabe / nopython.md
Last active July 17, 2018 15:17
no python

Below are packages that get removed from host without python

Most notable are:

  • authconfig
  • nfs-utils
  • policycoreutils-python (selinux tools)
  • iscsi-initiator-utils
  • tuned
  • subscription-manager
@dustymabe
dustymabe / NetworkManagerFun.txt
Last active June 30, 2017 13:18
NetworkManagerFun.txt
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEVICE=eth0
HWADDR=36:ee:40:2a:6d:56
MTU=1500
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
# Created by cloud-init on instance boot automatically, do not edit.
@dustymabe
dustymabe / vagrant-sshfs.gemspec
Created November 26, 2016 16:28
vagrant-sshfs.gemspec
# -*- encoding: utf-8 -*-
# stub: vagrant-sshfs 1.3.0 ruby lib
Gem::Specification.new do |s|
s.name = "vagrant-sshfs".freeze
s.version = "1.3.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
s.authors = ["Dusty Mabe".freeze]

The Fedora Project has changed Fedora Atomic Host to be based on Fedora 25 packages with this general release. Fedora Atomic includes a base disk image suitable for booting virtual machines in local or cloud environments. Fedora Atomic Host allows for creating hosts that are immediately ready for container deployment and can upgraded and rolled back in an atomic manner. This aspect of Fedora represents some of the most exciting changes, as we build more cloud and container-ready tools into Fedora to create a fantastic developer platform.

Fedora Atomic has a two-week refresh release cycle with major releases every six months. It has an easy upgrade path to accommodate rapid development for supporting the latest applications.

Fedora Atomic will allow the typical Fedora user to easily provision cloud services. User contributions and experience reports are particularly welcome in preparing for future versions.

Fedora Atomic will replace Fedora Cloud as one of our three Fedora Editions. The Fedora Cloud Base im

import java.util.*;
import java.io.*;
class StreamGobbler extends Thread
{
InputStream is;
String type;
StreamGobbler(InputStream is, String type)
{
this.is = is;
vi /etc/yum.repos.d/rh-dotnetcore10.repo
gpgcheck=0
#For Che
#installs docker 1.10
sudo yum install docker --enablerepo=rhel-7-server-extras-rpms
# installs java 1.8
sudo yum install --disablerepo=* --enablerepo=rhel-7-server-rpms java-1.8.0-openjdk*
sudo systemctl enable docker
version: "2"
services:
httpd:
build:
context: https://gist.githubusercontent.com/dustymabe/a34a4eb7e77d699ae1b83ac10abb8a45/raw/a43b684cee1a839fca16700769fe14fb17650dca/Dockerfile.centos-httpd
ports:
- "80:80"
FROM centos:centos7
RUN yum -y install httpd && yum clean all
EXPOSE 80
CMD /usr/sbin/apachectl -DFOREGROUND