Skip to content

Instantly share code, notes, and snippets.

@Ngalstyan4
Ngalstyan4 / keybase.md
Created April 19, 2018 00:57
Keybase identity proof

Keybase proof

I hereby claim:

  • I am ngalstyan4 on github.
  • I am ngalstyan (https://keybase.io/ngalstyan) on keybase.
  • I have a public key ASBCj-wubK7Pj1QYC1LBfCBli0Ui3x-p74fDmHKmP3LHVQo

To claim this, I am signing this object:

@Ngalstyan4
Ngalstyan4 / jwplayerSpeedUpPlayBack
Created June 21, 2017 10:41
Speed up MIT Open Courseware speed up video playback
// write in console of the website page; change the [1.5] to the desired playback speed
document.getElementsByTagName("video")[0].playbackRate = 1.5
@Ngalstyan4
Ngalstyan4 / sed-json-clean.sh
Last active July 13, 2016 13:14
Pipe your Json data to this and it will remove all key-values with null value
#Pipe your Json data to this and it will remove all key-values with null value
#E.G
#echo "{"gender":null,"first_name":null}" | sed -r "s/,"[a-zA-Z_]*":null//g" | sed -r "s/\{"[a-zA-Z_]*":null/{/g"
#produces
#{}
sed -r "s/,\"[a-zA-Z_]*\":null//g" | sed -r "s/\{\"[a-zA-Z_]*\":null,/{/g"
//https://github.com/creationix/nvm/issues/43
// see the issue for details
/*When sudoing node, 'command not found' is issued, because on most systems PATH is reset on sudo, for security reasons.
This makes 'sudo node' not work anymore.
Simply adding the following line at the end of the nvm.sh script, would fix it:
*/
// add this at the end of nvm.sh file
alias node='$NVM_BIN/node'