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 | |
# | |
# - Install Docker on Ubuntu - | |
# | |
# Prerequisites: | |
# | |
# Yakkety 16.10 | |
# Xenial 16.04 (LTS) | |
# Trusty 14.04 (LTS) |
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
#!/usr/bin/env bash | |
# Exit on error | |
set -e | |
# Ensure script is running as root | |
if [ "$EUID" -ne 0 ] | |
then echo "WARN: Please run as root (sudo)" | |
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
import com.fasterxml.jackson.databind.BeanDescription; | |
import com.fasterxml.jackson.databind.DeserializationConfig; | |
import com.fasterxml.jackson.databind.JsonDeserializer; | |
import com.fasterxml.jackson.databind.JsonMappingException; | |
import com.fasterxml.jackson.databind.deser.std.EnumDeserializer; | |
import com.fasterxml.jackson.databind.module.SimpleDeserializers; | |
import com.fasterxml.jackson.databind.util.EnumResolver; | |
import java.util.HashMap; | |
import java.util.Map; |
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
<p:dataTable var="car" value="#{listBean.cars}" | |
selection="#{listBean.selectedCars}" | |
rowKey="#{car.id}" | |
paginator="true" rows="10" | |
widgetVar="myDataTable"> | |
<p:column selectionMode="multiple" style="width:2%;text-align:center"/> | |
<p:column headerText="Id"> | |
<h:outputText value="#{car.id}"/> |
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 | |
FOR cur IN (SELECT * FROM DBA_TABLES WHERE OWNER = '<YOUR DATABASE NAME>') | |
LOOP | |
BEGIN | |
EXECUTE IMMEDIATE 'DROP TABLE ' || cur.OWNER || '.' || cur.TABLE_NAME || ' CASCADE CONSTRAINT'; | |
DBMS_OUTPUT.PUT_LINE('SUCCESS: DROP ' || cur.TABLE_NAME); | |
EXCEPTION | |
WHEN OTHERS THEN | |
DBMS_OUTPUT.PUT_LINE('FAILED: DROP ' || cur.TABLE_NAME || ' ' || SQLERRM); | |
END; |