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 json | |
| import os | |
| import time | |
| import webbrowser | |
| import sys | |
| import re | |
| def handleWindows(extra_seconds): | |
| print("OS : Windows") |
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
| #include "stdafx.h" | |
| #include "CertificateNSS.h" | |
| #include "Certificate.h" | |
| #include <boost/filesystem/operations.hpp> | |
| #include <nss.h> | |
| #include <cert.h> | |
| #include <certdb.h> | |
| ProfileLocker::ProfileLocker(const boost::filesystem::path& profilePath) : m_isValid(false) |
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
| #include <cstdio> | |
| #include <iostream> | |
| #include <openssl/pem.h> | |
| #include <openssl/x509.h> | |
| /* Generates a 2048-bit RSA key. */ | |
| EVP_PKEY * generate_key() | |
| { | |
| /* Allocate memory for the EVP_PKEY structure. */ |
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
| '--------------------------------------------------------------------------------- | |
| ' The sample scripts are not supported under any Microsoft standard support | |
| ' program or service. The sample scripts are provided AS IS without warranty | |
| ' of any kind. Microsoft further disclaims all implied warranties including, | |
| ' without limitation, any implied warranties of merchantability or of fitness for | |
| ' a particular purpose. The entire risk arising out of the use or performance of | |
| ' the sample scripts and documentation remains with you. In no event shall | |
| ' Microsoft, its authors, or anyone else involved in the creation, production, or | |
| ' delivery of the scripts be liable for any damages whatsoever (including, | |
| ' without limitation, damages for loss of business profits, business interruption, |
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
| 1. Download & Install Visual Studio 2010 - Version able to compile C++ | |
| 2. Download and Install Mozilla build files http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe | |
| 3. Download the latest NSS package from: http://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/ | |
| Download the tar with npsr | |
| 4. Create a directory C:\src | |
| 5. Extract nss to c:\src | |
| So this will end up looking like c:\src\nss-3.15 | |
| 6. Run the Mozilla build shell: C:\mozilla-build\start-msvc10.bat | |
| 7. Create the required env variables | |
| Type: export OS_TARGET="WINNT" |
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
| 1. Add this to your functions.php or inc/templates-tags.php | |
| /** | |
| * Wrap videos embedded via oEmbed to make them responsive | |
| */ | |
| function p2_wrap_oembed( $html, $url, $attr, $post_id ) { | |
| return '<div class="video-embed">' . $html . '</div>'; | |
| } | |
| add_filter( 'embed_oembed_html', 'p2_wrap_oembed', 99, 4 ); |
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.*; | |
| import java.io.*; | |
| import java.security.*; | |
| public class ChangePassword | |
| { | |
| private final static JKS j = new JKS(); | |
| public static void main(String[] args) throws Exception | |
| { |
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
| /** | |
| * Add new twitter field to EDD register form | |
| */ | |
| function sumobi_edd_add_registration_field() { | |
| ?> | |
| <p> | |
| <label for="edd-user-twitter-username"><?php _e( 'Twitter Username', 'edd' ); ?></label> | |
| <input id="edd-user-twitter-username" class="edd-input" type="text" name="edd_user_twitter_username" /> | |
| </p> |