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 javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { | |
public static void main(String[] args) { |
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
package com.hi.hiqww.jfxclient.export; | |
import java.io.DataInputStream; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import org.apache.poi.hssf.usermodel.HSSFCell; | |
import org.apache.poi.hssf.usermodel.HSSFRow; |
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
/* | |
* See http://www.netmite.com/android/mydroid/1.6/frameworks/base/core/java/android/net/http/CertificateChainValidator.java | |
* | |
* Copyright (C) 2008 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStreamReader; | |
import java.math.BigDecimal; | |
import java.text.SimpleDateFormat; | |
import java.util.Iterator; | |
import org.apache.poi.hssf.usermodel.HSSFCell; |
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.io.BufferedWriter; | |
import java.io.FileInputStream; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import org.apache.poi.openxml4j.exceptions.InvalidFormatException; | |
import org.apache.poi.ss.usermodel.Cell; | |
import org.apache.poi.ss.usermodel.DateUtil; | |
import org.apache.poi.ss.usermodel.Row; |
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 shell script demonstrates how to implement group by & aggregate functions in awk | |
# See http://www.unixcl.com/2008/09/group-by-clause-functionality-in-awk.html | |
# | |
# Input: A colon (:) delimited file tabulating Continents and numbers | |
# Output: Continents and values returned by aggregate functions Count(*), Total, Average | |
# | |
if [ $# -ne 1 ]; then |
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 | |
# Henrik Austad ,2009 | |
# UNINETT Sigma A/S | |
# | |
# make_cmc.sh | |
# | |
# Shell-wrapper for making CMC's to send to a dogtag system | |
# This script uses CMCEnroll to create CMCs, and it creates simple CMCs, | |
# i.e. no bundling of several CSRs together. | |
# |
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
package com.danielthat.callforwarding; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.telephony.PhoneStateListener; | |
import android.telephony.TelephonyManager; | |
import android.view.View; | |
import android.widget.Button; | |
import android.app.Activity; | |
import android.content.Context; |
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
# | |
# LocateExpiredCACerts | |
# Source: http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/17/3386232.aspx | |
# | |
$store=new-object System.Security.Cryptography.X509Certificates.X509Store("\\<COMPUTER_NAME>\CA","LocalMachine") | |
$store.open("ReadOnly") | |
$store.certificates | % { |
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
Function Get-PKICertificates { | |
<# | |
.SYNOPSIS | |
Gets all X.509 Certificates on a local or remote computers | |
Source: http://gallery.technet.microsoft.com/scriptcenter/a2a500e5-1dd2-4898-9721-ed677399679c | |
.DESCRIPTION | |
Gets all X.509 Certificates on a local or remote computers that are from Trusted Root CAs, revoked certificates, person, etc... | |
This also allows you to look at certificates for the LocalMachine or CurrentUser stores. | |
The CurrentUser store can only be accessed on the local machine from where this script is being run. |
OlderNewer