git filter-branch --force --commit-filter '
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ];
then
export GIT_COMMITTER_NAME="New Name";
export GIT_AUTHOR_NAME="New Nam";
export GIT_COMMITTER_EMAIL="[email protected]";
export GIT_AUTHOR_EMAIL="[email protected]";
fi;
git commit-tree "$@"
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
function fish_prompt | |
# Store the exit code of the last command | |
set -g sf_exit_code $status | |
set -g SPACEFISH_VERSION 2.4.0 | |
# ------------------------------------------------------------------------------ | |
# Configuration | |
# ------------------------------------------------------------------------------ | |
__sf_util_set_default SPACEFISH_PROMPT_ADD_NEWLINE true |
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
call plug#begin('~/.config/nvim/plugged') | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tpope/vim-commentary' | |
Plug 'tpope/vim-fugitive' | |
Plug 'dracula/vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'bronson/vim-trailing-whitespace' | |
Plug 'rakr/vim-one' |
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
# install_certifi.py | |
# | |
# sample script to install or update a set of default Root Certificates | |
# for the ssl module. Uses the certificates provided by the certifi package: | |
# https://pypi.python.org/pypi/certifi | |
import os | |
import os.path | |
import ssl | |
import stat |
- Bảo hành - https://checkcoverage.apple.com/vn/en
- Phần cứng - https://support.apple.com/en-vn/HT202731
- Pin + Sạc
- Màn hình
- Bàn phím
- Loa + Mic
- Ổ cứng
- Jack phone
- USB type-c
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
Xcode menu -> Product -> Edit Scheme... | |
Environment Variables -> Add -> Name: "OS_ACTIVITY_MODE", Value:"disable" | |
Run your app again, done! 😄 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Hello React</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.1/react.min.js"> | |
</script> |
"A File Icon",
"All Autocomplete",
"Anaconda",
"AutoFileName",
"Babel",
"CodeFormatter",
"DA UI",
"DocBlockr",
"DocBlockr_Python",
"Emmet",
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 React, { Component } from 'react'; | |
import { PropTypes } from 'prop-types'; | |
import { connect } from 'react-redux'; | |
import { Platform } from 'react-native'; | |
import FCM, { | |
FCMEvent, | |
RemoteNotificationResult, | |
WillPresentNotificationResult, | |
NotificationType, | |
} from 'react-native-fcm'; |
sudo docker run --rm --volumes-from jupyterlab_1 -v $(pwd):/backup busybox tar cvf backup.tar /opt/app/data
--rm: remove the container when it exits --volumes-from DATA: attach to the volumes shared by the DATA container -v $(pwd):/backup: bind mount the current directory into the container; to write the tar file to busybox: a small simpler image - good for quick maintenance tar cvf /backup/backup.tar /data: creates an uncompressed tar file of all the files in the /data directory