Skip to content

Instantly share code, notes, and snippets.

View sardor01's full-sized avatar

Sardor Astanov sardor01

View GitHub Profile
@sardor01
sardor01 / Uzbekistan_phone_codes_regex_pattern.md
Created January 11, 2022 06:29 — forked from faim87/Uzbekistan_phone_codes_regex_pattern.md
Uzbekistan phone codes - regex pattern.

Mobile = /^9989[012345789][0-9]{7}$/

All = /^998(9[012345789]|6[125679]|7[01234569])[0-9]{7}$/

@sardor01
sardor01 / nvmCommands.js
Created January 3, 2023 04:21 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node

Install composer like so:

sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php

After installation, you should then symlink it by running command:

sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

Then run the command below to allow the 'composer' command to be run globally (this will be run from within the folder where you've just installed composer in which a composer.phar file has just been created):

@sardor01
sardor01 / introspection-query.graphql
Created July 1, 2023 13:17 — forked from craigbeck/introspection-query.graphql
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {