Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
// Code licensed under the Apache License v2.0 http://www.apache.org/licenses/LICENSE-2.0 | |
public class AnyThrow { | |
public static RuntimeException uncheked(Throwable e) { | |
AnyThrow.<RuntimeException>throwAny(e); | |
return null; | |
} | |
@SuppressWarnings("unchecked") |
# FOR CENTOS 6 | |
# Andrew Diller Jan 2012 | |
# Get EPEL Repo installed | |
rpm --httpproxy proxy --httpport 3128 --import https://fedoraproject.org/static/0608B895.txt | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm | |
vi /etc/yum.repos.d/epel.repo |
$ keytool -changealias -keystore MY_KEYSTORE_2.jks -alias XXX-XXX-XXX-XXX-XXX -destalias MY_ALIAS |
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-7.noarch.rpm | |
/usr/bin/yum install -y zabbix20-server-mysql zabbix20-web-mysql mysql-server | |
/sbin/chkconfig zabbix-server on | |
/sbin/chkconfig mysqld on | |
MYSQL_ROOT_PASSWORD='ADMNPASS' | |
MYSQL_ZBBX_PASSWORD='ZBBXPASS' | |
/usr/bin/mysqladmin -u root create zabbix --default-character-set=utf8 | |
echo "GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@localhost IDENTIFIED BY '${MYSQL_ZBBX_PASSWORD}';FLUSH PRIVILEGES;" | mysql -u root |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
# Bind SSL port with PFS-enabling cipher suite | |
bind :443 ssl crt path_to_certificate no-tls-tickets ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-GCM-SHA384:AES128-SHA256:AES128-SHA:AES256-SHA256:AES256-SHA:!MD5:!aNULL:!DH:!RC4 | |
# Distinguish between secure and insecure requests | |
acl secure dst_port eq 443 | |
# Mark all cookies as secure if sent over SSL | |
rsprep ^Set-Cookie:\ (.*) Set-Cookie:\ \1;\ Secure if secure | |
# Add the HSTS header with a 1 year max-age |
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
import groovy.sql.Sql | |
import java.util.Date | |
import java.text.SimpleDateFormat | |
/* | |
* THIS IS AN EXAMPLE SNIPPET. FOR MORE DETAILS SEE THE FOLLOWING BLOG ARTICLE: | |
* https://blog.codecentric.de/en/?p=30502 | |
* | |
* This Jenkins Job DSL Groovy Script creates Continuous Integration (CI) Jobs | |
* for all Maven & Ant projects that exist on a GitLab Server. |
#!/bin/bash | |
# Downloads and installs the startssl CA certs into the global Java keystore | |
# https://sipb.mit.edu/doc/safe-shell/ | |
set -euf -o pipefail | |
# Check if JAVA_HOME is set | |
if [ "$JAVA_HOME" = "" ] | |
then | |
echo "ERROR: JAVA_HOME must be set." | |
exit 1 |
Known Issues: On High Sierra there are problems related to the screen brightness and sleep issues.