This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.toolbar.fixed-header.hidden-top .header { | |
margin-top: 1em; | |
} | |
.toolbar-drawer.fixed-header.hidden-top .header { | |
margin-top: 3em; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
! CDDL HEADER START | |
! | |
! The contents of this file are subject to the terms of the | |
! Common Development and Distribution License, Version 1.0 only | |
! (the "License"). You may not use this file except in compliance | |
! with the License. | |
! | |
! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BEGIN: Dynamic agent JAR config | |
configurations { | |
runtimeAgent | |
} | |
// END: Dynamic agent JAR config | |
buildscript { | |
ext { | |
springBootVersion = '1.5.2.RELEASE' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Run buildDJ3.sh script first in the same folder from: https://gist.github.com/aldaris/fe234d76f3940c42ae9bb5aa69b8e98e | |
function build() { | |
mvn clean deploy | |
if [ $? -ne 0 ] ; then | |
exit 1; | |
fi | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/bin/authbind --deep /usr/bin/java "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deps available; regular install, remove, and purge | |
dpkg -i opendj-deb-standard-repack.deb | |
Selecting previously unselected package opendj. | |
(Reading database ... 128058 files and directories currently installed.) | |
Unpacking opendj (from opendj-deb-standard-repack.deb) ... | |
/var/lib/dpkg/tmp.ci/preinst Arguments: install | |
Setting up opendj (3.0.0) ... | |
/var/lib/dpkg/info/opendj.postinst Arguments: configure | |
Processing triggers for ureadahead ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveAdmin | |
module Views | |
## | |
# Exposes Arbre's table support as a simple control for use in ActiveAdmin. | |
# | |
# Example usage: | |
# ``` | |
# simple_table [ [ "User count", User.count ], | |
# [ "Item count", Item.count ], | |
# [ "Total Wishes", Wish.count ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# An RSpec matcher for checking Rails validation errors on an object. | |
# | |
# Usage: | |
# # Expect exactly three validation errors: | |
# # - field1 must not be empty | |
# # - field1 must be a number | |
# # - field2 must be greater than zero | |
# expect(x).to have_validation_errors | |
# .related_to(:field1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will only run in `irb -ropenssl` | |
require "socket" | |
require "openssl" | |
host = "comodo.com" | |
port = 443 | |
cert_store = OpenSSL::X509::Store.new | |
cert_store.set_default_paths |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# The ONLY example on the web of using Ruby 2.0.0 to encrypt a password with the | |
# hybrid encryption required for interoperability with ForgeRock OpenIDM / Wren | |
# Security Wren:IDM. | |
# | |
# In this example, a password is first encrypted with a symmetric, | |
# 128-bit AES cipher in cipher-block-chaining (CBC) mode. The symmetric cipher | |
# is initialized with a random "session key" (i.e. a random symmetric encryption | |
# key). Then, the RSA public key of an SSL certificate is used to encrypt | |
# that encryption key. |
OlderNewer