Skip to content

Instantly share code, notes, and snippets.

@dimi-kr
dimi-kr / Growing A Discord Server.md
Created April 8, 2019 09:49 — forked from jagrosh/Growing A Discord Server.md
Tips for creating and growing a new Discord server

This guide is kept up-to-date as Discord and available resources change!

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

You might be wondering: why am I qualified to write this guide? Excellent question! Well, I've created several successful Discord servers, including the Monster Hunter Gathering Hall (70,000+ members, game community), a bot support server (7,500+ members), and two bot community servers (25,000+ members and 20,000+ members). I also help moderate several large servers, and I am a Discord partner. Finally, I am very familiar with the technical aspects of Discord, which are useful for setting up servers and permi

@dimi-kr
dimi-kr / compact.js
Created May 18, 2018 09:02 — forked from BlakeGardner/compact.js
Compact all collections inside of a MongoDB database
// This script loops though the list of collection names in a MongoDB and runs the compact operation on them
// Simply paste this into the Mongo shell
use testDbName;
db.getCollectionNames().forEach(function (collectionName) {
print('Compacting: ' + collectionName);
db.runCommand({ compact: collectionName });
});
@dimi-kr
dimi-kr / freebsd_on_mbp.md
Created September 22, 2017 18:28 — forked from mpasternacki/freebsd_on_mbp.md
FreeBSD on a MacBook Pro

FreeBSD on a MacBook Pro

Since 2008 or 2009 I work on Apple hardware and OS: back then I grew tired of Linux desktop (which is going to be MASSIVE NEXT YEAR, at least since 2001), and switched to something that Just Works. Six years later, it less and less Just Works, started turning into spyware and nagware, and doesn't need much less maintenance than Linux desktop — at least for my work, which is system administration and software development, probably it is better for the mythical End User person. Work needed to get software I need running is not less obscure than work I'd need to do on Linux or othe Unix-like system. I am finding myself turning away from GUI programs that I used to appreciate, and most of the time I use OSX to just run a terminal, Firefox, and Emacs. GUI that used to be nice and unintrusive, got annoying. Either I came full circle in the last 15 years of my computer usage, or the OSX experience degraded in last 5 years. Again, this is from a sysadmin/developer ki

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDfbLKGdP5nXzmCFc/u4zJvUCfbSK0GHLSN8PmleMQkeNrswvfqJXJDopfcNtyuZNzztAU32RwDp/2D2UfyL2Riv6C+hmhQeslqVdNYgM7zjWANj/h2h2BSQhvbm/BFhpMuNHbkc418244ECeRLqjwxwbVQqLRcUVhEQnYGaECw5OyQlKSH5acsp5K0QHDDfGvwTtF45Wz0RGidOR+r0CK0EOfwcTah+0bt/zJJ4ceAzVuMXHaWGICVwtrevpAeBFgRKusZ+K9vQp32ZCIm04zKly5gQkWLCipOTT/MHk2nuu+qU5NjNEninDFDWlOUVWlsk+bAhwDRq319nLyQP0Fv Dimitri
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org
mQINBFac8kQBEADMW9qyabcTnYkqEBryagGumcSobKfkj8TRthkU1Ium66g+GErG
bFRMd8+aQqVl+DBWJZ3qq69KyGedyz/h99daPDss412FcHtsXqthJmGxDn9+I58m
2ULrFU228XmEYChmm4ckLy3l2vKC3KvgkpbmcsicEpyH4oB4z3+ZmwkxOjd0majO
bnAO2ew52CSm0+rIJdMZyr6muBsrO2voMdVg/1Ay1R/kSJ0UQ1bqtawfxPFQUqmS
PqzTSVXCC9tdHNiTlU9pmlbgOMnlKGWCfc/TUsrocowW74N5FfHld+Zi/6n5sGb1
qM9YtJE2jXGZUJKMi/keaQpJjerpwoBySDNELXSeMeRbXyKPmSfUn6LAXWONo5XP
vZCLP2a676TQ0AoM8Iu3n07wefwf5zeoQdEiVEyhaiY79VSsw4+ypvep6W/Nxkrb
@dimi-kr
dimi-kr / fpm-netstat.sh
Created May 10, 2017 13:51 — forked from hjr3/fpm-netstat.sh
Handy script to get strace to attach to all php-fpm workers
netstat -apn | grep $outgoing_ip_address

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

#!/usr/bin/python
from xml.etree.ElementTree import iterparse
import sys
import matplotlib.pyplot as plt
from numpy.random import normal
source_file="structure.rdf.u8"
avg_sum=0
res_count=0