Skip to content

Instantly share code, notes, and snippets.

View yahya-aghdam's full-sized avatar
🎯
Focusing

Yahya parvin aghdam yahya-aghdam

🎯
Focusing
View GitHub Profile
@dfreerksen
dfreerksen / Crypt.php
Created August 27, 2012 14:16
PHP Crypt class
<?php
class Crypt {
/**
* The encryption cipher
*
* @var string
*/
static public $cipher = MCRYPT_RIJNDAEL_256;
@chengscott
chengscott / WIFI.sh
Created March 4, 2016 07:11
Broadcom BCM43142 wifi driver resolved
apt-get install linux-headers-`uname -r` dkms build-essential bcmwl-kernel-source -y
@irbull
irbull / OpenSSLExample.cpp
Created August 11, 2016 18:32
Code signing and verification with OpenSSL
#include <iostream>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <assert.h>
#!/bin/bash
##this script will backup mysql and upload it to google drive
##directory name
dirname=$1;
##database name
database=$2;
##database username
dbuser=$3;
##database password
dbpass=$4;