Skip to content

Instantly share code, notes, and snippets.

View v0rts's full-sized avatar
💭
Excuse me... 😊

✦ v0rŦs ✦ v0rts

💭
Excuse me... 😊
View GitHub Profile

Keybase proof

I hereby claim:

  • I am v0rts on github.
  • I am v0rts (https://keybase.io/v0rts) on keybase.
  • I have a public key whose fingerprint is C6AE 2758 790A F85B F7A3 15E2 FC87 A177 0A24 A87C

To claim this, I am signing this object:

@v0rts
v0rts / crontab_header.txt
Created October 27, 2016 05:27
Crontab header
# minute (0-59),
# | hour (0-23),
# | | day of the month (1-31),
# | | | month of the year (1-12),
# | | | | day of the week (0-6 with 0=Sunday).
# | | | | | commands
@v0rts
v0rts / jenkins.txt
Last active June 15, 2017 16:13
Jenkins Tips
# Jenkins delete all projects for a job
java -jar jenkins-cli.jar -s http://my.jenkins.host delete-builds myproject '1-7499' --username $user --password $password
# Retrieve slave secret key via cli or console
# -------------------------------------------
for (aSlave in hudson.model.Hudson.instance.slaves)
{ println aSlave.name + "," + aSlave.getComputer().getJnlpMac() }
@v0rts
v0rts / Docker.md
Created November 15, 2016 20:11
Docker Tips/Tricks/Commands

Starting a terminal shell for a container ( different than attaching in that you can have multiple terminals attached )

  • sudo docker exec -i -t 665b4a1e17b6 /bin/bash
@v0rts
v0rts / ansible-role-test.sh
Last active July 17, 2017 20:33
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)
# - test_idempotence: whether to test playbook's idempotence (default = true)
@v0rts
v0rts / datadog.txt
Created June 15, 2017 16:12
Datadog Tips
# Install HA Datadog Windows Agent on Host
wget https://s3.amazonaws.com/ddagent-windows-stable/ddagent-cli-latest.msi -OutFile ddagent-cli-latest.msi
msiexec /qn /i ddagent-cli-latest.msi APIKEY="*******" HOSTNAME="*******" TAGS="service:cicd"
@v0rts
v0rts / ad.txt
Created June 15, 2017 16:14
Active Directory Tips
# Query AD for all users in a group
* dscl "/Active Directory/WVRGROUP/All Domains" -read /groups/GROUPNAME
@v0rts
v0rts / Jenkinsfile
Created July 7, 2017 20:06 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
KEYBINDINGS
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings
are:
F2 - Create a new window
F3 - Move to previous window
F4 - Move to next window
wget --recursive --level=1 --no-directories --no-host-directories --accept pdf http://example.com