Skip to content

Instantly share code, notes, and snippets.

View Nikita-schetko's full-sized avatar

Nikita Shc Nikita-schetko

View GitHub Profile
@Nikita-schetko
Nikita-schetko / gist:cdfb625132971dce4e311205687f0e52
Last active May 12, 2022 09:12
ng cli generate component custom module
ng g component shared/components/navbar/sidenav-list --module=shared
ng g component pages/models/models-world
ng generate service icons
heroku domains:add example.com
heroku domains:add www.example.com
CNAME for http://example.com
ALIAS for http://www.example.com (DO NOT FORGET . AT THE END)
http://kaffeine.herokuapp.com/#!
@Nikita-schetko
Nikita-schetko / gist:e39e75a2859dea0ff759866296b3a301
Created August 12, 2019 08:44
Debug your angular app (ng cli) on a mobile when you are in a same wifi
First verify your machine IP Address.
On Windows, type ipconfig in Prompt (copy IPv4).
On Mac, type ifconfig |grep inet in Terminal (copy inet).
In my case this is 192.168.0.10.
Next, type ng serve --host 192.168.0.10.
Ok, your app on air for all devices on same network.
Now only http://192.168.0.10:4200/ will work, localhost not more.
@Nikita-schetko
Nikita-schetko / gist:a77723355a94bab27e631ac42f375611
Created June 22, 2020 15:46
give access to folder for all mac/linux permission
sudo chmod -R a+rwx
[Log] onscript loading complete (user-script:18, line 1456)
[Info] Successfully preconnected to https://fonts.gstatic.com/
[Log] POLIFILL STARTED (scripts.7f3dc46e46722aacbf1b.js, line 1)
[Warning] (vendor-es2015.d3edcb182cd2ba1d2fa5.js, line 1)
It looks like you're using the development build of the Firebase JS SDK.
When deploying Firebase apps to production, it is advisable to only import
the individual SDK components you intend to use.
For the module builds, these are available in the following manner
(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):