This file contains 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 * as Y from 'yjs'; | |
import { getModelForClass, prop, ReturnModelType } from '@typegoose/typegoose'; | |
const Y_TYPEGOOSE = { | |
DEFAULT_COLLECTION_NAME: 'ydoc', | |
TYPE: { | |
STATE_VECTOR: 'sv', | |
UPDATE: 'update', | |
META: 'meta', | |
}, |
This file contains 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 { createAction } from 'redux-actions'; | |
import { put, call } from 'redux-saga/effects'; | |
import produce from 'immer'; | |
import camelCase from 'lodash/camelCase'; | |
import typeUtils from './type'; | |
const STAGES = { | |
REQUEST: { | |
id: 'REQUEST', |
This file contains 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
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n $1 | |
node -v |
This file contains 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 | |
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 | |
echo -e "\nif [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then\n\tGIT_PROMPT_ONLY_IN_REPO=1\n\tsource $HOME/.bash-git-prompt/gitprompt.sh\nfi\n" >> ~/.bashrc | |
source ~/.bashrc |
This file contains 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 | |
echo "LANG=\"C\"" > /etc/default/locale | |
source /etc/default/locale |
This file contains 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 | |
CERT_PATH="$1" | |
PRIVATE_PATH="$2" | |
CHAIN_PATH="$3" | |
FULLCHAIN_PATH="$4" | |
function checkArg() | |
{ | |
result=1 |