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
| open -na /Applications/Skype.app --args -DataPath "/Users/$(whoami)/Library/Application Support/Skype ANODA" |
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 | |
| # This script will help you setup Docker for TLS authentication. | |
| # Run it passing in the arguement for the FQDN of your docker server | |
| # | |
| # For example: | |
| # ./create-docker-tls.sh myhost.docker.com | |
| # | |
| # The script will also create a profile.d (if it exists) entry | |
| # which configures your docker client to use TLS | |
| # |
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
| CREATE OR REPLACE TRIGGER LIMIT_JDBC_LOGON_TRIGGER | |
| AFTER LOGON ON DATABASE | |
| DECLARE | |
| n_count number; | |
| BEGIN | |
| DBMS_SESSION.SET_IDENTIFIER(SYS_CONTEXT('USERENV', 'MODULE')||':'||SYS_CONTEXT('USERENV', 'OS_USER')||':'||user); | |
| if SYS_CONTEXT('USERENV', 'MODULE') like 'JDBC%' then | |
| select count(*) into n_count | |
| from v$session t | |
| where t.MODULE like 'JDBC%' |
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
| DECLARE | |
| CURSOR SESSIONS IS | |
| SELECT s.status "Status", | |
| si.SID AS SIDS, | |
| SYSDATE - (s.last_call_et / 86400) "Last Call", | |
| s.serial# AS SERIAL, | |
| s.TYPE "Type", | |
| s.username "DB User", | |
| s.osuser "Client User", | |
| s.server "Server", |
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
| set serveroutput on; | |
| set timing on; | |
| begin | |
| for rec in (select 'create index ' || substr(table_name, 1, 22) || '_FKIDX' || num || ' on ' || table_name || ' (' || columns || ')' cmd | |
| from (select table_name, | |
| constraint_name, | |
| cname1 || nvl2(cname2, ',' || cname2, null) || nvl2(cname3, ',' || cname3, null) || | |
| nvl2(cname4, ',' || cname4, null) || nvl2(cname5, ',' || cname5, null) || nvl2(cname6, ',' || cname6, null) || | |
| nvl2(cname7, ',' || cname7, null) || nvl2(cname8, ',' || cname8, null) columns, | |
| row_number() over(PARTITION by table_name order by constraint_name) num |
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 static java.time.Month.*; | |
| import java.time.LocalDate; | |
| import java.time.MonthDay; | |
| import java.time.format.DateTimeFormatter; | |
| import javafx.application.Application; | |
| import javafx.beans.binding.Bindings; | |
| import javafx.beans.property.ObjectProperty; |
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 java.util.HashMap; | |
| public class ExtHashMap extends HashMap<String,String>{} |