Skip to content

Instantly share code, notes, and snippets.

View linuxsimba's full-sized avatar

Linux Simba linuxsimba

View GitHub Profile
@linuxsimba
linuxsimba / s_client-output.txt
Created December 17, 2016 06:07
openssl s_client output of linuxsimba.com
CONNECTED(00000003)
depth=3 C = SE, O = AddTrust AB, OU = AddTrust External TTP Network, CN = AddTrust External CA Root
verify return:1
depth=2 C = US, ST = New Jersey, L = Jersey City, O = The USERTRUST Network, CN = USERTrust RSA Certification Authority
verify return:1
depth=1 C = FR, ST = Paris, L = Paris, O = Gandi, CN = Gandi Standard SSL CA 2
verify return:1
depth=0 OU = Domain Control Validated, OU = Gandi Standard SSL, CN = linuxsimba.com
verify return:1
---
@linuxsimba
linuxsimba / netbox-ansible.py
Created December 10, 2016 06:12
Ansible Netbox Integration Example
#!/usr/bin/python
""" Ansible Inventory Generated From Netbox
Author: Stanley Karunditu <stanley@linuxsimba.com>
License: MIT
Requirements:
* use netbox device roles that result in hyphenated role names. E.g
@linuxsimba
linuxsimba / netbox.diff
Created December 8, 2016 19:00
add ticketing.
diff --git a/netbox/dcim/tables.py b/netbox/dcim/tables.py
index 94d359a..d5af207 100644
--- a/netbox/dcim/tables.py
+++ b/netbox/dcim/tables.py
@@ -75,6 +75,13 @@ UTILIZATION_GRAPH = """
{% utilization_graph value %}
"""
+CUSTOM_FIELDS = """
+{% for field,value in record.get_custom_fields.items %}
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..7876150
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,11 @@
+test:2.7:
+ image: python:2.7.12-wheezy
+ script:
+ - netshow-lib/test.sh
@linuxsimba
linuxsimba / gitlab.ci.yml
Created November 23, 2016 13:49
gitlab.ci.yml for netshow-core
test:2.7:
image: python:2.7.12-wheezy
script:
- netshow-lib/test.sh
- netshow/test.sh
test:3.5:
image: python:3.4.5-wheezy
script:
- netshow-lib/test.sh
@linuxsimba
linuxsimba / docker-compose.yml
Last active November 2, 2023 10:09
docker-compose for setting up gitlab
version: '2'
networks:
gitlab_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.201.0/24
gateway: 192.168.201.1
@linuxsimba
linuxsimba / vagrant-aio.rst
Last active July 4, 2016 08:52
Latest copy of vagrant-aio.rst
@linuxsimba
linuxsimba / Vagrantfile
Last active July 4, 2016 08:55
Vagrantfile for Openstack Ansible
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# This file has lots of comments. If you are using VIM,
# this quick liner will remove all comments, if you so wish.
#
# :g/\v^(#|$)/d
#
#
# All Vagrant configuration is done below. The "2" in Vagrant.configure
@linuxsimba
linuxsimba / Vagrantfile
Last active May 29, 2016 03:48
Tiny Linux Core Vagrantfile (libvirt only)
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = 'tc'
config.vm.box_url = "http://linuxsimba.com/vagrantbox/tinycore-7.0.libvirt.box"
config.vm.synced_folder '.', '/vagrant', :disabled => true
end
@linuxsimba
linuxsimba / fuel-mirror.txt
Created April 13, 2016 14:10
fuel-mirror output
[root@localhost vagrant]# fuel-mirror create help
Starting new HTTP connection (1): 10.20.0.2
Starting new HTTP connection (1): 10.20.0.2
Starting new HTTP connection (1): 10.20.0.2
Starting new HTTP connection (1): 10.20.0.2
usage: fuel-mirror create [-h] (-I PATH | -P NAME) -G GROUPS [GROUPS ...]
fuel-mirror create: error: argument -G/--group is required
[root@localhost vagrant]# ^C
[root@localhost vagrant]#