Skip to content

Instantly share code, notes, and snippets.

View awilki01's full-sized avatar

Adam Wilkins awilki01

View GitHub Profile
---
# This playbook is for:
# Upgrading from Cisco IOS XE 3.xE to Cisco IOS XE Denali 16.1.1, 16.1.2, or 16.1.3 in Insta
ll Mode
# https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3650/software/release/16-1/rele
ase_notes/ol-16-1-3650.html
# Author: Adam Wilkins - 3/30/2018
- name: Upgrade a Cisco IOS Device
@awilki01
awilki01 / gist:a5eccc20b2cebb5c70bf2d17bf22a376
Created March 29, 2018 21:41
Router prompt playbook not working
---
- name: Test Prompt
hosts: pynet-rtr1
vars:
creds:
host: "{{ ansible_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
@awilki01
awilki01 / cisco_switch_IOS_upgrade.yml
Last active May 13, 2020 16:09
Cisco Switch IOS Upgrade Ansible Playbook
---
- name: Upgrade a Cisco IOS Device
hosts: ios_switch
tasks:
- name: Gathering Facts
ios_facts:
gather_subset: hardware
provider: "{{ creds_ssh }}"
tags: always
SW2:
interface Port-channel24
no switchport
ip address 155.1.108.2 255.255.255.0
!
interface GigabitEthernet0/1
no switchport
no ip address
negotiation auto
channel-group 24 mode active
void FixedUpdate () {
// non-pertinent code not depicted
if (thrust > 1.0f) {
PlayThrustSound();
} else StopPlayThrustSound();
}
private void PlayThrustSound() {
if (!ThrustSound.isPlaying) {
@awilki01
awilki01 / TerrainGen.cs
Created October 2, 2016 16:05
Terrain Generation Class for Unity using the Diamond Square class
// To be used with the DiamondSquare class here:
// https://gist.github.com/awilki01/83b65ad852a0ab30192af07cda3d7c0b
using UnityEngine;
using System;
using System.Collections.Generic;
using Terrain;
public class TerrainGen : MonoBehaviour {
@awilki01
awilki01 / DiamondSquare.cs
Last active March 1, 2023 16:21
Diamond-Square Algorithm for Generating Terrain (C#)
// This code was converted from Java into C#
// The original Java code was found on Stack Overflow by user M. Jessup
// https://stackoverflow.com/questions/2755750/diamond-square-algorithm?newreg=ee2a40d2fe9f49b9b938151e933860d2
using System;
namespace Terrain {
public class DiamondSquare {
private int _terrainPoints;
this is a test.....................