Skip to content

Instantly share code, notes, and snippets.

@dantio
dantio / Gluster Cheat Sheet
Created February 22, 2023 09:55 — forked from githubfoam/Gluster Cheat Sheet
Gluster Cheat Sheet
Brick –> is basic storage (directory) on a server in the trusted storage pool.
Volume –> is a logical collection of bricks.
Cluster –> is a group of linked computers, working together as a single computer.
Distributed File System –> A filesystem in which the data is spread across the multiple storage nodes and allows the clients to access it over a network.
Client –> is a machine which mounts the volume.
Server –> is a machine where the actual file system is hosted in which the data will be stored.
Replicate –> Making multiple copies of data to achieve high redundancy.
Fuse –> is a loadable kernel module that lets non-privileged users create their own file systems without editing kernel code.
glusterd –> is a daemon that runs on all servers in the trusted storage pool.
RAID –> Redundant Array of Inexpensive Disks (RAID) is a technology that provides increased storage reliability through redundancy

Keybase proof

I hereby claim:

  • I am dantio on github.
  • I am dantio (https://keybase.io/dantio) on keybase.
  • I have a public key ASBoHN6vi2EocoVVmTjJsE6d6sgA8wu6UzA4rWQMWlXCOwo

To claim this, I am signing this object:

@dantio
dantio / nginx.conf
Created May 6, 2017 13:05
Wordpress behind HTTPS/SSL Proxy (nginx, fastcgi)
##
# nginx server with http + ssl/https (no WP)
# /etc/nginx/sites-available/example.com
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://no-ssl:8080;
proxy_set_header Host $host;
void GetDesktopResolution(int& width, int& height, int& posX, int& posY)
{
int index = 0;
DISPLAY_DEVICE dd;
dd.cb = sizeof(DISPLAY_DEVICE);
bool secondDisplay = false;
while (EnumDisplayDevices(NULL, index++, &dd, 0))
{