This file contains 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 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 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 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 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 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 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 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
-- Run this script as the Postgres ROOT user | |
-- | |
-- Replace the following variables before you do: | |
-- PASSWORD_YOU_WANT - Should be the password you want to use for the | |
-- Wren:IDM user. DO NOT USE "openidm" as a | |
-- password. | |
-- ROOT_USER_ACCOUNT_NAME - Should be the name of the root account you are | |
-- logged-in as currently. | |
-- |
This file contains 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 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
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
import java.util.stream.StreamSupport; | |
public class TestIterators { | |
public static void main(String[] args) { | |
List<String> strings = |
OlderNewer