View main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" { | |
region = "us-west-1" | |
# profile = "${var.aws_profile}" | |
} | |
# aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId,State.Name,PrivateIpAddress,PublicIpAddress,InstanceType,Tags]" --output table | |
resource "aws_instance" "generic" { | |
ami = "ami-0beb0c1a33f8fddf2" # us-west-1 | |
instance_type = "t2.micro" | |
key_name = "${aws_key_pair.generic.id}" |
View backend-heavy.mermaid
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View KeyboardLayout.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{a:3}, "All Tests", "Step Over", ">.<"], | |
[{a:3}, "Repeat Test", "Step Into", "->"], | |
[{x:0.8,a:6, y: 0.3},"//",{w:1,x:0.6, w:1 },"Esc",{x:1},"F1","F2","F3","F4",{x:0.5},"F5","F6","F7","F8",{x:0.5},"F9","F10","F11","F12",{a:5},"Del\nInsert"], | |
[{x:0.3,a:4, y: 0.1},"Cmd 1",{w:1},";",{x:0.1, w:1 },"~\n`","!\n1","@\n2","#\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=",{a:6,w:2},"Backspace","Page Up"], | |
[{x:0.3,a:4},"Cmd 2","Alt Enter",{x:0.1, w:1.5 },"Tab","Q","W","E","R","T","Y","U","I","O","P","{\n[","}\n]",{w:1.5},"|\n\\",{a:5},"Home\nPause"], | |
[{x:0.3,a:3},"💾",{a:4},"Del",{x:0.1,w:1.75 },"Home","A","S","D","F","G","H","J","K","L",":\n;","\"\n'",{a:3,w:1.75},"Enter",{a:5, w:1.5},"End\nPrtSc"], | |
[{x:2.4,w:2.25,a:4},"Shift","Z","X","C","V","B","N","M","<\n,",">\n.","?\n/",{a:6,w:1.75},"Shift",{a:7},"↑",{a:5},"Page Down"], | |
[{x:2.4,w:1.25 },"Ctrl",{w:1.25},"Win",{w:1.25},"Alt",{a:7,w:6.25},"",{a:6},"Alt","Fn","Ctrl",{a:7},"←","↓","→"] |
View file.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module App | |
module Debugable | |
def putsd(msg) | |
puts msg if ENV[DEBUG] | |
end | |
def self.putsd(msg) | |
puts msg if ENV[DEBUG] | |
end |
View netpol.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: NetworkPolicy | |
apiVersion: networking.k8s.io/v1 | |
metadata: | |
name: "allow-nodeport-my-shell" | |
spec: | |
podSelector: | |
matchLabels: | |
run: "my-shell" |
View hello-world.app.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Hello World", | |
"tagline": "A hello world app", | |
"description": "Your example for installing web apps into kano as 'apps'.", | |
"slug": "hello", | |
"icon": "secrets", | |
"colour": "#f8584b", | |
"categories": ["media"], |
View install_plugins.init.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jenkins.model.* | |
import java.util.logging.Logger | |
def logger = Logger.getLogger("02_installPlugins.groovy") | |
def installed = false | |
def initialized = false | |
def fileSeperator=File.separator; | |
println("Plugins Count Before Installation: "+Jenkins.instance.pluginManager.plugins.size()) | |
def filepath="/home/lvadmin/.jenkins/init.groovy.d"+fileSeperator+"pluginslist.cfg"; | |
println "pluginslist.cfg FilePath : $filepath" | |
def pluginslist = [] |
View setup-users.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jenkins.* | |
import hudson.* | |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
import hudson.plugins.sshslaves.*; | |
import hudson.model.* | |
import jenkins.model.* | |
import hudson.security.* |
View Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'yaml' | |
# Make sure the vagrant-ignition plugin is installed | |
required_plugins = %w(vagrant-ignition) # vagrant-persistent-storage | |
plugins_to_install = required_plugins.select { |plugin| not Vagrant.has_plugin? plugin } | |
if not plugins_to_install.empty? |
View gist:df4fb4dc012640ee47700ae904697e29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config_data = JSON.parse( File.read("variables.json") ) | |
debian_vms = [ | |
{ name: "it-workhorse-vm", ip: "48" }, | |
{ name: "storage-host-vm", ip: "139" }, | |
{ name: "rock", ip: "54" }, | |
{ name: "backups-dark-vm", ip: "128" }, | |
{ name: "ubuntu-vm", ip: "127" }, | |
{ name: "jenkins-vm", ip: "126" } ] |
NewerOlder