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
openssl req -newkey rsa:2048 -days 1000 -nodes -keyout client-key.pem -out client-req.pem | |
openssl genrsa 2048 > ca-key.pem | |
openssl req -new -x509 -nodes -days 1000 -key ca-key.pem -out ca-cert.pem | |
openssl req -newkey rsa:2048 -days 1000 -nodes -keyout server-key.pem -out server-req.pem | |
openssl rsa -in server-key.pem -out server-key.pem | |
openssl x509 -req -in server-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem |
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
mogrify -format jpg -path thumb -thumbnail 400x200\> *.png |
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
doc = { name : "order_no", value : 1} | |
db.Counters.save(doc) | |
db.Counters.findAndModify({query : { name : "order_no"}, update : { $inc : {value : 1}}}) |
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
<?php | |
/** | |
* Class used for resampling images | |
*/ | |
class Resampler | |
{ | |
/** | |
* Resample an image | |
* |
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
<?php | |
/** | |
* Class used for resampling images | |
* | |
*/ | |
namespace Lib\Image; | |
class Resampler | |
{ |
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
start-->run--> rundll32.exe keymgr.dll, KRShowKeyMgr |
OlderNewer