Skip to content

Instantly share code, notes, and snippets.

View wiz4host's full-sized avatar

Wiz4host IT Tech LLC. wiz4host

View GitHub Profile
@wiz4host
wiz4host / WriteToFile.groovy
Created April 6, 2021 16:23 — forked from aaukhatov/WriteToFile.groovy
How to write String to File by Groovy
String content = 'Some text'
def myFile = new File('mySuperFile.txt')
myFile.write(content)

Hardening WordPress

Securing WordPress using a combination of configuration changes and plugins.

.htaccess and wp-config.php tasks

1. Add keys to wp-config.php

2. Hide .htaccess and wp-config.php

@wiz4host
wiz4host / setup-users.groovy
Created November 6, 2018 17:25 — forked from johnbuhay/setup-users.groovy
jenkins init.groovy.d script for configuring users
import jenkins.*
import hudson.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import hudson.plugins.sshslaves.*;
import hudson.model.*
import jenkins.model.*
import hudson.security.*
@wiz4host
wiz4host / install_jenkins_plugin.sh
Created May 3, 2018 15:48 — forked from micw/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline
#!/bin/bash
set -e
if [ $# -eq 0 ]; then
echo "USAGE: $0 plugin1 plugin2 ..."
exit 1
fi
plugin_dir=/var/lib/jenkins/plugins