View gist:3852239
start-->run--> rundll32.exe keymgr.dll, KRShowKeyMgr |
View gist:3414151
<?php | |
/** | |
* Class used for resampling images | |
* | |
*/ | |
namespace Lib\Image; | |
class Resampler | |
{ |
View gist:3164297
<?php | |
/** | |
* Class used for resampling images | |
*/ | |
class Resampler | |
{ | |
/** | |
* Resample an image | |
* |
View gist:3056470
doc = { name : "order_no", value : 1} | |
db.Counters.save(doc) | |
db.Counters.findAndModify({query : { name : "order_no"}, update : { $inc : {value : 1}}}) |
View create.sh
mogrify -format jpg -path thumb -thumbnail 400x200\> *.png |
View create.sh
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 |
View circle.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View .htaccess
Options -MultiViews | |
RewriteEngine On | |
#RewriteBase /path/to/app | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] |
View MY_Exceptions.php
<?php | |
if (!defined('BASEPATH')) | |
exit('No direct script access allowed'); | |
/** | |
* Extending the default errors to always give JSON errors | |
* | |
* @author Oliver Smith | |
* |
View ssh.sh
ssh -L 13389:<remote desktop server ip>:3389 <remote ssh server> |
NewerOlder