This setup uses 3 machines:
- Centos7
- 100GB HDD
- 32 GB RAM
- 8 CPU
| Filter | Description | Example |
|---|---|---|
| allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
| intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
| inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
| allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
| intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| def label = "mypod-${UUID.randomUUID().toString()}" | |
| podTemplate(label: label, yaml: """ | |
| spec: | |
| containers: | |
| - name: mvn | |
| image: maven:3.3.9-jdk-8 |
| #!groovy | |
| # Best of Jenkinsfile | |
| # `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
| node { | |
| } |
| Some Jenkinsfile examples |
| $Username ="azure_*********@azure.com" | |
| $Password = ConvertTo-SecureString "********" -AsPlainText -Force | |
| $credential = New-Object System.Management.Automation.PSCredential $Username, $Password | |
| $SMTPServer = "smtp.sendgrid.net" | |
| $EmailFrom = "admin@acme.com" | |
| $EmailTo = "user@acme.com" | |
| $Subject = "SendGrid test" | |
| $Body = "SendGrid testing successful" | |
| Send-MailMessage -smtpServer $SMTPServer -Credential $credential -Usessl -Port 587 -from $EmailFrom -to $EmailTo -subject $Subject -Body $Body |
| #!/bin/sh | |
| ############################################################################### | |
| ## mail_it.sh | |
| ## A bash script that sends email as either plain text or HTML. It allows | |
| ## multiple recipients, CC addresses, reply-to addresses, and attachments. | |
| ## | |
| ## Usage: mail_it.sh -s subject -m message -f from_address | |
| ## -t to_address[,...] [-c cc_address[,...]] [-r reply_to_address[,...]] | |
| ## [-a attachment[,...]] [-h] | |
| ## subject: email subject |
| The Linux command line can be very powerful once you know how to use it. You can parse data, monitor processes, and do a lot of other useful and cool things using it. There often comes a need to generate a report and mail it out. It could be as simple a requirement as a notification that the day’s backup went through fine, or did not. I’ll help you get started with sending mails from the Linux command line and in shell scripts. We will also cover sending attachments from the command line. We will begin with the “mail” command. | |
| First run a quick test to make sure the “sendmail” application is installed and working correctly. Execute the following command, replacing “you@youremailid.com” with your e-mail address. | |
| # mail -s “Hello world” you@youremailid.com | |
| Hit the return key and you will come to a new line. Enter the text “This is a test from my server”. Follow up the text by hitting the return key again. Then hit the key combination of Control+D to continue. The command prompt will ask you if you want |
| #!/bin/bash | |
| # Send a simple mail from shell with this script | |
| # Niko Heikkila 2012 | |
| TO=$1 | |
| SUBJECT=$2 | |
| MSG=$3 | |
| BODY=$HOME/message.tmp |
| --- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
| --- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
| -- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
| ------------ | |
| -- Basics -- | |
| ------------ | |
| -- Get indexes of tables |