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
| #!/bin/bash | |
| # NB: First install nscd with sudo apt-get install nscd | |
| # run this command to flush dns cache: | |
| sudo /etc/init.d/dns-clean restart | |
| # or use: | |
| sudo /etc/init.d/networking force-reload | |
| # Flush nscd dns cache: | |
| sudo /etc/init.d/nscd restart |
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
| <?xml version="1.0"?> | |
| <ruleset name="Laravel Standards"> | |
| <!-- | |
| The name attribute of the ruleset tag is displayed | |
| when running PHP_CodeSniffer with the -v command line | |
| argument. The description tag below is not displayed anywhere | |
| except in this file, so it can contain information for | |
| developers who may change this file in the future. | |
| --> |
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
| import { Module, Global, DynamicModule } from '@nestjs/common' | |
| import { EnvModule } from './env.module' | |
| import { EnvService } from './env.service' | |
| import { TypeOrmModule } from '@nestjs/typeorm' | |
| function DatabaseOrmModule (): DynamicModule { | |
| const config = new EnvService().read() | |
| return TypeOrmModule.forRoot({ | |
| type: config.DB_TYPE, |
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
| #### | |
| # ZSH function to auto-switch to correct Node version | |
| # https://gist.github.com/callumlocke/30990e247e52ab6ac1aa98e5f0e5bbf5 | |
| # | |
| # - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does. | |
| # | |
| # - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING. | |
| # | |
| # - Works correctly if your .nvmrc file contains something relaxed/generic, | |
| # like "4" or "v12.0" or "stable". |
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
| import { forEachObjIndexed } from "ramda"; | |
| import * as React from "react"; | |
| import { | |
| Animated, | |
| ScrollView, | |
| View, | |
| ViewStyle, | |
| LayoutChangeEvent, | |
| NativeScrollEvent, | |
| } from "react-native"; |
OlderNewer