Let's say you want to host domains first.com and second.com.
Create folders for their files:
| { | |
| "Description" : "ProjectX scalable stack of frontal nodes", | |
| "Parameters" : { | |
| "InstanceType" : { | |
| "Description" : "Type of EC2 instance to launch", | |
| "Type" : "String", | |
| "Default" : "m1.xlarge" | |
| }, | |
| "SSHKeyName" : { | |
| "Description" : "The EC2 Key Pair to allow SSH access to the instances", |
| package cmd | |
| import ( | |
| "bitbucket.org/cescoferraro/api/util" | |
| "github.com/fatih/color" | |
| "github.com/spf13/cobra" | |
| ) | |
| var ( | |
| logger = util.Block{ |
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
| #!groovy | |
| pipeline { | |
| agent any | |
| //These params will be displayed for user input when running a build, They are also accepted by the API | |
| parameters { | |
| string(name: 'BUILD_HOSTNAME', description: 'The name of the server to build (from Mdb)') | |
| string(name: 'ILO_IP', description: 'The IP address for the server ilo') | |
| booleanParam(name: 'skipOneView', description: 'Skip the OneView stage?', defaultValue: false) |
| # templates/mail_body.j2 | |
| {% for host in play_hosts %} | |
| The {{ host }} says {{ hostvars[host]['result']['stdout'] }} | |
| {% endfor %} |
| cd ~/Applications | |
| wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz | |
| tar -xvf dirb222.tar.gz | |
| rm dirb222.tar.gz | |
| brew install autoconf | |
| chmod -R 755 dirb222 | |
| cd dirb222 | |
| ./configure | |
| make | |
| make install |
| # ~/.config/starship.toml | |
| [battery] | |
| full_symbol = "🔋" | |
| charging_symbol = "🔌" | |
| discharging_symbol = "⚡" | |
| [[battery.display]] | |
| threshold = 30 | |
| style = "bold red" |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" | |
| "k8s.io/client-go/kubernetes" | |
| "k8s.io/client-go/tools/clientcmd" |
| -- | |
| -- Read only | |
| -- | |
| -- Create a group | |
| CREATE ROLE postgres_ro_group; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO postgres_ro_group; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group; |