Skip to content

Instantly share code, notes, and snippets.

🔒
SECURE ALL THE MACHINES!!

Joe Garcia, CISSP infamousjoeg

🔒
SECURE ALL THE MACHINES!!
Block or report user

Report or block infamousjoeg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@infamousjoeg
infamousjoeg / aimcp-restapi.yml
Last active Mar 21, 2019
Example of @cyberark AIM Credential Provider + @cyberark REST API + Ansible Community 2.5+
View aimcp-restapi.yml
---
- hosts: localhost
roles:
- role: cyberark.modules
tasks:
- name: Logon to CyberArk Vault using PAS Web Services SDK
cyberark_authentication:
@infamousjoeg
infamousjoeg / RESTAPI_example.ps1
Created Jan 3, 2019
REST API example from git.joeco.de/CyberArk-RESTAPI with writing output of Get Accounts request
View RESTAPI_example.ps1
function PASREST-Logon {
# Declaration
$webServicesLogon = "$PVWA_URL/PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/Logon"
# Authentication
$bodyParams = @{username = "Svc_CyberArkAPI"; password = "password"} | ConvertTo-JSON
# Execution
try {
@infamousjoeg
infamousjoeg / DevOpsToolsTrainingAgenda.md
Created Dec 20, 2018
Sample DevOps Tools Training Agenda for DevOps Training
View DevOpsToolsTrainingAgenda.md

Continuous Integration (CI) (BUILD / TEST / RELEASE)

Jenkins

  • Other less popular CI tools
    • jetBrains TeamCity
    • Travis CI (SaaS-only)
    • Atlassian Bamboo
    • Pivotal Concourse
    • CircleCI
    • Yes, even GitLab CI
View main.py
from flask import Flask
app = Flask('app')
#@app.route('/')
#def hello_world():
# return 'Hello, World!'
@app.route('/rob')
View main.sh
print_red() {
RED='\033[0;31m'
NC='\033[0m' # No Color
printf "${RED}${1}${NC}\n"
}
print_orange() {
ORANGE='\033[0;33m'
NC='\033[0m' # No Color
echo -e "${ORANGE}${1}${NC}"
@infamousjoeg
infamousjoeg / Jenkinsfile
Last active Oct 17, 2018
Jenkinsfile example of how to use CyberArk Conjur's Credential Plugin for Jenkins OSS
View Jenkinsfile
pipeline {
agent any
triggers {
pollSCM('H * * * *')
}
stages {
stage('Work') {
steps {
@infamousjoeg
infamousjoeg / start.ino
Created Oct 13, 2018
Test Script for Arduino IDE & Digispark
View start.ino
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output
pinMode(0, OUTPUT); //LED on Model B
pinMode(1, OUTPUT); //LED on Model A
}
// the lop routine runs over and over again forever:
void loop() {
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
View bash_colors_echo.md

Coloring Echo in Bash

You can use these ANSI escape codes:

Black        0;30     Dark Gray     1;30
Red          0;31     Light Red     1;31
Green        0;32     Light Green   1;32
Brown/Orange 0;33     Yellow        1;33
Blue         0;34     Light Blue    1;34
@infamousjoeg
infamousjoeg / conjur_leastpriv_seccomp.json
Created Sep 20, 2018
Default Docker seccomp profile, plus keyctl calls required by Conjur for a Least Privilege Profile
View conjur_leastpriv_seccomp.json
{
"description": "Default Docker seccomp profile, plus keyctl calls (required by Conjur)",
"comment": "Run with `docker run --security seccomp:path/to/conjur_leastpriv_seccomp.json` to use it.",
"defaultAction": "SCMP_ACT_ERRNO",
"architectures": [
"SCMP_ARCH_X86_64",
"SCMP_ARCH_X86",
"SCMP_ARCH_X32"
],
"syscalls": [
@infamousjoeg
infamousjoeg / Tkinder_reference.py
Created Sep 17, 2018
Reference Cheat Sheet for Tkinder module GUI in Python 2.7
View Tkinder_reference.py
from Tkinter import *
def clickme_clicked():
response = "Welcome to " + txt.get()
lbl.configure(text = response)
print(rad_selected.get())
messagebox.showinfo('Script Status','Completed!')
# Start the window
window = Tk()
You can’t perform that action at this time.