Skip to content

Instantly share code, notes, and snippets.

View pjendrusik's full-sized avatar
🐿️

Paweł Jendrusik pjendrusik

🐿️
View GitHub Profile
aspell --lang pl dump master | aspell --lang pl expand | tr ' ' '\n' > pl.dic
aspell --lang de dump master | aspell --lang de expand | tr ' ' '\n' > de.dic
@pjendrusik
pjendrusik / propel.yaml
Created January 30, 2016 14:38 — forked from cristianoc72/propel.yaml
Propel sample configuration file
## Sample Propel configuration file ##
propel:
## General settings ##
general:
# The name of your project.
# This affects names of generated files, etc.
project:
version: 2.0.0-dev
@pjendrusik
pjendrusik / README.md
Created January 21, 2016 17:48 — forked from KonradIT/readme.md
GoPro Studio for Linux

####GoPro Protune correction, timelapse assembling, fisheye removal, slow motion, 4:3 to 16:9 and motion blur in Linux OS - GoPro Studio for Linux - KDEnlive, FFMPEG, ImageMagick, Mencoder and Python!

GoPro Studio has been tremendously useful for GoPro users, but not all GoPro users can enjoy the tool, there is no GoPro Studio for Linux. So some users made their ways to emulate GoPro Studio on Linux.

This guide is more than GoPro Studio, is a must read guide for Linux and GoPro users.

The main features of GoPro Studio are:

  • Convert and edit Protune footage and apply Protune effect.
  • Convert 4:3 footage to 16:9
  • Slow motion
@pjendrusik
pjendrusik / gist:054c229df30f69121813
Created March 20, 2015 14:41
Command for determining my public IP?
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
Compiling TeX:
tex test1.tex : converts a TeX file to DVI (probably you don't need that, if you mean LaTeX)
pdftex test1.tex : converts a TeX file to PDF (probably you don't need that either)
latex test1.tex : converts a LaTeX file to DVI
pdflatex test1.tex : converts a LaTeX file to PDF
Converting:
dvips test1.dvi : converts a DVI file to PostScript
ps2pdf test1.ps : converts a PostScript file to PDF
dvipdfmx xtest1.dvi : converts a DVI file to PDF (similar: dvipdf, dvipdfm)
@pjendrusik
pjendrusik / gist:bd75f3345391af0d4618
Created September 2, 2014 09:21
#nginx: redirect subdomain to url
server {
server_name blog.example.com;
rewrite ^(.*) http://magazyn.example.com permanent;
}
@pjendrusik
pjendrusik / gist:b9bad97a5055ba2446d0
Created September 2, 2014 07:30
encrypt/decrypt text file
# encrypt
openssl rsautl -encrypt -pubin -inkey pawel.jendrusik.id_rsa.pem.pub -ssl -in myMessage.txt -out myEncryptedMessage.txt
# decrypt
openssl rsautl -decrypt -inkey ~/.ssh/id_rsa -in passwords_pawel_jendrusik_encrypted.txt -out li_de_new_pass.txt
@pjendrusik
pjendrusik / recover all privileges
Created August 26, 2014 14:40
recover all privileges
UPDATE mysql.user SET Grant_priv='Y', Super_priv='Y' WHERE User='root';
FLUSH PRIVILEGES;
@pjendrusik
pjendrusik / gist:6b7db53bafc340ea56a8
Created May 20, 2014 08:51
Enable SSH Connection Sharing and Persistence
// add to ~/.ssh/config
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist yes
@pjendrusik
pjendrusik / gist:7233134
Created October 30, 2013 13:59
recover mysql root password
# /etc/init.d/mysql stop
# mysqld_safe --skip-grant-tables &
# mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit