Pinned toot

This is my first toot here.

I want to write every solution for different troubles and some answers for technical questions I've met in my programmer way.

So, let's get started.

Today I've listened the lecture by Richard Stallman, who've come to Russia on tech festival called TechTrain.

He has spoken about free software and freedom.

He has taken his alternative person called Saint IGNUcius.





To run Perfect World in Linux under wine, need to install this windows dlls to the wineprefix: d3dx9_36 ie8 mfc40 msls31 msxml3 msxml4 msxml6 vcrun2005 vcrun2008 vcrun2010 wininet wsh56vb xmllite

So, do:

winetricks d3dx9_36 ie8 mfc40 msls31 msxml3 msxml4 msxml6 vcrun2005 vcrun2008 vcrun2010 wininet wsh56vb xmllite

Hmm, do I need some hash tags in my toots? I think it can be useful and helpful.

So. I'm writing about tech solution and troubleshooting. Sometimes I write some tech tips. If you are interested in my work, follow me.

Thank you.

To use moodle with nginx, you will need to add this to your nginx.conf (or add certain lines):

location ~ [^/]\.php(/|$) {
root <path>;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass <your socket>;
fastcgi_index index.php;
include fastcgi.conf;
include fastcgi_params;
fastcgi_param PATH_INFO
$fastcgi_path_info;
fastcgi_param
SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}

...to continue.

If you want to encrypt a photo or a folder with photos and videos or other files, then first create an archive from files you want to encrypt, next use gpg:

To encrypt:
gpg -c --s2k-cipher-algo AES256 --s2k-digest-algo SHA512 --s2k-count 65536 <name of your archive with files you want to encrypt>

In output you will see the file with .gpg extension.

To decrypt it use:
gpg --output <name of the decrypted archive> --decrypt <name of your decrypted file>.gpg

If you want to encrypt a text file (with passwords, for example), you can use openssl:

To encrypt your file:
openssl aes-256-cbc -in <your text file name> -out <name of the new file>

To decrypt your file:
openssl aes-256-cbc -d -in <name of your encrypted file> -out <name of the new text file>

To reduce video size without loss of quality using ffmpeg do:

ffmpeg -i input.mp4 -b 8507k output.mp4

For example Archlinux uses libfreetype.so.6.

Set yours.

To start Torchlight II on a Linux distribution with different libfreetype's version set launch options:

LD_PRELOAD=/usr/lib/libfreetype.so.6 %command%

If the error occurred with PHP on nginx:

"File not found",

then in nginx.conf for php root directory doesn't set.

location ~ [^/]\.php(/|$) {
...
root /usr/share/nginx/html;
...
}

This is my first toot here.

I want to write every solution for different troubles and some answers for technical questions I've met in my programmer way.

So, let's get started.

Linux.Pizza

A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - welcome