π¨βπ»
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.name = 'ΠΎΠΊΠΎΡΠΊΠΎ'; | |
| var test = function () { alert(this.name); } | |
| var obj = { | |
| name: 'ΠΎΠ±ΡΠ΅ΠΊΡΠΈΠΊ', | |
| fx: function() { | |
| test();//->ΠΎΠΊΠΎΡΠΊΠΎ, Ρ.ΠΊ. ΡΡΠ½ΠΊΡΠΈΡ ΠΎΠ±ΡΡΠ²Π»Π΅Π½Π° Π² ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡΠ΅ window | |
| test.apply(this);//->ΠΎΠ±ΡΠ΅ΠΊΡΠΈΠΊ, Ρ.ΠΊ. ΠΌΡ Π²ΡΠ·Π²Π°Π»ΠΈ ΡΡΠ½ΠΊΡΠΈΡ Π² Π½ΡΠΆΠ½ΠΎΠΌ Π½Π°ΠΌ ΠΊΠΎΠ½ΡΠ΅ΠΊΡΡΠ΅ | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #create link | |
| ln -s /path/to/file /path/to/symlink | |
| #see all available memory | |
| df -h | |
| #returns the number of lines, words, and bytes in a file. Can use -l, -w, -c to get just one of these. | |
| wc | |
| # change user password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #apache logs | |
| /var/log/apache2/access.log - records of every page served and every file loaded by the web server. | |
| /var/log/apache2/error.log - records of all error conditions reported by the HTTP server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy migrations from engine | |
| rake railties:install:migrations | |
| # record not new/new | |
| persisted? # new_record? | |
| # execute query in console | |
| ActiveRecord::Base.connection.execute("foo") | |
| # string to class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # clean restore postgress database from dump | |
| pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d pixaloca_development pixaloca.dump | |
| # create ssh-tunel to remote database | |
| https://support.cloud.engineyard.com/hc/en-us/articles/205408088-Access-Your-Database-Remotely-Through-an-SSH-Tunnel | |
| # sql select and group tips | |
| https://habrahabr.ru/post/149571/ | |
| # row expiration in raw sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # show changed files for specific commit | |
| git show --pretty="format:" --name-only SHA | |
| #debugging with git | |
| https://git-scm.com/book/ru/v1/%D0%98%D0%BD%D1%81%D1%82%D1%80%D1%83%D0%BC%D0%B5%D0%BD%D1%82%D1%8B-Git-%D0%9E%D1%82%D0%BB%D0%B0%D0%B4%D0%BA%D0%B0-%D1%81-%D0%BF%D0%BE%D0%BC%D0%BE%D1%89%D1%8C%D1%8E-Git | |
| # cheatsheet for git | |
| https://medium.com/@ABatickaya/%D1%88%D0%BF%D0%B0%D1%80%D0%B3%D0%B0%D0%BB%D0%BA%D0%B0-%D0%BF%D0%BE-git-55eeea487676#.gmoc1vf40 | |
| git log --after="2013-11-12 00:00" --before="2013-11-12 23:59" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| task :bundle_version => :environment do | |
| queue "bundle -v" | |
| end | |
| task :update_bundler => :environment do | |
| queue "gem install bundler" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # soft file deleting | |
| https://github.com/rubysherpas/paranoia | |
| # cucumber catalog for scenarious | |
| https://github.com/enkessler/cuke_cataloger | |
| # cucumner query language | |
| https://github.com/enkessler/cql | |
| # track visits in ruby Javascript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # relax your eyes | |
| https://geektimes.ru/post/142096/ | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #===js books | |
| # front-end handbook | |
| https://www.dropbox.com/sh/t9hloz1jqtlul8p/AACbgQTOF8k-UoCY1nonQapaa?dl=0 | |
| # usefull free books about raw js | |
| https://medium.mybridge.co/the-most-useful-free-ebooks-for-web-developers-3854767ee52f#.8dfirbgmi | |
| # js debugging | |
| https://developer.chrome.com/devtools/docs/javascript-debugging | |
| # SPECIFICATION FOR BUILDING APIS IN JSON |