Uncategorized – Stepan Suvorov Blog https://stepansuvorov.com/blog Release 2.0 Fri, 01 Sep 2023 19:42:36 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.1 I use UPDATED https://stepansuvorov.com/blog/2023/09/i-use-updated/ https://stepansuvorov.com/blog/2023/09/i-use-updated/#respond Fri, 01 Sep 2023 19:42:36 +0000 https://stepansuvorov.com/blog/?p=3613 Decided to update the page “I Use” which is sometimes useful even for myself when reinstalling the OS.

]]>
https://stepansuvorov.com/blog/2023/09/i-use-updated/feed/ 0
npkill – a tool to clean up old node_modules https://stepansuvorov.com/blog/2019/11/npkill-a-tool-to-clean-up-old-node_modules/ https://stepansuvorov.com/blog/2019/11/npkill-a-tool-to-clean-up-old-node_modules/#respond Wed, 13 Nov 2019 18:06:15 +0000 http://stepansuvorov.com/blog/?p=3574

one more tool goes to bookmarks,

with npkill you can easily cleanup all you old node_modules directories, for my it free up 28.11 gb

]]>
https://stepansuvorov.com/blog/2019/11/npkill-a-tool-to-clean-up-old-node_modules/feed/ 0
HTTPie – a command-line HTTP client with a friendly UI https://stepansuvorov.com/blog/2019/08/httpie-a-command-line-http-client-with-a-friendly-ui/ https://stepansuvorov.com/blog/2019/08/httpie-a-command-line-http-client-with-a-friendly-ui/#comments Sat, 17 Aug 2019 12:26:41 +0000 http://stepansuvorov.com/blog/?p=3570

JSON support, syntax highlighting, wget-like downloads, plugins, and more

more info

]]>
https://stepansuvorov.com/blog/2019/08/httpie-a-command-line-http-client-with-a-friendly-ui/feed/ 1
Cmd + Shift + . (dot) https://stepansuvorov.com/blog/2019/05/cmd-shift-dot/ https://stepansuvorov.com/blog/2019/05/cmd-shift-dot/#comments Fri, 24 May 2019 09:43:48 +0000 http://stepansuvorov.com/blog/?p=3567 Yesterday I got know that this shortcut toggle visibility of “dotted” files on mac, it made my day. Previously I had to use either additional apps or special mac options that was possible to change only via terminal.

]]>
https://stepansuvorov.com/blog/2019/05/cmd-shift-dot/feed/ 1
hackmd – Markdown Editor + Collaboration https://stepansuvorov.com/blog/2019/05/hackmd-markdown-editor-collaboration/ https://stepansuvorov.com/blog/2019/05/hackmd-markdown-editor-collaboration/#respond Mon, 13 May 2019 16:16:28 +0000 http://stepansuvorov.com/blog/?p=3553 One more tool goes to bookmarks – HackMD

]]>
https://stepansuvorov.com/blog/2019/05/hackmd-markdown-editor-collaboration/feed/ 0
All Electric Car Comparison – Spreadsheet https://stepansuvorov.com/blog/2019/05/all-electric-car-comparison-spreadsheet/ https://stepansuvorov.com/blog/2019/05/all-electric-car-comparison-spreadsheet/#respond Wed, 08 May 2019 17:28:45 +0000 http://stepansuvorov.com/blog/?p=3550 There are so much information about different vehicles that I decided to create my own table and collect all information there.

You are more than welcome to add information.

]]>
https://stepansuvorov.com/blog/2019/05/all-electric-car-comparison-spreadsheet/feed/ 0
Carbon – service to make “codeshots” https://stepansuvorov.com/blog/2019/05/carbon-service-to-make-codeshots/ https://stepansuvorov.com/blog/2019/05/carbon-service-to-make-codeshots/#respond Fri, 03 May 2019 08:37:17 +0000 http://stepansuvorov.com/blog/?p=3547 One more service to bookmarks, finally I have something simple to make code snapshots for presentation.

]]>
https://stepansuvorov.com/blog/2019/05/carbon-service-to-make-codeshots/feed/ 0
Dutch Tax Income Calculator: Now with offline mode https://stepansuvorov.com/blog/2018/10/dutch-tax-income-offline/ https://stepansuvorov.com/blog/2018/10/dutch-tax-income-offline/#respond Sun, 14 Oct 2018 16:49:39 +0000 http://stepansuvorov.com/blog/?p=3538 Finally I found some time to implement service workers that will allow you to use application even there is no internet connection. Check it out!

Also it’s already PWA application, so you can make a shortcut for your mobile desktop:

]]>
https://stepansuvorov.com/blog/2018/10/dutch-tax-income-offline/feed/ 0
MacOs: Don’t show specific app icon on Dock https://stepansuvorov.com/blog/2017/12/macos-dont-show-specific-app-icon-on-dock/ https://stepansuvorov.com/blog/2017/12/macos-dont-show-specific-app-icon-on-dock/#respond Fri, 15 Dec 2017 20:31:52 +0000 http://stepansuvorov.com/blog/?p=3485 Continue reading ]]> I have a hotkey for the terminal that why I decided to hide the terminal icon from Dock, but it appeared to be not so easy.

You need to go to app contents (by doing right click -> “Show Package Contents“) and change Info.plist file – add special key:

<key>LSUIElement</key>
<true/>

(it could be added to the end of the file):

]]>
https://stepansuvorov.com/blog/2017/12/macos-dont-show-specific-app-icon-on-dock/feed/ 0
View encapsulation и другие опции компилятора https://stepansuvorov.com/blog/2017/07/view-encapsulation-off/ https://stepansuvorov.com/blog/2017/07/view-encapsulation-off/#respond Fri, 28 Jul 2017 13:56:03 +0000 http://stepansuvorov.com/blog/?p=3424 Continue reading ]]> Это крайне не рекомендовано, но, тем не менее, иногда приходится глобально выключать инкапсуляцию стилей. Чтобы этого достичь мы можем воспользоваться настройками при бутстрапе модуля, то есть вместо:

platformBrowserDynamic().bootstrapModule(AppModule);

сделать:

View the code on Gist.

Полный список параметров компиляции, которые мы можем менять при инициализации модуля:

  • useDebug – включение дебаг режима (и уже деприкейтед начиная с v4)
  • useJit – переключатель режима: Codegen и Interpretative (не путать с AOT/JIT), по умолчанию работает кодогенерация.
  • defaultEncapsulation – задает инкапсуляцию стилей по умолчанию (то что мы сделали выше)
  • providers – переопределение провайдеров для компилятора COMPILER_PROVIDERS (вы не можете сделать тоже самое в ngModule, так как компилятор использует свой собственный инжектор)
  • missingTranlsations – задает стратегию поведения при отсутсвующих переводах
  • enableLegacyTemplate – чтобы продолжать поддерживать тег template
]]>
https://stepansuvorov.com/blog/2017/07/view-encapsulation-off/feed/ 0