Skip to content

Instantly share code, notes, and snippets.

View wreiske's full-sized avatar

William Reiske wreiske

View GitHub Profile
@wreiske
wreiske / reset_rocketchat_user_password.sh
Last active January 2, 2020 13:25
Change rocket.chat user passwords via API.
#!/bin/bash
# Simple example Rocket.Chat password changer for sysadmins
# Usage: ./reset_rocketchat_user_password.sh
# You can optionally store these here (NOT recommended) or pass via environment variables
# RC_ADMIN_AUTH_TOKEN=token
# RC_ADMIN_USER_ID=userid
# RC_SERVER_URL=https://chat.website.com
@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 {
@wreiske
wreiske / icon-generator.py
Created March 29, 2015 19:13
Creates all the needed icons for Android and iOS + mobile-config.js for Meteor
import os
from progressbar import ProgressBar, Percentage, Bar, ETA
print "----------------- Icon Generator ------------------"
print "Usage: icon-generator.py"
print "See files_ios { } in icon-generator.py"
print "icon-ios.png and icon-android.png"
print "---------------------------------------------------"
input_ios = './icon-ios.png'