Skip to content

Instantly share code, notes, and snippets.

View cobracmder's full-sized avatar

Carlos Cardenas cobracmder

View GitHub Profile
@cobracmder
cobracmder / celestica_pebble.json
Last active January 4, 2016 19:46
Working gist of eyes.py, the console logging facility for the ONIE Compliance Environment
{
"name": "Celesica Pebble",
"mac_address": "00:E0:EC:36:28:49",
"ip_cidr": "10.0.0.159/24",
"options": {
"onie_machine": "cel_pebble",
"onie_machine_rev": 0,
"onie_vendor": "celestica",
"onie_arch": "x86_64",
"eyes_interface": "wlan0",
@cobracmder
cobracmder / gist:c6f5035b8e073f021e26
Created February 13, 2015 20:06
test #128 supporting docs
./test-onie.py -I eth1 -i 192.168.1.100/24 -m 7072cfaa34fa -t 13 -o onie_installer demo-installer-powerpc-accton_as4600_54t-r0.bin onie_arch powerpc onie_vendor 259 onie_machine accton_as4600_54t onie_machine_rev 0
2015-02-13T12:19:46 - INFO - Loaded 80 tests from config/onie-tests.json
2015-02-13T12:19:46 - INFO - Configuring for Test 13 - DHCP Inexact - HTTP Server IP - Name 1
2015-02-13T12:19:46 - INFO - Starting http
2015-02-13T12:19:46 - INFO - Starting dhcp
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
@cobracmder
cobracmder / minicom-ocp-20150213-01-partial
Created February 13, 2015 20:01
test #126 support docs
ACCTON_AS4600_54T-OS:/ # echo rebooting into test 10
rebooting into test 10
ACCTON_AS4600_54T-OS:/ # install
Rebooting into ONIE (re)install mode...
ACCTON_AS4600_54T-OS:/ # /etc/init.d/rc: line 29: /etc/rc6.d/K25discover.sh: not found
Stopping: dropbear ssh daemon... done.
Stopping: telnetd... done.
Stopping: syslogd... done.
Info: Unmounting kernel filesystems
The system is going down NOW!
Script started on Tue 30 Sep 2014 09:34:23 AM CDT
[2014-273-09:34:23]
[~/working/gh-public]
los@ndnd:% onl-mkws -m ftp.utexas.edu/debian/ -a powerpc ws.powerpc
Creating powerpc workspace in ws.powerpc
APT Cache:
multistrap 2.1.20 using /tmp/tmp.lzY8UTpmos
multistrap 2.1.20 using /tmp/tmp.lzY8UTpmos
Using foreign architecture: powerpc
multistrap building powerpc multistrap on 'amd64'
@cobracmder
cobracmder / gist:f1d59dae9c2fcf48efac
Created September 29, 2014 23:33
ONL setup amd64 workspace
Script started on Mon 29 Sep 2014 06:13:00 PM CDT
[2014-272-18:13:00]
[~/working/gh-public]
los@ndnd:% onl-mkws -a amd64 ws.amd64
Creating amd64 workspace in ws.amd64
APT Cache:
multistrap 2.1.20 using /tmp/tmp.9K9QsgtFvq
multistrap 2.1.20 using /tmp/tmp.9K9QsgtFvq
Defaulting architecture to native: amd64
@cobracmder
cobracmder / make install-ws-deps
Created September 29, 2014 14:47
ONL Build Issues with amd64 workspace
Reading package lists... Done
apt-get -o Apt::Get::Download-Only=true -y -o Apt::Architecture=powerpc -o Apt::Install-Recommends=false -o Dir::Etc=/var/lib/xapt/etc/xapt/ -o Dir::Etc::TrustedParts=/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/etc/apt/trusted.gpg -o Dir::Etc::SourceList=/var/lib/xapt/etc/xapt/sources.list -o Dir::Etc::SourceParts=/var/lib/xapt/etc/xapt/sources.list.d/ -o Dir::State=/var/lib/xapt/ -o Dir::State::Status=/var/lib/xapt//powerpc/dpkg/status -o Dir::Cache=/var/lib/xapt/ install libedit-dev ncurses-dev libsensors4-dev libwrap0-dev libssl-dev libsnmp-dev
Reading package lists... Done
Building dependency tree... Done
Package libssl-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libssl-doc
@cobracmder
cobracmder / inventory_local-dev
Last active August 29, 2015 14:02
Zwift config files for ansible-zwift (for vagrant)
[management]
dev-management ansible_ssh_host=IP ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
[proxy]
dev-proxy ansible_ssh_host= ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
[zone-1]
dev-storage-z1 ansible_ssh_host= ansible_ssh_user=vagrant ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
[zone-2]
@cobracmder
cobracmder / Vagrantfile
Created May 23, 2014 14:53
Vagrant and Ansible demo
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise32"
config.vm.define "node1" do |machine|
#!/usr/bin/bash
DATE=`date +%F`
#
# Create Backup Directory
#
DIR_NAME="$DATE""_VM_BACKUP"
mkdir $DIR_NAME
cd /opt/backup/$DIR_NAME
{
'targets': [
# timesignature
{
'target_name': 'timesignature',
'type': 'executable',
#'includes': [
# "../../<(node_root_dir)/deps/v8/build/common.gypi",
#],
'include_dirs': [