-Parar o eliminar todos los contenedores docker:
Para pararlos puede usarse: docker stop $(docker ps -a -q)
Y para eliminarlos: docker rm $(docker ps -a -q)
-Parar o eliminar todos los contenedores docker:
Para pararlos puede usarse: docker stop $(docker ps -a -q)
Y para eliminarlos: docker rm $(docker ps -a -q)
| # Load emulators | |
| firebase emulators:start --import=./saved-data --export-on-exit | |
| # Acceder a functions | |
| $ export GOOGLE_APPLICATION_CREDENTIALS="path/to/key.json" | |
| $ firebase functions:shell | |
| # kill pid | |
| lsof -t -i tcp:5000 | xargs kill |
| lsof -ti tcp:9000 | xargs kill -9 |
| import { | |
| ToastAndroid, | |
| Platform, | |
| AlertIOS, | |
| } from 'react-native'; | |
| function notifyMessage(msg: string) { | |
| if (Platform.OS === 'android') { | |
| ToastAndroid.show(msg, ToastAndroid.SHORT) | |
| } else { |
| pragma solidity ^0.4.24; | |
| // ---------------------------------------------------------------------------- | |
| // Sample token contract | |
| // | |
| // Symbol : {{Token Symbol}} | |
| // Name : {{Token Name}} | |
| // Total supply : {{Total Supply}} | |
| // Decimals : {{Decimals}} | |
| // Owner Account : {{Owner Account}} |
| const downloadCVs = async () => { | |
| const url = window.django.urls.get_documens_cvs_for_have_company_whitout_member; | |
| const response = await axios.get(url, {params: { applicant: applicant.id }, responseType: 'arraybuffer'}); | |
| let fileName = response.headers["content-disposition"].split("filename=")[1]; | |
| if (window.navigator && window.navigator.msSaveOrOpenBlob) { // IE variant | |
| window.navigator.msSaveOrOpenBlob(new Blob([response.data], {type: 'application/zip'}), | |
| fileName); | |
| } else { | |
| Buscar y reemplazar con regex el término ^\s*$\n |
| " plugins | |
| let need_to_install_plugins = 0 | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| let need_to_install_plugins = 1 | |
| endif | |
| call plug#begin() | |
| Plug 'tpope/vim-sensible' |