Skip to content

Instantly share code, notes, and snippets.

View jabelk's full-sized avatar

Jason Belk jabelk

View GitHub Profile
@jabelk
jabelk / setting-up-a-pipeline.md
Created March 16, 2017 19:25 — forked from signed8bit/setting-up-a-pipeline.md
DEVNET-1027 Setting up a Pipeline

Setting up a Pipeline

Commit Job

  • New Item -> Freestyle Project

    • Name: python-commit-job
  • General

jabelk@jabelk-Meerkat:~/mytestingspace/vrnetlab$ ls
ci-builder-image LICENSE README.md vr-bgp
CODE_OF_CONDUCT.md Makefile routeros vrnetlab.sh
common makefile.include sros vr-xcon
config-engine-lite makefile-install.include topology-machine vsr1000
CONTRIBUTING.md makefile-sanity.include veos xrv
csr nxos vmx
git-lfs-repo.sh openwrt vqfx
jabelk@jabelk-Meerkat:~/mytestingspace/vrnetlab$ . vrnetlab.sh
jabelk@jabelk-Meerkat:~/mytestingspace/vrnetlab$ kvm-ok
jabelk@jabelk-Meerkat:~/mytestingspace/vrnetlab/csr$ sudo make docker-image
Makefile:15: warning: overriding recipe for target 'docker-pre-build'
../makefile.include:18: warning: ignoring old recipe for target 'docker-pre-build'
for IMAGE in csr1000v-universalk9.16.04.01-serial.qcow2; do \
echo "Making $IMAGE"; \
make IMAGE=$IMAGE docker-build; \
done
Making csr1000v-universalk9.16.04.01-serial.qcow2
make[1]: Entering directory '/home/jabelk/mytestingspace/vrnetlab/csr'
Makefile:15: warning: overriding recipe for target 'docker-pre-build'
jabelk@jabelk-Meerkat:~$ cd mytestingspace/
jabelk@jabelk-Meerkat:~/mytestingspace$ cd vrnetlab/
jabelk@jabelk-Meerkat:~/mytestingspace/vrnetlab$ ls
ci-builder-image LICENSE README.md vr-bgp
CODE_OF_CONDUCT.md Makefile routeros vrnetlab.sh
common makefile.include sros vr-xcon
config-engine-lite makefile-install.include topology-machine vsr1000
CONTRIBUTING.md makefile-sanity.include veos xrv
csr nxos vmx
git-lfs-repo.sh openwrt vqfx
@jabelk
jabelk / facts.json
Created July 17, 2018 05:58
facts example
facts = '{"output":{"ansible_facts":{"fan_info":[{"status":"Ok","model":null,"hw_ver":"0.0","name":"ChassisFan1"},{"status":"None","model":null,"hw_ver":"0.0","name":"ChassisFan2"},{"status":"Ok","model":"--","hw_ver":"--","name":"Fan_in_PS1"},{"status":"Failure","model":"--","hw_ver":"--","name":"Fan_in_PS2"}],"hostname":"nxos-spine1","ansible_net_serialnum":"TM6017D760B","platform":"NX-OSv Chassis","ansible_net_all_ipv4_addresses":["10.0.0.71"],"ansible_net_model":"NX-OSv Chassis","ansible_net_hostname":"nxos-spine1","interfaces_list":["mgmt0","Ethernet2/1","Ethernet2/2","Ethernet2/3","Ethernet2/4","Ethernet2/5","Ethernet2/6","Ethernet2/7","Ethernet2/8","Ethernet2/9","Ethernet2/10","Ethernet2/11","Ethernet2/12","Ethernet2/13","Ethernet2/14","Ethernet2/15"],"ansible_net_gather_subset":["hardware","default","interfaces","legacy"],"power_supply_info":[{"status":"Ok","model":"DS-CAC-845W","number":1},{"status":"Absent","model":"------------","number":2}],"ansible_net_interfaces":{"Ethernet2/13":{"macaddress":"2
@jabelk
jabelk / .gitignore
Last active September 4, 2018 16:21
useful gitignore
#macs
.DS_Store
#ansible
*.retry
#confd
*.fxs
confd-cdb/*
cli-history/*
@jabelk
jabelk / gist:676e838d70b5e5a21b56f68d5873b3c9
Created October 14, 2018 23:19
example of install role from bash ansible
mkdir roles
git clone https://git.openstack.org/openstack/ansible-role-ara roles/ara
cat << EOF > playbook.yml
- name: Install ARA with default settings
hosts: localhost
roles:
- ara
EOF
sudo ansible-playbook playbook.yml
@jabelk
jabelk / gist:57625fab90ecb82d92c37460a922fd20
Last active December 19, 2018 22:10
yangster error dec 2018
yarn install v1.12.3
[1/4] 🔍 Resolving packages...
success Already up-to-date.
$ lerna run prepare
lerna info version 2.11.0
lerna info versioning independent
yang-sprotty: yarn run v1.12.3
yang-sprotty: $ yarn run clean && yarn build
yang-sprotty: $ rimraf lib
yang-sprotty: $ tsc && yarn lint
@jabelk
jabelk / BrewFile
Created February 6, 2019 06:18
use brew bundle to install all them or brew bundle dump to make a new one
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "homebrew/services"
tap "sambadevi/powerlevel9k"
cask "java"
brew "ant"
brew "aspell"
brew "bazaar"
brew "carthage"
# Defines all Languages known to GitHub.
#
# type - Either data, programming, markup, prose, or nil
# aliases - An Array of additional aliases (implicitly
# includes name.downcase)
# ace_mode - A String name of the Ace Mode used for highlighting whenever
# a file is edited. This must match one of the filenames in http://git.io/3XO_Cg.
# Use "text" if a mode does not exist.
# wrap - Boolean wrap to enable line wrapping (default: false)
# extensions - An Array of associated extensions (the first one is