Skip to content

Instantly share code, notes, and snippets.

View alansikora's full-sized avatar

Alan Sikora alansikora

  • Porto Alegre - Brazil
View GitHub Profile
'click .increment': function() {
voteOnLeaderboard("players", function() {
Players.update(this._id, {
$inc: { score: 1 }
});
});
}
function voteOnLeaderboard(name, callback) {
storage_name = "voted-on-" + name + "-leaderboard";

Eastern Connection:

S4S/Middleware:

COD
DCV
ADLSIG
DIRSIG
RS
@alansikora
alansikora / rcmf-setup.sh
Last active March 14, 2025 11:22
Rocket.Chat Matrix Federation
# !/bin/bash
# Rocket.Chat Matrix Federation Setup
# Author: Alan Sikora <[email protected]>
# https://github.com/alansikora
PWD=$(pwd)
[[ $1 = "-dev" ]] && DEV=true || DEV=false
# Set image versions
ROCKETCHAT_IMAGE_TAG="5.4.0"
@alansikora
alansikora / hyprland.conf
Created July 23, 2025 12:39
Hyprland Workspace Manager
#!/bin/bash
# Workspaces - Dynamic configuration
source = ~/.config/hypr/workspaces.conf
# Run workspace manager on startup and monitor changes
exec-once = ~/.config/hypr/workspace-manager.sh
exec-once = socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | \
while read line; do \
[[ "$line" =~ ^monitor ]] && ~/.config/hypr/workspace-manager.sh; \