Skip to content

Instantly share code, notes, and snippets.

View geekgonecrazy's full-sized avatar
🚀
Building and Launching!

Aaron Ogle geekgonecrazy

🚀
Building and Launching!
View GitHub Profile
@madyanalj
madyanalj / vim-cheat-sheet.md
Last active January 1, 2021 08:15
Vim As Your Editor Cheat Sheet

Vim As Your Editor Cheat Sheet 🤓

This is a cheat sheet for the Vim As Your Editor series by ThePrimeagen

Part 1 - The Basic Vim Movements

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 {
@wreiske
wreiske / chat.website.com.conf
Created May 10, 2019 00:16
multi-instance rocket.chat upgrade and restart
# 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 {
@mrsimpson
mrsimpson / production-issue-03-2019.md
Last active April 4, 2019 22:15
Analysis: Writing to MongoDB with Rocket.Chat not possible or heavily delayed

This gist is to document what we've seen, understood and which actions have been taken

Phenomena

Obvious issues

  • Users cannot log in - after klicking the login-button, there was neither a response nor a timeout
  • Messages sent remain grayed out for a long time

At the same time

@reetp
reetp / Readme.md
Last active November 14, 2024 16:02
Debugging
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;
@mrsimpson
mrsimpson / launch.json
Last active April 12, 2018 22:54
VSCode launch configuration for Assistify and Rocket.Chat - see https://github.com/Microsoft/vscode-node-debug/issues/179
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to meteor debug",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"restart": false,
@rodrigok
rodrigok / a.sh
Last active June 9, 2017 20:09
Debug Rocket.Chat demo container
# 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
@Deepakkothandan
Deepakkothandan / rocketchat.py
Created February 15, 2017 10:30
Rocketchat callback plugin for Ansible
# (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,
@kevincolten
kevincolten / migration.md
Last active November 1, 2016 04:22
Rocket.Chat DB Migration from Heroku/mLab to DigitalOcean

Rocket.Chat DB Migration from Heroku/mLab to DigitalOcean

  1. Put app in maintenance mode on Heroku
  2. Download backup of database in mLab
  3. Copy database to DO Droplet scp backup.tgz [email protected]:~/
  4. SSH into droplet and unzip the file tar zxvf backup.tgz
  5. Inside the unzipped directory, rename the database directory to parties/ mv backup/database-name/ backup/parties