This is a cheat sheet for the Vim As Your Editor series by ThePrimeagen
j
and k
- move down and up
h
and l
- move left and right
This is a cheat sheet for the Vim As Your Editor series by ThePrimeagen
j
and k
- move down and up
h
and l
- move left and right
var ThemeEnabler = { | |
isThemeOn: false, | |
controls: null, | |
onAppLoaded: async function() { | |
this.checkCookie() | |
do { |
# Upstreams | |
upstream backendChat { | |
server 127.0.0.1:3000; | |
server 127.0.0.1:3001; | |
server 127.0.0.1:3002; | |
server 127.0.0.1:3003; | |
} | |
# HTTPS Server | |
log_format upstreamlog '[$time_local] $remote_addr - $remote_user - $server_name to: $upstream_addr: $request upstream_response_time $upstream_response_time msec $msec request_time $request_time'; | |
server { |
For users with issues with Rocket.Chat please do yourselves a few favours before asking for help.
const fs = require('fs'); | |
const { exec } = require('child_process'); | |
const file = fs.readFileSync('replicasets4.txt').toString(); | |
// const file = fs.readFileSync('pods.txt').toString(); | |
(async () => { | |
const lines = file.split('\n'); | |
const total = lines.length; |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Attach to meteor debug", | |
"type": "node", | |
"request": "attach", | |
"port": 9229, | |
"address": "localhost", | |
"restart": false, |
# Terminal 1 | |
docker exec -it CONTAINER_ID /bin/bash | |
npm install node-inspector | |
kill -s USR1 PROCESS_ID | |
node_modules/node-inspector/bin/inspector.js --web-port=9000 | |
# Terminal 2 | |
docker exec -it CONTAINER_ID /bin/bash | |
curl -O https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.tar.gz | |
tar -xvzf ngrok-stable-linux-amd64.tar.gz |
# (C) 2016, Deepak Kothandan | |
# This file is part of Ansible | |
# | |
# Ansible is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# Ansible is distributed in the hope that it will be useful, |
scp backup.tgz [email protected]:~/
tar zxvf backup.tgz
parties/
mv backup/database-name/ backup/parties