Install suggested plugin
- Folders Plugin
- OWASP Markup Formatter Plugin
- build timeout plugin
- Credentials Binding Plugin
- Timestamper Workspace Cleanup Plugin
- Ant Plugin Gradle Plugin
- Pipeline GitHub Organization
- Folder Plugin
$Username ="azure_*********@azure.com" | |
$Password = ConvertTo-SecureString "********" -AsPlainText -Force | |
$credential = New-Object System.Management.Automation.PSCredential $Username, $Password | |
$SMTPServer = "smtp.sendgrid.net" | |
$EmailFrom = "[email protected]" | |
$EmailTo = "[email protected]" | |
$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/bash | |
if [[ ! $1 ]]; then | |
echo -e "Usage:\n\n\t$0 'file name'" | |
exit 1 | |
fi | |
f=$(ls 2>/dev/null -l /proc/*/fd/* | fgrep "$1 (deleted" | awk '{print $9}') | |
if [[ $f ]]; then |
Install suggested plugin
#!/bin/bash | |
SENDGRID_API_KEY="" | |
EMAIL_TO="" | |
FROM_EMAIL="" | |
FROM_NAME="" | |
SUBJECT="" | |
bodyHTML="<p>Email body goes here</p>" |
#!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 |
#!/usr/bin/env bash | |
# | |
# Shell script to automate the backup of Microsoft SQL Server vNEXT backups on Linux. | |
# Written by Bobby Allen <[email protected]>, 26/04/2017 | |
# | |
# Download this script and put into your servers' /usr/bin directory (or symlink) then make it executable (chmod +x) | |
# | |
# Usage example (backup databases into /var/backups, keep backups for 5 days, connect to server "localhost" with the account "sa" and a password of "P455w0RD"): | |
# mssqlbackup "/var/dbbackups" 5 "localhost" "sa" "P455w0rD" |
#!/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 |
--- 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 |
# Author: Zameer Ansari | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |