Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Farzad Soltani farzadso

🎯
Focusing
Block or report user

Report or block farzadso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@farzadso
farzadso / No mutations at all
Last active Aug 23, 2018
This is what I call clean coding
View No mutations at all
updateStepFourProps(type, operation, data) {
let localData = [];
if (operation === 'add') {
if (type === 'educationalBackground') {
// Create Local Copy
localData = this.state.educationalBackground;
// Push Data In Local Copy
localData.push(data);
} else if (type === 'academicCertificates') {
// Create Local Copy
@farzadso
farzadso / gist:c2981ca64a7ae054a04d629fad9935cb
Created Aug 7, 2018 — forked from kitek/gist:1579117
NodeJS create md5 hash from string
View gist:c2981ca64a7ae054a04d629fad9935cb
var data = "do shash'owania";
var crypto = require('crypto');
crypto.createHash('md5').update(data).digest("hex");
@farzadso
farzadso / parallels_tools_ubuntu_new_kernel_fix.md
Created Jun 23, 2019 — forked from rudolfratusinski/parallels_tools_ubuntu_new_kernel_fix.md
Parallels Tools fix for Ubuntu 18.04 and other Linux distributions with Kernel version >= 4.15
View parallels_tools_ubuntu_new_kernel_fix.md

Preparation

  • In open Ubuntu 18.04 machine click Parallels Actions -> "Install Parallels Tools"

  • A "Parallels Tools" CD will popup on your Ubuntu desktop.

  • Open it by double mouse click, copy all the content to a new, empty directory on a desktop, name it for e.g. "parallels_fixed"

  • Open terminal, change directory to parallels_fixed (cd ~/Desktop/parallels_fixed)

  • Make command line installer executable (chmod +x install)

  • Change directory to "installer" (cd installer)

  • Make few other scripts executable: chmod +x installer.* *.sh prl_*

View Parallel_Tools_fix_for_Ubuntu_19.04.md

First off, credit goes to github.com/rudolfratusinski for leading the way here.

https://gist.github.com/rudolfratusinski/a4d9e3caff11a4d9d81d2e84abc9afbf

In a very similar approach, copy the files from the Parallels installation media and drop them in a folder somewhere (eg. ~/parallels_fixed)

Go to the kmods directory (cd ~/parallels_fixed/kmods) and extract the files (tar -xzf prl_mod.tar.gz)

Remove prl_mod.tar.gz file from that directory (rm prl_mod.tar.gz)

You can’t perform that action at this time.