Debian Wheezy provides Ruby version 1.9.3.
If you want to install a newer version, you need to do that manually.
But you don't want to mess with your system Ruby.
There are Ruby version managers like rbenv
to solve that problem.
Unfortunately, Debian's rbenv is out of date as well.
You will need to install a newer version of [rbenv] and the [ruby-build] plugin.
This file contains 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.SSLParameters; | |
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 { |
This file contains 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
$data["day"]="25"; | |
$data["month"]="01"; | |
$data["year"]="2017"; | |
$post = strtotime($data['day']."-".$data['month']."-".$data['year']); | |
echo $post; | |
echo "<br/>"; | |
$ctrl = strtotime(date('d-m-Y')); | |
echo $ctrl; | |
echo "<br/>"; |
This file contains 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 | |
DBUSER="root"; | |
DBPASS=""; | |
DBHOST="localhost"; | |
DB_OLD=mydatabase | |
DB_NEW=clone_mydatabase | |
DBCONN="--host=${DBHOST} --user=${DBUSER} --password=${DBPASS}"; |