Skip to content

Instantly share code, notes, and snippets.

@yetanotherdev267
yetanotherdev267 / jboss7_ssl_config.md
Last active April 23, 2019 03:18
JBoss 7.1.1 SSL Configuration

#1 Cấu hình SSL cho JBoss AS 7.1.1 Final

  1. Tải về & cài đặt JDK 6 JBoss 7.1.1 sử dụng JDK 6. Các bạn cần đảm bảo đã máy tính chỉ cài đặt JDK 6 là phiên bản Java mới nhất. Bạn có thể tải về JDK 6 ở đây.

  2. Tải về JBoss 7.1.1 Final Các bạn có thể tải về JBoss AS 7.1.1 Final ở đây hoặc từ trang chủ download http://jbossas.jboss.org/downloads. Giải nén JBoss ra một thư mục nào đó. Gọi thư mục này là JBOSS_HOME.

  3. Chạy và cấu hình JBoss

@yetanotherdev267
yetanotherdev267 / ExtractEmailListFromOutlookGmailAddresses.php
Created August 6, 2015 18:42
Extract email list from Outlook or Gmail address string
<?php
function extract_emails($string) {
$separator = ';';
if(!stripos($string, ';') && stripos($string, ','))
$separator = ',';
$list = explode($separator, $string);
$email_list = array();
foreach($list as $item) {
$item = trim($item);
$start = 0;
@yetanotherdev267
yetanotherdev267 / VnMobilePhoneRegEx.md
Last active April 9, 2020 08:53
Vietnamese Mobile Phone Regex Test

Vietnamese Mobile Phone Regex Test

JavaScript

var regEx = /^0(1\d{9}|9\d{8})$/;
var phone = '0912345678';
var match = regEx.test(phone);
@yetanotherdev267
yetanotherdev267 / run_php_from_url.md
Last active August 29, 2015 14:15
How to run a PHP script on the fly which is fetched from an URL

#How to run a PHP script on the fly which is fetched from an URL#

php -r "readfile('https://getcomposer.org/installer');" | php

Params: -r run script

curl -sS https://getcomposer.org/installer | php

Params: -s silent, -S: show errors