Skip to content

Instantly share code, notes, and snippets.

View yveson33's full-sized avatar

yves bissaya botele yveson33

View GitHub Profile
@yveson33
yveson33 / gist:4124800
Created November 21, 2012 13:16 — forked from hileon/gist:1311735
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Windows)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command prompt
Ctrl+` python console
Ctrl+N new file

Editing

//require cyrpto module
var crypto=require('crypto');
//key and iv should be same as the one in encrypt.php
var decipher=crypto.createDecipheriv('aes-256-cbc','12345678901234561234567890123456','1234567890123456');
//since we have already added padding while encrypting, we will set autopadding of node js to false.
decipher.setAutoPadding(false);
// copy the output of encrypt.php and paste it below
@yveson33
yveson33 / Dockerfile owncloud:latest
Created January 28, 2023 13:40 — forked from westberliner/Dockerfile owncloud:latest
Add ldap php extension to official owncloud docker container.
FROM owncloud:latest
RUN \
apt-get update && \
apt-get install libldap2-dev -y && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-install ldap