Skip to content

Instantly share code, notes, and snippets.

View putzflorian's full-sized avatar

Florian Putz putzflorian

  • @elements-at
  • Salzburg
  • 18:47 (UTC +01:00)
View GitHub Profile
1. Make Home Directory for SShH keys.
c://users/UserName/.SSH (for Windows 7)
2. Generate SSH key by command:
ssh-keygen -t rsa -C "user@mail.ru"
# Creates a new ssh key, using the provided email as a label
Generating public/private rsa key pair.
It's created a pair of keys - private and public in home dir .SSH
C:\Users\SuvorovAG\.ssh\id_rsa
@putzflorian
putzflorian / openssl_encrypt_decrypt.php
Created May 29, 2018 08:44 — forked from joashp/openssl_encrypt_decrypt.php
Simple PHP encrypt and decrypt using OpenSSL
<?php
/**
* simple method to encrypt or decrypt a plain text string
* initialization vector(IV) has to be the same when encrypting and decrypting
*
* @param string $action: can be 'encrypt' or 'decrypt'
* @param string $string: string to encrypt or decrypt
*
* @return string
*/
@putzflorian
putzflorian / redis-stats.php
Last active August 29, 2015 14:16 — forked from blongden/redis-stats.php
redis-stats
<?php
$fp = fsockopen('127.0.0.1', 6379, $errno, $errstr, 30);
$data = array();
if (!$fp) {
die($errstr);
} else {
fwrite($fp, "INFO\r\nQUIT\r\n");
while (!feof($fp)) {
You need jQuery 1.6 and upper.
Facebook:
For the FB reload you also need a Variable called "lang" in js with the language code (de, en, it, fr...)
For more information show comments in the file facebook.js
Google Plus:
You only need jQuery and edit the selector (id,class) where you would like to show g+